Skip to contentSkip to conversation

Port Redirection with iptables

DISCUSSION Jason Cook 1 participant 1 message Dec 17, 2003

lore
Share & tools
lore

Jason Cook

author
#0 lore raw

I tried port scanning the linux box. Port 80 responded as Squid. The PREROUTING line in my iptables showed traffic.

This might be a stupid question, but how do you set up the client to use the linux box as a gateway/firewall/cache server?

I have the linux box set as the default gateway/DNS server on the client machine (along with the real DNS server)

Quoted 5 lines
Quoted 1 line

I am trying to install Linux as a firewall and

caching

Quoted 3 lines

server with iptables and Linux. I
need to do this transparently.

Quoted 8 lines
Quoted 1 line

I installed Red Hat Linux 9. Ran all of the

updates

Quoted 4 lines

nice and smooth. Turned on ip forwarding. Configured Squid...and tested it by specifying the servers ip address and port 3128 from the browser. Works great. Here the options I had

changed

Quoted 1 line

in the config file.

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/