1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Iptables

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.

    #!/bin/sh
    PROXY_IP=192.168.1.10

    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.
    Thanks
     

Share This Page