Discussion in 'Tomato Firmware' started by fordjohn, Apr 11, 2014.

  1. fordjohn

    fordjohn Network Newbie Member

    Hi All,
    I am still struggling with ip tables on my asus router with the latest vpn firmware. I have copied and pasted the following into the firewall section of my router and rebooted it.


    iptables -t mangle -A PREROUTING -p tcp --dport 80 -s $PROXY_IP -j ACCEPT
    iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 3
    ip rule add fwmark 3 table 2
    ip route add default via $PROXY_IP dev br0 table 2

    What I am trying to do is redirect web traffice to my proxy server. I have configured the ip table of proxy box to redirect port 80 traffic to port 3128.

    The problem that I am having is that traffic seems to pass right through the router and out to the internet with out being routed to the proxy server. Can anyone help me with this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice