Answer the question
In order to leave comments, you need to log in
How to set up a network in openVpn?
Good afternoon! Actually there is a configured ovenvpn server. Task: there is a client who needs to connect to various servers that do not have ovvpn connections, but there are restrictions on access via IP, for example 10.8.0.0/24. How to make one client appear to servers from the server's openvpn network?
server config
port 443
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.8.0.0 255.255.255.0" # Подсеть нашего VPN сервера
push "route 192.168.1.0 255.255.255.0" # Подсеть нашего Офиса№1
push "route 192.168.10.0 255.255.255.0" # Подсеть нашего Офиса№2
route 192.168.10.0 255.255.255.0
route 192.168.1.0 255.255.255.0
client-to-client
client-config-dir /etc/openvpn/ccd
auth md5
keepalive 10 120
topology subnet
route-method exe
comp-lzo
tls-server
persist-key
persist-tun
verb 4
management localhost 1501
push "dhcp-option DNS 10.8.0.3"
client
dev tun
proto tcp
remote 1.2.3.4 443
resolv-retry infinite
cipher BF-CBC
auth md5
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
sndbuf 0
rcvbuf 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question