Securing and Optimizing Linux:RedHat Edition | All about OS

Build a kernel with Firewall Masquerading and Forwarding support

Категория: Securing and Optimizing

Bringing up interface lo [ OK ]
Bringing up interface ethO [ OK ]
Bringing up interface eth1 [ OK ]
So you can either add the “echo “1″ > /proc/sys/net/ipv4/ip_forward” command line to your “rc.local” script file or you change the value of the line “FORWARD_IPV4=false” to “yes” in the “network” file to set this feature to ON. Personally I prefer the second choice.
Under Red Hat Linux 6.2
• To enable IPv4 forwarding on your RH 6.2 system, use the following command:
Edit the 7etc/sysctl.conf” file and add the following line:
# Enable packet forwarding net.ipv4.ip_forward = 1
You must restart your network for the change to take effect. The command to restart the network is the following:
• To restart all network devices manually on your system, use the following command:
[root@deep /]# /etc/rc.d/init.d/network restart
Setting network parameters [ OK ]
Bringing up interface lo [ OK ]
Bringing up interface ethO [ OK ]
Bringing up interface eth1 [ OK ]
NOTE: The IP forwarding line above is only required if you answered “Yes” to the kernel option “IP:Masquerading (CONFIG_IP_MASQUERADE)” and choose to have a server act as a Gateway and masquerade for your inside network.

Страниц: 1 2 3

« Networking Firewall with Masquerading and Forwarding support.Overview
Configuration of the “/etc/rc.d/init.d/firewall” script file for the Gateway Server »