Created
August 7, 2016 19:10
-
-
Save dunkelstern/f6c3cefd345a65ac71d515549b498cd6 to your computer and use it in GitHub Desktop.
sysctl config for ip packet forwarding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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