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

Notices


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

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


Hi!
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
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I assume you are looking to set up a transparent proxy, take a look at:
http://www.squid-cache.org/Doc/FAQ/FAQ-17.html#ss17.4
 
Old 09-22-2005, 02:11 AM   #3
zooper
LQ Newbie
 
Registered: Aug 2003
Location: Sweden, Nora Vram
Distribution: Slackware, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thumbs up

Thnx!
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

/Tomas
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:45 AM.

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