#!/bin/bash source /tunnel/client_config.sh iptables -t nat -D PREROUTING -i tun100 -p tcp -m tcp --dport 1:65535 -j DNAT --to-destination $that_ip:1-65535 iptables -t nat -D PREROUTING -i tun100 -p udp -m udp --dport 1:65535 -j DNAT --to-destination $that_ip:1-65535 iptables -t nat -D POSTROUTING -o ens33 -p tcp -m tcp --dport 1:65535 -d $that_ip -j SNAT --to $my_ip iptables -t nat -D POSTROUTING -o ens33 -p udp -m udp --dport 1:65535 -d $that_ip -j SNAT --to $my_ip