auto lo
iface lo inet loopback
iface eth0 inet manual
auto he-ipv6
iface he-ipv6 inet6 tunnel
address 2001:470:39:3c::2/64
gateway 2001:470:39:3c::1
mode sit
endpoint 184.105.250.46
local your-ip
ttl 255
post-up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
auto vmbr0
iface vmbr0 inet static
address your-ip/32
gateway ***
bridge-ports eth0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.30.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up zerotier-cli leave ***
post-up zerotier-cli join ***
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up bash /root/bin/iptables.config.sh
post-up iptables -t nat -A POSTROUTING -s '192.168.30.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.30.0/24' -o vmbr0 -j MASQUERADE
auto vmbr2
iface vmbr2 inet6 static
address your-ipv6/64
bridge-ports none
bridge-stp off
bridge-fd 0
暂无评论