vvukotic
2005-05-08, 06:29 AM CDT
Hello,
i have two computers running both FC3 and winXP.
The first one (192.168.0.1) is connected to the internet through ppp0 (dial-up modem).
What i want is to make him a gateway for the other computer.
I tried:
[root@localhost user]# /sbin/ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.255.255
[root@localhost sbin]# echo "1" > /proc/sys/net/ipv4/ip_forward
[root@localhost sbin]# /sbin/modprobe iptable_filter
[root@localhost sbin]# /sbin/modprobe ip_tables
[root@localhost sbin]# /sbin/modprobe iptable_nat
[root@localhost sbin]# /sbin/iptables -F -t nat
[root@localhost sbin]# /sbin/service iptables start
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter nat [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
[root@localhost sbin]# ./iptables --table nat --append POSTROUTING --out-interface pp0 -j MASQUERADE
[root@localhost sbin]# /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
[root@localhost sbin]# echo 1 > /proc/sys/net/ipv4/ip_forward [root@localhost sbin]#
But it's still not working :mad:
[root@localhost ro0t]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=0 ttl=127 time=2.61 ms
The client seems to be configured well as it works when i boot win on the "server" machine.
Can anyone help?
tnx.
i have two computers running both FC3 and winXP.
The first one (192.168.0.1) is connected to the internet through ppp0 (dial-up modem).
What i want is to make him a gateway for the other computer.
I tried:
[root@localhost user]# /sbin/ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.255.255
[root@localhost sbin]# echo "1" > /proc/sys/net/ipv4/ip_forward
[root@localhost sbin]# /sbin/modprobe iptable_filter
[root@localhost sbin]# /sbin/modprobe ip_tables
[root@localhost sbin]# /sbin/modprobe iptable_nat
[root@localhost sbin]# /sbin/iptables -F -t nat
[root@localhost sbin]# /sbin/service iptables start
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter nat [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
[root@localhost sbin]# ./iptables --table nat --append POSTROUTING --out-interface pp0 -j MASQUERADE
[root@localhost sbin]# /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
[root@localhost sbin]# echo 1 > /proc/sys/net/ipv4/ip_forward [root@localhost sbin]#
But it's still not working :mad:
[root@localhost ro0t]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=0 ttl=127 time=2.61 ms
The client seems to be configured well as it works when i boot win on the "server" machine.
Can anyone help?
tnx.