I used the linux NAT howto. I think that's what you want:
http://www.netfilter.org/documentati...NAT-HOWTO.html
My iptables setup is for a direct network (dsl) not dialup, so your will
differ, but it's pretty simple and will be something like this:
*filter
:INPUT ACCEPT [0:0]
#NAT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -m state --state NEW -i ! eth0 -j ACCEPT
#normal iptables rule
-P INPUT DROP
:FORWARD ACCEPT [0:0]
# NAT Forward
-A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -i eth1 -o eth0 -j ACCEPT
#normal iptables rule
-A FORWARD -i eth0 -o eth0 -j REJECT
#NOTE: eth0 is the outward facing nic, eth1 is the local subnet
To turn on NAT you do something like this:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to <outward facing ip>
I redirect all NAT client port 80 requests to squid using this:
iptables -t nat -A PREROUTING -i eth1 -p tcp -s 10.0.0.10/31 --dport 80 -j
REDIRECT --to-port 8080
So, NAT clients just use whatever browser, and it automagically uses Squid
on the linux box
All this was from the NAT howto, your setup will probably differ, read the
HOWTO
"Phisherman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a Linux computer and two Windows 98SE computers. All are
> connected to a hub. The Linux computer using pppd, calls my ISP using
> an external modem connected to the Linux computer's serial port. I
> start Squid, and the Windows computers can surf using IE which is told
> to use port 3128.
>
> But on the Win98 machines, email does not work (POP3 & SMTP ports
> 110, 25), Agent newsreaders don't work (port 115), Norton NAV update
> doesn't work (port ?), and RealPlayer (port ?) does not work. There
> is nothing in NAV nor Agent that I can find to specify a port, nor do
> I know what protocols these applications use (is this necessary?)
>
> I've done some reading on transparent proxy and iptables, but I'm not
> sure what I need to do next to get these applications to work
> properly.?
>
> Thanks