Answer the question
In order to leave comments, you need to log in
Setting up openvpn in reverse?
There is an openvpn server No. 1 (win 2012, terminal), there is a gateway in some network No. 2 (ubuntu), on which an openvpn client is configured to server No. 1.
The task is to configure access from server No. 1 to network resources behind server No. 2.
For this, the following was done.
Server config #2 (ovpn client)
verb 3
client
tls-client
dev tun
proto udp
remote 193.xx.xx.xx
remote-cert-tls server
nobind
keepalive 20 120
persist-tun
pkcs12 terminal.p12
verb 3
port 1194
proto udp
dev tun
tls-server
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
crl-verify crl.pem
server 192.168.12.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
persist-tun
client-config-dir ccd
Answer the question
In order to leave comments, you need to log in
https://community.openvpn.net/openvpn/wiki/RoutedLans
in server config add
route 192.168.0.0 255.255.255.0
in ccd file for client
iroute 192.168.0.0 255.255.255.0
Packets leave the network, but do not come back. Either on all machines in the network 192.168.0.245/24, you need to add a route through the server 192.168.0.245, or this server should be the default gateway on them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question