Creating a NAT with one eth interface
Luis Murillo
lmurillo at gmx.net
Sun May 29 18:17:15 UTC 2005
ok, I have done:
sudo dhclient eth0
sudo ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0
and all of the instructions given bellow but still can't get the LAN
machines to connect to the Internet, but I can ping and ssh into the
"server" from any of the workstations
On Sun, 2005-05-29 at 19:35 +0200, Wander Boessenkool wrote:
> On Sun, 2005-05-29 at 11:21 -0600, Luis Murillo wrote:
> > The eth0 on the "server" would have the following set-up:
> > eth0 - IP assigned through DHCP (WAN)
> > eth0:0 - 192.168.1.1 (LAN)
> >
>
> sudo vi /etc/network/options:
[...]
> and then run:
> sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
--
Luis Murillo M.
lmurillo at gmx.net
Heredia, Costa Rica
GPG KeyID: D66B35FD
gpg --keyserver pgp.mit.edu --recv-keys D66B35FD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050529/29420541/attachment.sig>
More information about the ubuntu-users
mailing list