What's new

lan - route : route openvpn traffic to IP?

  • 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!

Symbiot

Regular Contributor
Hi

what settings do I need to set when I want to direct clients that connect via my openVPN server to a specific IP (I am sharing 1 folder on a server)

the openVPN is setup on my ac66u and a friend can connect fine but he cannot reach my shared folder on a server.

from what I can tell I need to:

a: set this in custom configuration:
push "route 192.168.1.1 255.255.255.0"

(haven't rebooted router or anything)

b: create a Route rule, which I've tried to do, but I've never done it before and am unsure of what goes where.

I've set it as follows:

Network/hostIP=10.8.0.1
netmask=255.255.255.0
(from openvpn settings)
Gateway=192.168.1.123 (server where the shared folder is located)
Metric=2 (no idea but saw someone else using 2)
Interface=WAN (since he's connecting from wan side but then again he's connected via openVPN so should it be LAN? )

Hoping for some pointers :)
 
undo all of the above; no routes are needed on the router itself, it already knows where your lan is. you were close with the openvpn command;

Code:
push "192.168.1.101 255.255.255.255"

in the custom config field on the router to tell clients how to find the IP 192.168.1.101 on your LAN. using the 255.255.255.255 netmask restricts the route to the single host.
 

Similar threads

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