Routing in Linux, iptables

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Network ( eth1) is the server that has access to the resources of the provider (for example and all of them are using eth0) and access Internet through pptp.

Connect via pptp, there is an interface called ppp0.
For routing of Internet writing:
route-net dev ppp0
The Internet works, internal resources penguasa.
Prescribe to it rules for masquerading all computers on the internal network could access the Internet through this server as a gateway.
iptables-t nat -A POSTROUTING -o ppp0 -j MASQUERADE
From the Internet, but there is no access to the resources of the provider (judging by traceroute packets on the gateway not go away). What rule can do this?
by | 6 views

2 Answers

0 like 0 dislike
iptables-t nat -A POSTROUTING -o eth0 -j MASQUERADE
0 like 0 dislike
route add -net netmask dev eth1 
110,608 questions
257,186 answers
27,923 users