mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-24 13:45:29 -08:00
Compare commits
4 commits
97a530c61c
...
2d95844588
Author | SHA1 | Date | |
---|---|---|---|
2d95844588 | |||
94737eb653 | |||
deb57d0aaf | |||
fa2e3f38be |
1 changed files with 4 additions and 6 deletions
|
@ -39,16 +39,14 @@ in
|
|||
type filter hook prerouting priority raw; policy accept;
|
||||
|
||||
# ip daddr 100.64.0.1 dport != 22 nftrace set 1;
|
||||
iifname "tailscale0" ip daddr != 100.64.0.1 nftrace set 1;
|
||||
# iifname "tailscale0" ip daddr != 100.64.0.1 nftrace set 1;
|
||||
iifname "tailscale0" ip daddr != 100.64.0.0/16 mark set 51820;
|
||||
iifname "protonvpn" mark set 51820;
|
||||
}
|
||||
chain postrouting {
|
||||
type nat hook postrouting priority srcnat; policy accept;
|
||||
iifname "tailscale0" ip daddr != 100.64.0.1 masquerade;
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
${pkgs.wireguard-tools}/bin/wg set protonvpn fwmark off
|
||||
|
||||
# table inet tailscale-wg { for ipv4 + ipv6
|
||||
${pkgs.iproute2}/bin/ip -4 rule del not fwmark 51820 table 51820
|
||||
# ${pkgs.iproute2}/bin/ip -6 rule del not fwmark 51820 table 51820
|
||||
|
|
Loading…
Reference in a new issue