Skip to content

Instantly share code, notes, and snippets.

@dunkelstern
Created August 7, 2016 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dunkelstern/f6c3cefd345a65ac71d515549b498cd6 to your computer and use it in GitHub Desktop.
Save dunkelstern/f6c3cefd345a65ac71d515549b498cd6 to your computer and use it in GitHub Desktop.
sysctl config for ip packet forwarding
# ipv4
net.ipv4.ip_forward=1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.icmp_ignore_bogus_error_responses = 1
# ipv6
net.ipv6.conf.all.send_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.send_redirects = 0
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment