AnteL_1366
how can i push the static route to my clients , for separating some subnet to use ISP's gateway not vpn gateway, while vpn is connected !
here's the server config file
===================================
1.
SERVER CONFIG:
port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
mssfix 1400
push "dhcp-option DNS 94.140.14.14"
push "dhcp-option DNS 94.140.15.15"
push "redirect-gateway def1 bypass-dhcp"
######route 1.1.1.0 255.255.255.0 net_gateway
######push "route 1.1.1.0 255.255.255.0"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server *******.crt
key server *******.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-***************SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
verb 3
=============================================
And here's the client config file
=============================================
2.
CLIENT CONFIG:
client
pull
proto udp
explicit-exit-notify
remote x.x.x.x 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server ********** name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-**********************-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
===========================================================
I tried add
#route 1.1.1.0 255.255.255.0 net_gateway
#push "route 1.1.1.0 255.255.255.0"
line in server config file but it doesn't work ! when i add those lines to client config it will work but i have more that 2000 user i can't add this lines to all of them !
what line should i add in both , server side and client side config to push route which i want automatically ?