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
6 views
Hello.
Network (192.168.1.0/24 eth1) is the server that has access to the resources of the provider (for example 78.29.0.0/23 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 0.0.0.0/0 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 192.168.1.1 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
by
0 like 0 dislike
route add -net 78.29.0.0 netmask 255.255.254.0 dev eth1 
by
110,608 questions
257,186 answers
0 comments
27,923 users