[plug] LAN access to the 'net.

Trent Lloyd trent at ucc.gu.uwa.edu.au
Sat Nov 9 17:20:33 WST 2002


iptables -A POSTROUTING -o ppp0 -t nat -j MASQUERADE
probably what u neeed (and each boot, consider init.d script or pppup.d



On Tue, Jan 15, 2002 at 10:52:42AM +0800, Russ Pitman wrote:
> My gateway machine logs in via ippp0 and works fine,but I cannot get out
> to the outside world from the workstation.
> 
> The gateway runs debian woody.
> ifconfig returns
> 
> ippp0     Link encap:Point-to-Point Protocol
> inet addr:203.11.114.185  P-t-P:203.11.114.5  Mask:255.255.255.0
> UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
> RX packets:7451 errors:0 dropped:0 overruns:0 frame:0
> TX packets:7466 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:30
> RX bytes:8002028 (7.6 MiB)  TX bytes:607162 (592.9 KiB)
>                                                             
> route -n returns
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 203.11.114.0    0.0.0.0         255.255.255.0   U     0      0        0 ippp0
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ippp0
> 
> /etc/network/interfaces contains
> 
> # (network, broadcast and gateway are optional)
> auto eth0
> iface eth0 inet static
> 	address 192.168.1.1
> 	#       netmask 255.255.255.248 # I tried both these #
>                 netmask 255.255.255.0
>                 network 192.168.1.0
>                 broadcast 192.168.1.255
>                                                                                              
> The workstation runs debian sid
> 
> ifconfig confirms that eth0 is up
> 
> route -n returns
> 
> Destination   Gateway      Genmask		Flags	Metric Ref Use  Iface
> 192.168.1.0   0.0.0.0      255.255.255.0	U	0	0   0   eth0
> 0.0.0.0	      192.168.1.1  0.0.0.0		UG	0	0   0   eth0		
> 
> /etc/network/interfaces contains
> 
> # (network, broadcast and gateway are optional)
> auto eth0
> iface eth0 inet static
>         address 192.168.1.1
> #       netmask 255.255.255.248 # I tried both these #
>         netmask 255.255.255.0
>         network 192.168.1.0
>         broadcast 192.168.1.255
>         gateway	 192.168.1.1
> #	gateway  203.11.114.0  # This errored as expected #
> 
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward 
> 
> has been run on both boxes, tho it is also run as part of the boot scripts
> 
> I can ping any local address and the ippp0 gateway 203.11.114.0 but none
> other.
> 
> I know that a similiar problem was discussed some time ago on the list
> but was unable to find the thread.
> 
> Would someone point me to the thread or better still tell me what I am 
> missing.
> 
> TIA,                                                           
> -- 
>  russ 
> linux.conf.au 2003	  The Australian Linux Technical Conference
> http://linux.conf.au/	  22-25 January 2003 in Perth, Western Australia
> 
> 



More information about the plug mailing list