10.20.20.0/16 is my production network. We need to push that route to the VPN settings. So subnet ID for my network is 10.20.0.0 and subnet mask is 16bit which means 255.255.0.0. You`ll enter here data of your production network – network on which computer to which you wish to access reside. Command is. push “route 10.20.0.0 255.255.0.0” Save

I have an OpenVPN server (On ubuntu), and I can connect to it through my client (Windows 8) The problem starts when I try to route ALL traffic through the VPN. I have added the push flags in server.conf: push "redirect-gateway def1" push "dhcp-option DNS 8.8.8.8" When I connect from the client, the client outputs: Note the space at the end of "route " to not reject "route-gateway", for example. There is an implicit 'pull-filter accept ""' at the end so that all options not rejected by any filter are accepted. Acknowledges shameless imitation of --push-remove. Oh, and if server doesn't push anything (or client doesn't use client directive but merely tls-client; or has route-nopull, which this question doesn't) then desired line for OpenVPN client config is route 0.0.0.0 0.0.0.0. That would add a default route through the VPN. Place it on your OpenVPN configuration (client) file with a command in append, and OpenVPN will execute it when the default route comes up. For example, if you want to add a static route for 192.168.0.0 (obviously this net are on the remote side) through your OpenVPN gateway (IP 10.15.30.31), you have to add for Linux:

Hi, /u/markododa! This is a reminder to ensure your recent submission in r/OpenVPN receives the help it needs.. Before asking a question, please read the OpenVPN manual it probably has the answer

Because of the iroute entries you will see below, openvpn knows this too and skips the push for the client. The route entries are telling his server to add a route for each of 10.10.1.0, and 10.10.3.0 to its kernel's routing table, and both will be routed to the tunnel interface and to openvpn.

Jun 11, 2020 · Use OpenVPN push commands to route all OpenVPN client traffic through the VPN. Environment. OpenVPN Routed Client/Server -OR-OpenVPN Bridged Client/Server; NCOS 6.6.4

Jan 06, 2017 · set interfaces openvpn vtun0 server push-route 192.168.30.0/24 Set this to the IP address of the router (remember that it needs to be an accessible subnet, set above) set interfaces openvpn vtun0