Solved

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

Posted on 2006-11-04
2
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DB2 9.7 Grant Execute SP 4 61
How many users could squid support? 21 63
http response code 3 39
Parsing RSyslog entries 5 10
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

752 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