IP FORWARDING ON LINUX -
SCENARIO -
server1 - 192.168.1.2 - 2 LAN CARDS
server2 - 10.107.80.1
Broad Band Link has been connected to server1 on LAN Card1 [eth0] - 192.168.1.2
The second ethernet card [ eth1] is connected to a switch where other computers are connected.
Now edit the file /etc/sysctl.conf and bring changes to the below line there.
#vi /etc/sysctl.conf
#Controls IP Packet Forwarding
net.ipv4.ip_forward = 1
Save the file and run the below command to enable the changes brought to the file.
# sysctl -p /etc/sysctl.conf
# service network restart
No comments:
Post a Comment