Hello Community,
i've set up an Open VPN Server on Ubuntu 20.04 using this instructions:
https://computingforgeeks.com/easy-way-to-install-and-configure-openvpn-server-on-ubuntu/
The server is connected to two networks.
- via ethernet to a local network 192.168.2.X
- via WLAN to a local newtwork 192.168.51.x
The server works and i can connect clients to the server via the ethernet connection. Internet access works. We have a NAS in the 192.168.51.x net. For some reason we can't access this NAS via VPN connection. I couldn't find a solution yet. Even after reading FAQ and postings here. Please help...
The 'server.conf':
local 192.168.2.2
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "route 192.168.51.0 255.255.255.0"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 192.168.2.1"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
The client.ovpn:
client
dev tun
proto udp
remote X.X.X.X 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>
-----BEGIN CERTIFICATE-----
...
route -n on server:
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 100 0 0 enp3s0
0.0.0.0 192.168.51.1 0.0.0.0 UG 110 0 0 wlp2s0
10.8.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
169.254.0.0 0.0.0.0 255.255.0.0 U 110 0 0 wlp2s0
192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0
192.168.51.0 0.0.0.0 255.255.255.0 U 110 0 0 wlp2s0
192.168.51.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
route on client:
Ziel Router Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 50 0 0 tun0
default speedport.ip 0.0.0.0 UG 600 0 0 wlp3s0
10.8.0.0 0.0.0.0 255.255.255.0 U 50 0 0 tun0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0
business-178-01 speedport.ip 255.255.255.255 UGH 600 0 0 wlp3s0
192.168.2.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0
speedport.ip 0.0.0.0 255.255.255.255 UH 600 0 0 wlp3s0
192.168.51.0 _gateway 255.255.255.0 UG 50 0 0 tun0