# Add this to ~/server/wg0.conf upon regeneration

PostUp = iptables -A FORWARD -i %i -j ACCEPT

PostUp = iptables -A FORWARD -o %i -j ACCEPT

PostUp = iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE

PostUp = ip6tables -A FORWARD -i %i -j ACCEPT

PostUp = ip6tables -A FORWARD -o %i -j ACCEPT

PostDown = iptables -D FORWARD -i %i -j ACCEPT

PostDown = iptables -D FORWARD -o %i -j ACCEPT

PostDown = iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE

PostDown = ip6tables -D FORWARD -i %i -j ACCEPT

PostDown = ip6tables -D FORWARD -o %i -j ACCEPT