Difference between revisions of "Sysctl (command)"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
 
  [[iptables]] -t nat -A PREROUTING -i eno1 -p tcp --dport 5900 -j DNAT --to 127.0.0.1:5900
 
  [[iptables]] -t nat -A PREROUTING -i eno1 -p tcp --dport 5900 -j DNAT --to 127.0.0.1:5900
 
  sysctl -w net.ipv4.ip_forward=1
 
  sysctl -w net.ipv4.ip_forward=1
  sysctl -p /etc/sysctl.conf
+
  sysctl -p [[/etc/sysctl.conf]]
  
  
 
  sysctl -w kernel.perf_event_paranoid=X ([[node exporter]] <ref>https://github.com/prometheus/node_exporter</ref>)
 
  sysctl -w kernel.perf_event_paranoid=X ([[node exporter]] <ref>https://github.com/prometheus/node_exporter</ref>)
 +
 +
 +
* <code>[[sysctl]] -w net.ipv4.[[ip_forward]]=1</code>
 +
* <code>sysctl -w net.ipv6.conf.all.forwarding=1</code>
 +
  
  

Revision as of 11:50, 6 December 2020

Advertising: