http://www.perlmonks.org?node_id=899668


in reply to How do I enable TPROXY in Perl?

  1. You should not have to rebuild perl to use tproxy
  2. I see you are using IP_FREEBIND, but I believe you really need to be using IP_TRANSPARENT (which implies FREEBIND, but is a superset)
  3. You might want to post the iptables commands you have setup. I think the connect will fail if the underlying iptables routing options are not in place.
  4. When dealing with netlink/iptables, never expect any help from the error codes. They are almost always misleading and unhelpful. I speak from experience

fnord