ovpn client routing

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
bob ross
OpenVpn Newbie
Posts: 1
Joined: Wed Jan 05, 2022 12:02 pm

ovpn client routing

Post by bob ross » Wed Jan 05, 2022 12:26 pm

Hi, I currently have openvpn configured on my router using the ovpn config file supplied by nordvpn.
I managed to figure out how to only route traffic to specific external ip address'; however what i'd really like to do, is configure the config file in such a way as to only route traffic to/from specific machines on my network or, route everything but certain machines over vpn.

As a practical example, how would I exclude my games consoles from going out over the vpn? ... is this even possible using only the client side config file on my router?

Working example code - routes only one external site via vpn
route-nopull
route 104.16.155.36

not working example - routes only one internal ip address
route-nopull
route 192.168.1.30 255.255.255.0

Hopefully somebody can help.

Code: Select all

client
route-nopull
route 104.16.155.36
dev tun
proto udp
remote 81.92.202.20 1194
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
comp-lzo no

remote-cert-tls server

auth-user-pass
verb 3
pull
fast-io
cipher AES-256-CBC
auth SHA512
<ca>
-----BEGIN CERTIFICATE-----
Happy new year!

Post Reply