IP Masquerading
Hi trying to setup IP Masquerading, and it isn't working. This is what is on the router.
Code:
[root@localhost root]# ifconfig Here is the stuff for the other computer Code:
[root@localhost root]# ssh 192.168.0.2 |
try enabling forwarding in your kernel somewhere in your init.d *.rc files
# echo "Enabling IP forwarding" # echo "1" > /proc/sys/net/ipv4/ip_forward |
yeah I did that echo command. But still cant access the internet on the other computer. Does the above output look right?
|
looks ok to me (except it shows up twice)
what commands did you use to set up masquerading ? more infos: http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/ ------------------- # sample script # enable ip forwarding in kernel echo 1 > /proc/sys/net/ipv4/ip_forward # flush rules ipchains -F ipchains -P forward DENY # hide internal net behind ppp0 ipchains -A forward -i ppp0 -s 192.168.0.0/255.255.255.0 -j MASQ ------------ |
All times are GMT -5. The time now is 08:39 AM. |