Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-11-04
2
Medium Priority
?
528 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 2000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

963 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