Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

OpenVPN Client - for a specific host IP

Discussion in 'Asuswrt-Merlin' started by phantomc, Jan 24, 2013.

  1. phantomc

    phantomc New Around Here

    Jan 24, 2013

    I own a AC66U router with the RT-AC66U_3.0.0.4_266.23b merlin build flashed.

    I was experimenting with OpenVPN client, and got it working perfectly.

    My only problem is that once I setup OpenVPN client, all my devices connect to the internet through OpenVPN's server, however I want only some IP hosts to use OpenVPN client 1 whereas others use the default pppoe wan connection.

    as an example: I would like to use the default pppoe connection whereas will connect according to the openvpn client 1 settings.

    I tried to disable "Create NAT on tunnel" and "Redirect Internet traffic" however I could not advance as I had not created a static routing before.

    Would this be possible, and how?

    Thanks in advance
  2. jobongo

    jobongo Regular Contributor

    Jan 30, 2013

    There are several ways that you can do this. Usually when you connect to the openvpn server for the commercially provided services the router automatically pulls the route and dns configuration from the server. You can use the


    option in the openvpn configuration to prevent this. Then you would have to setup manual routes and routing rules to direct the addresses that you want to go over the vpn. For instance:

    ip route default dev tun0 table 10
    ip rule add from table 10
    This means that for device that uses the ip of to lookup routing table 10 in order to get its routing information. It would then see that the default route is through the openvpn tunnel and get routed that way. There are a few more steps that need to be done but this is the general idea. Let me know if you need more help.
    Last edited: Feb 9, 2013
  3. janosek

    janosek Regular Contributor

    Jan 8, 2013

Share This Page