Solved

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

Posted on 2006-11-04
2
494 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

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
How to get maximum transfer speed over LAN 4 83
Reset Root Password on CentOS 6 4 56
AWS ELB 5 79
how to install java on RHEL image on EC2 4 28
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

809 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