Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How do I enable TPROXY in Perl?

by Illuminatus (Curate)
on Apr 15, 2011 at 18:57 UTC ( #899668=note: print w/ replies, xml ) Need Help??


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


Comment on Re: How do I enable TPROXY in Perl?
Replies are listed 'Best First'.
Re^2: How do I enable TPROXY in Perl?
by charlesboyo (Beadle) on Apr 16, 2011 at 02:06 UTC
    Hello.

    I was quite sure I should have used IP_TRANSPARENT but it wasn't defined in the headers files I had searched earlier. Doing a full system search revealed its definition and simply replacing IP_FREEBIND with IP_TRANSPARENT solved my problem.

    iptables work just fine, I'm using the mangle table with the TPROXY and socket targets and a custom route table as widely recommended.

    Thanks for the help. Charles

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://899668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-07 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls