[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help with Masquerading and Ip tables



Hi 
Can anybody please help

I am trying to setup a network and getting frustrated by the day.

I am dialling in from home (HOME) 192.168.0.4 into my work (WORK)
192.168.0.1 using PPP. I have set a kernel at work with all the 
IP stuff in the kernel. Stuff like NAT and so on.

Once I am logged on I can telnet from HOME into WORK using 
192.168.0.1 or 147.134.132.156 (which is my WORK). I have tried
all the advices but still my HOME cannot go past WORK. In particular 
when I run route -n on WORK I get the following

Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Ref    Use Iface
192.168.0.4   0.0.0.0       255.255.255.255 UH    0      0        0 ppp0
147.134.128.0 0.0.0.0       255.255.248.0   U     0      0        0 eth0
0.0.0.0       147.134.128.5 0.0.0.0         UG    0      0        0 eth0

on HOME I get
% /sbin/route -n
Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Ref    Use Iface
192.168.0.1   0.0.0.0       255.255.255.255 UH    0      0        1 ppp0
127.0.0.0     0.0.0.0       255.0.0.0       U     0      0        0 lo
0.0.0.0       192.168.0.1   0.0.0.0         UG    0      0        6 ppp0

I have tried on WORK
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
as adviced my experts but still nothing changes. I cannot even access
147.134.128.0 or 147.134.128.5 which is my WORK gateway.

Any help

/------------------------------------------------------------------------------/
Daniel J. Mashao	      	
Electrical Engineering                    daniel@eng.uct.ac.za
University of Cape Town	       	          http://www.eleceng.uct.ac.za/~daniel 
Rondebosch, 7700, S. Africa               (w) 021-6502816  (c) 082-928-3692
/------------------------------------------------------------------------------/



Reply to: