Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

enable ip forwarding linux

sysctl net.ipv4.ip_forward       # to get IP forwarding status
  net.ipv4.ip_forward = 0        # IP forwarding is disabled

sysctl -w net.ipv4.ip_forward=1  # to enable IP forwarding (set to 0 to disable)
  net.ipv4.ip_forward = 1        # IP forwarding is enabled
Source by www.ducea.com #
 
PREVIOUS NEXT
Tagged: #enable #ip #forwarding #linux
ADD COMMENT
Topic
Name
4+7 =