My Tomato based router has two interfaces Eth0 - direct connection Tun1 - vpn
Sometimes some websites return "HTTP/1.1 302 Found" and when that happens, I want to add iptables rule to use Tun1 instead of Eth0 for that particular IP.
I can not figure out how to catch "HTTP/1.1 302 Found" response on router and how to use it as a trigger for IPTABLES rule. Should i have tcpdump 24\7 or there are better ways? Any input will be really appreciated. Thanks.