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!
Add route to remote local network.
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Sat Nov 27, 2021 1:44 pm
-
- OpenVpn Newbie
- Posts: 2
- Joined: Sat Nov 27, 2021 1:44 pm
Re: Add route to remote local network.
I'm find correct command, "route network mask", gw not needed.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Tue May 16, 2023 1:10 pm
Re: Add route to remote local network.
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
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