Difference between revisions of "Net.ipv4.ip forward"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  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
+
  [[sysctl -a]] | [[grep -w]] [[net.ipv4]].ip_forward
  cat [[/etc/sysctl.conf]] | grep -w [[net.ipv4]].ip_forward
+
  cat [[/etc/sysctl.conf]] | [[grep -w]] [[net.ipv4]].ip_forward
  
 
== Related ==
 
== Related ==

Revision as of 11:49, 24 January 2024

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
cat /etc/sysctl.conf | grep -w net.ipv4.ip_forward

Related

/proc/net/

See also

Advertising: