Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux ip forwarding

# Enable IP forwarding
sudo sysctl -w net.ipv4.ip_forward=1 			# IPv4
sudo sysctl -w net.ipv6.conf.all.forwarding=1 	# IPv6

# Check status
sudo sysctl net.ipv4.ip_forward					# IPv4
sudo sysctl net.ipv6.conf.all.forwarding=1		# IPv6
 
PREVIOUS NEXT
Tagged: #linux #ip #forwarding
ADD COMMENT
Topic
Name
1+8 =