What's new

All devices talking to a specfic IP via VPN

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Weggy

Regular Contributor
Hi,

I have a ASUS RT-AC5300 running Asuswrt-Merlin 384.14.

I'm trying to understand if and how I can setup all traffic to a specific IP e.g. 8.8.8.8 to go via VPN. But any traffic to any other IP, to go via WAN. Is this possible and if so how should the setup within the VPN Client "Advanced_OpenVPNClient_Content.asp"?

Many Thanks
 
If I wanted to do this for www.snbforums.com, how would I enter it? The I.P. I see is "104.27.127.97"

Code:
Pinging www.snbforums.com [104.27.127.97] with 32 bytes of data:
Reply from 104.27.127.97: bytes=32 time=5ms TTL=56
Reply from 104.27.127.97: bytes=32 time=5ms TTL=56
Reply from 104.27.127.97: bytes=32 time=5ms TTL=56
Reply from 104.27.127.97: bytes=32 time=5ms TTL=56

So would it read?
Code:
RouteSnbforums    0.0.0.0        104.27.127.97    VPN

Or something else?
 
That's correct. Although bear in mind that most popular websites have multiple IP addresses and these often vary depending on the client's geographic location.
Code:
C:\Users\Colin>nslookup www.snbforums.com
Server:  RT-AC68U.home.lan
Address:  192.168.1.1

Non-authoritative answer:
Name:    www.snbforums.com
Addresses:  2606:4700:20::681b:7f61
          2606:4700:20::681b:7e61
          104.27.127.97
          104.27.126.97
 
Is there a method of defining a setting on a router per website?

So for example:
www.snbforums.com = VPN
www.google.com = WAN

Looks like IP won't work anyway as I can't access all websites via IP "Error 1003 Direct IP access not allowed"
 
Wowerz, that looks like lots of steps. But thank you @ColinTaylor

@RMerlin would it be possible to make this a GUI driven feature? I'd love to see it if it's possible.

No. My implementation is based on a routing table, which has no notion of name resolution. It can only work with IP addresses.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top