Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-20-2005, 05:52 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Sweden, Stockholm
Distribution: Slackware, Ubuntu
Posts: 15

Rep: Reputation: 0
Some sort of redirect with iptables?

In my home, i have a slack server, acting as a firewall etc witch also is running a virus-scanning proxy for web, mail, ftp etc..
As it is today, I have to set up the server as a proxy on all the clients, adding ip and port.
I was wondering, is it possible to make some kind of redirect to the port where the proxy is?
Something like, client makes a request to a web page some where, the server redirects the request to the local port of the proxy, and from there, to the web page?

/ Tomas
Old 09-21-2005, 01:17 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I assume you are looking to set up a transparent proxy, take a look at:
Old 09-22-2005, 02:11 AM   #3
LQ Newbie
Registered: Aug 2003
Location: Sweden, Stockholm
Distribution: Slackware, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thumbs up

I didnīt have to install squid cause my proxy was possible to handle transparent mode, but I found the rule for iptables i was looking for,
iptables -t nat -A PREROUTING -i $INTERFACE -p tcp --dport 80 -j REDIRECT --to-port $PORT,
You are my hero of the day



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables redirect patvrs Linux - Networking 15 08-02-2005 08:31 AM
iptables redirect _ben_deb_ Linux - Networking 7 11-13-2004 05:06 AM
IPTABLES redirect question yuzuohong Linux - General 2 01-01-2003 10:47 AM
iptables redirect slack Linux - Networking 0 06-17-2002 04:04 AM
iptables redirect bhartnett Linux - Networking 1 09-26-2001 09:11 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration