# AllowedIPs = 0.0.0.0/1, 128.0.0.0/1, ::/1, 8000::/1
# Doesnt work, blocks internet in the whole machine
[#] ip link add warp type wireguard
[#] wg setconf warp /dev/fd/63
[#] ip -4 address add 172.99.0.111/32 dev warp
[#] ip -6 address add 2606:4700:110:86ef:6023:1a69:aea0:d87e/128 dev warp
[#] ip link set mtu 1280 up dev warp
[#] resolvconf -a warp -m 0 -x
[#] ip -6 route add ::/1 dev warp
[#] ip -6 route add 8000::/1 dev warp
[#] ip -4 route add 128.0.0.0/1 dev warp
[#] ip -4 route add 0.0.0.0/1 dev warp
# AllowedIPs = 0.0.0.0/0, ::/0
# everthing works, no accses to subnet, but using lookup table to route ????
[#] ip link add warp type wireguard
[#] wg setconf warp /dev/fd/63
[#] ip -4 address add 172.99.0.111/32 dev warp
[#] ip -6 address add 2606:4700:110:86ef:6023:1a69:aea0:d87e/128 dev warp
[#] ip link set mtu 1280 up dev warp
[#] resolvconf -a warp -m 0 -x
[#] wg set warp fwmark 51820
[#] ip -6 route add ::/0 dev warp table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] nft -f /dev/fd/63
[#] ip -4 route add 0.0.0.0/0 dev warp table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] nft -f /dev/fd/63