-
-
Save tetranz/dd86e323d32e65070a4c0e954d2d1aaa to your computer and use it in GitHub Desktop.
usb0
This file contains 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
allow-hotplug usb0 | |
iface usb0 inet dhcp | |
# Adjust TTL as required. | |
post-up iptables -t mangle -A POSTROUTING -o usb0 -j TTL --ttl-set 65 | |
# Uncomment as described below to use WireGuard or not but not both. | |
# Uncomment these lines to use WireGuard. | |
post-up systemctl restart wg-quick@wg0 | |
post-down systemctl stop wg-quick@wg0 | |
# Uncomment these lines to use the device directly without WireGuard. | |
# post-up iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE | |
# post-down iptables -t nat -D POSTROUTING -o usb0 -j MASQUERADE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment