Difference between revisions of "Net.ipv4.ip forward"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
sudo [[sed -i]] '/#net.ipv4.ip_forward=1/s/^#//g' [[/etc/sysctl.conf]] | sudo [[sed -i]] '/#net.ipv4.ip_forward=1/s/^#//g' [[/etc/sysctl.conf]] | ||
+ | |||
+ | [[sysctl -a]] | grep -w [[net.ipv4]].ip_forward | ||
== See also == | == See also == |
Revision as of 17:10, 18 December 2023
sysctl -w net.ipv4.ip_forward=1
sudo sed -i '/#net.ipv4.ip_forward=1/s/^#//g' /etc/sysctl.conf
sysctl -a | grep -w net.ipv4.ip_forward
See also
Advertising: