ip route add default dev tun1 table 20
ip rule add from 192.168.1.125 table 20
iptables -t nat -I POSTROUTING -s 192.168.1.125 -o tun1 -j MASQUERADE
iptables -I FORWARD -s 192.168.1.57 -o tun1 -j ACCEPT
iptables -I FORWARD -i tun1 -j ACCEPT -m state --state RELATED,ESTABLISHED
We use essential cookies to make this site work, and optional cookies to enhance your experience.