I have 2 interfaces:

eth0 and tap0.

eth0 - external interface, tap0 ( 192.168.100.0/24 subnet ) - internal interface. How to add internet to internal interface ?

I execute:

echo "1" >> /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth0 -j MASQUERADE but ping www.com or ping ip not work in computer with ip 192.168.100.2

link|improve this question
1. This would be better on superuser. – Vicky Nov 1 '10 at 17:21
1  
2. You should accept some answers to some of your other questions. – Vicky Nov 1 '10 at 17:22
feedback

migrated from stackoverflow.com Nov 2 '10 at 2:59

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown