Solved

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

Posted on 2006-11-04
2
496 Views
Last Modified: 2013-12-16
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?

0
Comment
Question by:jhughesco
2 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 500 total points
ID: 17875822
> 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?
Simply because https(443) and ftp(21) traffic can't be proxied in transparent mode by squid, refer
http://wiki.squid-cache.org/SquidFaq/InterceptionProxy#head-182f30adede2d8daf8569aef5027629ed799b0d4
0
 
LVL 1

Author Comment

by:jhughesco
ID: 17877070
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.  
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question