Jump to content
Not connected, Your IP: 3.128.31.76
Sign in to follow this  
arshk

Traffic through OpenVPN Only (Tomato, Merlin,RT-N66U)

Recommended Posts

I have successfully followed the AirVPN instructions on setting up the Asus RT-N66U's (Merlin firmware) openvpn client.

 

My concern now is protecting privacy in the event the VPN drops & traffic continues through the ISP.

I would like to route all client traffic through the VPN & in the event it drops, no access to the internet is available to the clients.

 

Does anyone know of a solution for this  ?

 

A workable solution exists for the for DD-WRT routers & I'm guessing similar one can be done for the RT-N66U as it runs a variant of DD-WRT (AsusWRT). I'm not technical enough to implement it so would appreciate any help.

 

 

This post is to everyone that have openvpn configured in a dd-wrt router and wants to block all connections through the ISP if the VPN connection fails, avoiding leaking our real ISP IP.

I setup the connection to AIRVPN servers using the tutorial in https://airvpn.org/ddwrt and then insert following line to the firewall rules: "iptables -I FORWARD -i br0 -o vlan2 -j DROP"
- br0 is the bridge with my lan ports & wireless
- vlan2 is my WAN port connected to the modem ISP

So if there is any connection starting from my lan or wifi to the wan port the firewall of the router blocks the connection.

My firewall rules are like this:
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

 

https://airvpn.org/index.php?option=com_kunena&func=view&catid=3&id=4287&Itemid=142#4287

Share this post


Link to post

Did you know that RT-N66U has critical vulnerabilities that Asus has yet to patch? Read the following: http://www.h-online.com/security/news/item/Critical-vulnerabilities-in-numerous-ASUS-routers-1918469.html

 

Even if you have the best VPN setup, your router has security holes.

 

If I were you, I would write to Asus to insist they fix the holes.

 

I have successfully followed the AirVPN instructions on setting up the Asus RT-N66U's (Merlin firmware) openvpn client.

Share this post


Link to post
Guest amdou

So when vpn connection is lost, your DNS 10.4.0.1 wont work and all connection is stopped. Once you connect to Airvpn everything will be normal.

On DNS leak test, only Airvpn dns will be seen.

Share this post


Link to post
arshk

Check my post on this thread:

 

https://airvpn.org/topic/9920-airvpn-with-tomato-shibby-router/

 

Those firewall rules you posted do work and work fine on tomato based Asus routers....

 

you can even stop and start your openvpn client and then test the net to see if it still works,   once your client is stopped you should get no net access at all not till you start it.

 

And it works fine on my Asus RT-N16 router,  so should work fine on your Asus one.

Share this post


Link to post

 

So when vpn connection is lost, your DNS 10.4.0.1 wont work and all connection is stopped. Once you connect to Airvpn everything will be normal.

On DNS leak test, only Airvpn dns will be seen.

 

I attempted to use AirVPN DNS servers in my tomato router but found it hit and miss,   my issue was after a day or 2 it would fail to browse the internet... it was only till I used openic dns servers all issues were resolved.    Are you using Air dns servers in your router or a combination of another ?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...