Skip to content

Instantly share code, notes, and snippets.

@freyes
Created September 27, 2018 13:58
Show Gist options
  • Save freyes/ea046182a40fe9b627cb5da0cfb09698 to your computer and use it in GitHub Desktop.
Save freyes/ea046182a40fe9b627cb5da0cfb09698 to your computer and use it in GitHub Desktop.
#
# Disable ipv6 in tun* interfaces
# File: /etc/udev/rules.d/99-ipv6-openvpn.rules
SUBSYSTEM=="net", ACTION=="add", KERNEL=="tun*", RUN+="/sbin/sysctl -w net.ipv6.conf.$env{INTERFACE}.disable_ipv6=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment