Re: provide NAT service with 1 LAN card only
From: Fool (fool_at_tom.com)
Date: 2 Aug 2003 01:13:38 +0800
I have tried, but it does not work.
However, your information help me to seek further solutions. I shall see
more Linux books to learn about NAT.
Thank you very much.
"Michael Forster" <email@example.com> ¼¶¼g©ó¶l¥ó
> "Fool" <firstname.lastname@example.org> wrote in message news:email@example.com...
> > I have a service installed Redhat 7.2.
> > It has 1 LAN card only.
> > The LAN card is connected to two machines: (via a hub)
> > - an ADSL modem
> > - another computer acting as a workstation (ip 10.10.10.61)
> > I have tried the following 2 commands:
> > 1) echo 1 > /proc/sys/net/ipv4/ip_forward
> > 2) iptables -A FORWARD -s 10.10.10.61 -p icmp -j ACCEPT
> The line no 2 should be somethnng like this
> iptables -t nat -A POSTROUTING -o pppoe -j MASQUERADE
> This assumes that your ADSL modem is device pppoe
> This would enable your NAT.
* ~ let us linux ~ *
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----