Proxy question

Discussion in 'Tomato Firmware' started by rs232, Nov 11, 2010.

  1. rs232

    rs232 Network Guru Member

    I've set my tomato to redirect calls on port 80 to my LAN proxy:

    iptables -t nat -A PREROUTING -i br0 -s ! <proxy ip> -p tcp --dport 80 -j DNAT --to <proxy ip>:<proxy port>
    iptables -t nat -A POSTROUTING -o br0 -s <lan subnet> -p tcp -d <proxy ip> -j SNAT --to `nvram get lan_ipaddr`
    iptables -t filter -I FORWARD -d <proxy ip> -i br0 -o br0 -p tcp --dport <proxy port> -j ACCEPT

    Now, can I add the line

    iptables -t nat -A PREROUTING -i br0 -s ! <proxy ip> -p tcp --dport 443 -j DNAT --to <proxy ip>:<proxy port>
    to use the proxy for SSL traffic too?

    - retoric question as I've tried and it doesn't work -

    Thanks :)
  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