system: Change mullvad VPN configuration.

This commit is contained in:
Raghav Gururajan 2023-10-28 12:13:04 -04:00
parent 40e43585c7
commit a88749c0fd
Signed by: raghavgururajan
GPG Key ID: 5F5816647F8BE551
1 changed files with 4 additions and 4 deletions

View File

@ -227,14 +227,14 @@
(service wireguard-service-type
(wireguard-configuration
(interface "mullvad")
(addresses '("10.64.72.77/32" "fc00:bbbb:bbbb:bb01::1:484c/128"))
(addresses '("10.65.205.145/32" "fc00:bbbb:bbbb:bb01::2:cd90/12"))
(dns '("10.64.0.1"))
(peers
(list
(wireguard-peer
(name "se-sto-wg-006")
(endpoint "185.65.135.73:51820")
(public-key "5WNG/KKCtgF4+49e/4iqvHVY/i+6dzUmVKXcJj7zi3I=")
(name "se-sto-wg-008")
(endpoint "185.65.135.71:51820")
(public-key "4nOXEaCDYBV//nsVXk7MrnHpxLV9MbGjt+IGQY//p3k=")
(allowed-ips '("0.0.0.0/0" "::0/0"))
(keep-alive "25"))))
(post-up '("iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT"))