Click to See Complete Forum and Search --> : slip nullmodem-ip fowarding


Sepero
10-06-2005, 04:13 PM
This post is sort of a cross between networking/technical. Hopefully someone will have qualifying knowledge.

Let me begin by saying, I have successfully set up a null-modom slip network connection between 2 computers. I get successful pings from both pc's. Their addresses are 192.168.129.1(host) and 192.168.129.202(client)


Now I'm trying to set up IP Forwarding.
The following is not working and I don't know why. Here is what I run on the host:iptables -t nat -F
iptables -t nat -A POSTROUTING -j SNAT -o ppp0 --to "$MY_IP" # $MY_IP is replaced by the hosts internet ip
echo 1 > /proc/sys/net/ipv4/ip_forward

Here is what I run on the client:route add default gw 192.168.129.1 dev sl0# sets host address as default inet gateway

I have copied my resolv.conf to the client. When I try to "ping google.com", I get:
# ping google.com
PING google.com (216.239.57.99) 56(84) bytes of data.
From tnt2.ij.net (207.22.166.13) icmp_seq=1 Dest Unreachable, Bad Code: 9
From tnt2.ij.net (207.22.166.13) icmp_seq=2 Dest Unreachable, Bad Code: 9
...

The hosts firewall is off. Any suggestions?

Sepero
10-06-2005, 05:09 PM
Solved. The IP fowarding works fine. Apparently my ISP doesn't allow pings to google.com(or other places?).