Add route to remote local network.

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
RomanO.
OpenVpn Newbie
Posts: 2
Joined: Sat Nov 27, 2021 1:44 pm

Add route to remote local network.

Post by RomanO. » Sat Nov 27, 2021 1:50 pm

Hi!
I'm have trouble with adding route from cfg file. For windows I'm use "route network mask gw", but this not work for Mac os. Server ovpn it's mikrotik, and I'm can't push route from him. Please write correct command. Big thanks!

RomanO.
OpenVpn Newbie
Posts: 2
Joined: Sat Nov 27, 2021 1:44 pm

Re: Add route to remote local network.

Post by RomanO. » Tue Nov 30, 2021 5:53 am

I'm find correct command, "route network mask", gw not needed.

funwisely
OpenVpn Newbie
Posts: 5
Joined: Tue May 16, 2023 1:10 pm

Re: Add route to remote local network.

Post by funwisely » Tue May 16, 2023 4:02 pm

Here are few examples for add/delete additional routes on MacOS

sudo route –n add –net 172.16.1.0/24 10.8.0.1
sudo route add -host 172.16.10.7/32 -gateway 192.168.0.244
sudo route add -host 172.16.10.7/32 -gateway $DEFAULTGATEWAY

sudo route -n delete default A.B.C.D
sudo route -n delete -net 172.16.1.0/24
sudo route -n delete -net 137.200.42.0/24

Post Reply