1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
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!

VPN Client in Android - how to route all traffic via VPN server?

Discussion in 'Asuswrt-Merlin' started by Sbfnu, Jul 20, 2018.

  1. Sbfnu

    Sbfnu Regular Contributor

    Joined:
    Jul 19, 2018
    Messages:
    53
    Hi all,

    After I set up the VPN server of Merlin (using DDNS) and configured the client part on my Android device the VPN connection is established successfully.

    But I realized that only a small portion of traffic is routed via the VPN.

    Since I like to use that when being in cafes, hotels etc using their open hotspot:

    How to route all client traffic via VPN?

    Thank you!
     
  2. indark

    indark Regular Contributor

    Joined:
    Jan 17, 2014
    Messages:
    196
    which VPN server did you set up? OpenVPN? PPTP? or IPSEC?
    I got lazy and just setup IPSEC for now, it redirect traffic as one would expect.
    there should be an option to redirect internet traffic in advance setup for OpenVPN, maybe for PPTP as well.
    Untitled.png
    currently on stock firmware, but should not have much difference
     
  3. CaptainSTX

    CaptainSTX Very Senior Member

    Joined:
    May 2, 2012
    Messages:
    1,649
    You do understand that when you route your traffic from your phone to your VPN server, your speed connecting to the WWW through the server will be reduced to some percentage of the upload speed of your Internet connection at the server's location. Might not be a problem if you have a symetrical connection from your ISP.

    A better solution is to subscribe to a VPN service and connect to it using their VPN client on your phone.
     
  4. Sbfnu

    Sbfnu Regular Contributor

    Joined:
    Jul 19, 2018
    Messages:
    53
    I have setup OpenVPN - and I have no IPsec option at all. How to get that?

    Also, how to get rid of the certificate error when using https? I'm using DDNS, but haven't had any luck of generating the right certificate for my URL. How to accomplish that?

    Thanks for helping me.
     
  5. Sbfnu

    Sbfnu Regular Contributor

    Joined:
    Jul 19, 2018
    Messages:
    53
    No problem, I can live with that and enjoying the benefit of the added security of my own VPN server connection.

    I disagree, this is not the better solution. Security-wise I trust my own VPN server way more then the one from a service provider that I cannot audit.
     
  6. indark

    indark Regular Contributor

    Joined:
    Jan 17, 2014
    Messages:
    196
    which router do you have? and which firmware version is it?
    Untitled2.png
    but even with OpenVPN, you should be able to just redirect traffic with the option checked.

    by genereating certificate, I am assuming you mean
    Untitled.png
    last time I had issue overnight, I just power cycle and clear nvram, didn't try anything else ;x
    It does require you to reconfigure everything, so can be a pain to do it.
    Maybe someone else will have better solution
     
  7. Sbfnu

    Sbfnu Regular Contributor

    Joined:
    Jul 19, 2018
    Messages:
    53
    Router: RT-AC68U

    FW: 3.0.0.4.380.68_4

    I checked, and I don't have that redirect option (maybe it is called differently?).

    Certificate: I have that https error regardless of rebooting the router. I haven't figured out how to generate the correct certificate for dnsomatic DDNS yet...
     
  8. Sbfnu

    Sbfnu Regular Contributor

    Joined:
    Jul 19, 2018
    Messages:
    53
    @indark: Indeed, it works now - after I checked the redirect traffic option!

    Now I only have to master my certificate error, but I'll create another thread for that since it's a different topic.
     
  9. Xentrk

    Xentrk Very Senior Member

    Joined:
    Jul 21, 2016
    Messages:
    1,683
    Location:
    The Land of Smiles