linux routing
pls help me out, how to set up routing on linux server
|
Easy.
|
To permanently set ip forwarding do this:
Code:
vi /etc/sysctl.conf |
You can configure Linux Box as a router using below scenario :
1. PC/Server with two lan cards. Code:
i.eth1=>conteting internal LAN 192.169.10.xxx Code:
#vi /etc/sysctl.conf: Code:
sysctl -p /etc/sysctl.conf Code:
iptables -F Code:
# iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE Code:
iptables -L |
All times are GMT -5. The time now is 12:31 PM. |