How do I set up OpenVPN to log in to my home network?
Given: VPS on the Internet, where the OpenVPN Server is raised
At home, the OpenVPN Client is raised on the router
They see each other and ping in both directions.
Settings on the client
client
tls-client
tls-auth ta.key 1
auth SHA1
dev tun
proto udp
remote 185.188.zzz.zzz 1194
cipher AES-256-CBC
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
verb 3
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ping-restart 60
ping 10
Server settings
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-server
tls-auth ta.key 0
server 10.10.10.0 255.255.255.0
cipher AES-256-CBC
status openvpn-status.log
log openvpn.log
duplicate-cn
push "route 10.10.10.0 255.255.255.0 10.10.10.1"
verb 3
mute 20
max-clients 15
keepalive 10 120
client-to-client
persist-key
persist-tun
route-gateway 10.10.10.1
topology subnet
The VPS has a white ip of 185.188. zzz.zzz and a vpn ip of 10.10.10.1
The router at home does not have a white ip, the vpn is 10.10.10.4, the home LAN has addresses 192.168.1.1-100, the router has a usb modem 192.168.8.1 enabled
Ping inside a vpn in both directions
From the computer 192.168.1.5 there is a ping on 10.10.10.1
But from the VPN to the home network and to the router, it no longer pings (from the server 10.10.10.1 there is no ping 192.168.1.1)
How can I access my local home network with a VPN?
0