ENABLE IP FORWORDING (RHEL ,CENT OS)

Open /etc/sysctl.conf file using a text editor, enter:

------------------------------------------------------------------------------------------------------------------------------------------
 # vi /etc/sysctl.conf
--------------------------------------------------------------------------------------------------

Set net.ipv4.ip_forward to 1, enter:
 
-------------------------------------------------------------------------------------------------- 
net.ipv4.ip_forward = 1
-------------------------------------------------------------------------------------------------- 
 
Save and close the file. Reload the changes by typing the following command: 
 
--------------------------------------------------------------------------------------------------
# sysctl -p
--------------------------------------------------------------------------------------------------                  

No comments:

Post a Comment

Start and Stop ssh-agent

Below is the bash script used to start and stop ss-agent #!/bin/bash ## in .bash_profile SSHAGENT=`which ssh-agent` SSHAGENTARGS="...