User Tools

Site Tools


OpenVPN - Considerations

route add mask;
route add mask;
route add mask;
route add -net gw
route add
push "route";
push "route";
push "redirect-gateway def1"; 
push "route"; 
push "dhcp-option DNS";
push "redirect-gateway local def1"
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
push "route"
push "dhcp-option DNS"
push "dhcp-option DNS"
push "dhcp-option WINS"
–route network/IP [netmask] [gateway] [metric]
vpn_gateway — The remote VPN endpoint address (derived either from –route-gateway or the second parameter to –ifconfig when –dev tun is specified).
net_gateway — The pre-existing IP default gateway, read from the routing table (not supported on all OSes).
remote_host — The –remote address if OpenVPN is being run in client mode, and is undefined in server mode.
route add -net netmask gw $5
Setting parameter 121 in dhcp. Networking and routing between subnets works perfectly.


openvpn/considerations.txt · Last modified: 2020/07/15 10:30 by

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki