OpenVPN - True IP is exposed when router boots up, how to prevent this?

Discussion in 'Tomato Firmware' started by Rockstead, Nov 17, 2013.

  1. Rockstead

    Rockstead Reformed Router Member

    I didn't realize this was happening, it kind of defeats the purpose of being behind a vpn.

    I'm using Shibby's Tomato and the OpenVPN client is checked to start on WAN.

    I also have the following script in my firewall section, when my VPN connection is down, as if I pressed stop by mistake, it will stop any Internet access, only way to get out is if VPN is up.

    iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
    iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
    iptables -I FORWARD -i br0 -o vlan2 -j DROP
    iptables -I INPUT -i tun0 -j REJECT
    iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
  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