initial ipv6 deployment

This commit is contained in:
2023-04-04 01:54:45 -07:00
parent 40de9b87a1
commit 659d5ffebc
11 changed files with 90 additions and 45 deletions

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env bash
apk add --no-cache wireguard-tools-wg
set -x
local_gateway=$(ip route | grep default | awk '{print $3}')
# This used as the gateway address for NAT-PMP to work properly
@@ -19,5 +18,9 @@ ip route add default via "$wg_gateway"
# Note that the DNS isn't changed, so there's actually a leak there
# That's on purpose, just in case I want to access local jackett from qbit
# Still need to figure out how to make this work with IPv6
# Prevent IPv6 leaks
# ip -6 route del default
# Finally, optionally allow access to the home network
# ip route add "\{\{ home_network }}" via "$local_gateway"