LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2013, 04:52 AM   #1
b56r1
LQ Newbie
 
Registered: Nov 2012
Location: NULL
Posts: 5

Rep: Reputation: Disabled
Unhappy iptables for transparent proxy


Hi all. I'm implementing transparent proxy in a Linux machine. I went through the Linux's documentation regarding Tproxy found in the Linux source folder (Linux/Documentation/networking/tproxy.txt).

What is the use of this iptable rule below having the socket option? What it really does? I read in some forums that this rule is to avoid sending the packets to tproxy twice. What it really means?

iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT

Thank you.
 
Old 11-03-2013, 02:10 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
The "socket" match looks for matching local sockets with the IP_TRANSPARENT option set for packets with non-local destination addresses.

Take a look at pages 4 and 5 of this PDF document.
 
1 members found this post helpful.
Old 11-08-2013, 03:43 AM   #3
b56r1
LQ Newbie
 
Registered: Nov 2012
Location: NULL
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for reply and pdf link Ser Olmy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] IPtables for a remote transparent proxy robertjinx Linux - Server 25 06-04-2012 08:37 AM
help using iptables to setup a simple transparent proxy chibi Linux - Networking 2 10-04-2009 06:53 PM
Squid transparent proxy with iptables cksoo Linux - Server 5 06-12-2008 04:53 AM
IPTABLES for squid (Transparent proxy) kool_kid Linux - Networking 14 10-29-2007 11:45 AM
Iptables+transparent Proxy seitan Linux - Networking 11 12-13-2004 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration