Creating a NAT with one eth interface

Wander Boessenkool wander at tomaatnet.nl
Sun May 29 18:28:19 UTC 2005


On Sun, 2005-05-29 at 12:17 -0600, Luis Murillo wrote:
> ok, I have done:
> sudo dhclient eth0
> sudo ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0

You can put that information in /etc/network/interfaces, that will
restore your config on reboor /restart of networking

The forwarding will not become active until:
1) you reboot (but hey's this is unix, we don't need no reboots) OR
2) you do 'sudo /etc/init.d/networking restart' OR
3) you do 'sudo echo 1 > /proc/sys/network/ipv4/ip_forward'

Hop it heps...


> 
> 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
> 
-- 
BOFH excuse #108:

The air conditioning water supply pipe ruptured over the machine room
-------------- 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/ecf7cc46/attachment.sig>


More information about the ubuntu-users mailing list