Route https request to vpn

iptables -A PREROUTING -i eth0 -t mangle -p tcp –dport 443 -j MARK –set-mark 1
echo 201 https >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table https
ip route add default dev tun0 table https
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE

Leave a Reply