Link to home
Start Free TrialLog in
Avatar of jhughesco
jhughescoFlag for United States of America

asked on

Configure IPTABLES to route all port 443 and 21 traffic through Squid

I have a Linux firewall/router.  IPTABLES is configured so all port 80 traffic routes through squid using the following rule:

$IPT -t nat -A PREROUTING -i $INTDEV -p tcp --dport 80 -j REDIRECT --to-port 8080

However, when I use similar rules to route port 443 and port 21 traffic to squid it does not work.

What squid config would I need to make this work?

ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jhughesco

ASKER

Excellent information.  I didn't even realize I was doing a transparent proxy.  I thought I was just doing a nice little trick with IPTABLES.  

Thanks.