Last edited:
Hi there,
I have a DS215J and want to do the following:
- VPN server run with OpenVPN -> done
- DDNS setup with synology.me -> done
- exported *.ovpn file and connected via Ubuntu -> done
- issue: Ubuntu has no internet access, when connected to the VPN
Router settings are the following:
- Model: Speedport Smart
- TCP ports forwarded to the NAS: 443, 80, 8080, 8443 + another 3 ports
- UDP ports forwarded to the NAS: 1194 (for OpenVPN), 1701, 500, 4500 (for L2TP), 80, 8080, 8443, 443
NAS settings:
- OpenVPN up and running (besides L2TP)
- Firewall disabled
- DDNS enabled with synology.me
- no static routing configured
Open VPN client command line output:
*.ovpn settings:
I have no idea, why the internet access from the VPN client is not working.
I also see no missing thing from the VPN tutorial.
Update: I figured out, that I can ping the local ip 10.8.0.6 and external ip's, but no host name:
Besides the google DNS I've also tried the local DNS from the router, with no success:
I have a DS215J and want to do the following:
- VPN server run with OpenVPN -> done
- DDNS setup with synology.me -> done
- exported *.ovpn file and connected via Ubuntu -> done
- issue: Ubuntu has no internet access, when connected to the VPN
Router settings are the following:
- Model: Speedport Smart
- TCP ports forwarded to the NAS: 443, 80, 8080, 8443 + another 3 ports
- UDP ports forwarded to the NAS: 1194 (for OpenVPN), 1701, 500, 4500 (for L2TP), 80, 8080, 8443, 443
NAS settings:
- OpenVPN up and running (besides L2TP)
- Firewall disabled
- DDNS enabled with synology.me
- no static routing configured
Open VPN client command line output:
Code:
Thu Jan 27 16:24:18 2022 [xxx.synology.me] Inactivity timeout (--ping-restart), restarting
Thu Jan 27 16:24:18 2022 /sbin/ip addr del dev tun0 local 10.8.0.6 peer 10.8.0.5
Thu Jan 27 16:24:18 2022 SIGUSR1[soft,ping-restart] received, process restarting
Thu Jan 27 16:24:23 2022 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Jan 27 16:24:23 2022 TCP/UDP: Preserving recently used remote address: [AF_INET] .... <ip>
Thu Jan 27 16:24:23 2022 UDP link local (bound): [AF_INET][undef]:1194
Thu Jan 27 16:24:23 2022 UDP link remote: [AF_INET] .... <ip>
Thu Jan 27 16:24:25 2022 [xxx.synology.me] Peer Connection Initiated with [AF_INET] .... <ip>
Thu Jan 27 16:24:26 2022 TUN/TAP device tun0 opened
Thu Jan 27 16:24:26 2022 /sbin/ip link set dev tun0 up mtu 1500
Thu Jan 27 16:24:26 2022 /sbin/ip addr add dev tun0 local 10.8.0.6 peer 10.8.0.5
Thu Jan 27 16:24:26 2022 Initialization Sequence Completed
*.ovpn settings:
Code:
dev tun
tls-client
remote xxx.synology.me 1194
float
redirect-gateway def1
dhcp-option DNS 1.1.1.1
dhcp-option DNS 1.0.0.1
dhcp-option DNS 8.8.8.8
pull
proto udp
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
comp-lzo
reneg-sec 0
cipher AES-256-CBC
auth SHA512
auth-user-pass
...
I have no idea, why the internet access from the VPN client is not working.
I also see no missing thing from the VPN tutorial.
Update: I figured out, that I can ping the local ip 10.8.0.6 and external ip's, but no host name:
Code:
# ping 10.8.0.6
PING 10.8.0.6 (10.8.0.6): 56 data bytes
64 bytes from 10.8.0.6: icmp_seq=0 ttl=64 time=0.707 ms
# ping www.microsoft.com
ping: unknown host
# ping 2.18.233.62
PING 2.18.233.62 (2.18.233.62): 56 data bytes
64 bytes from 2.18.233.62: icmp_seq=0 ttl=58 time=40.243 ms
# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=57 time=42.636 ms
Besides the google DNS I've also tried the local DNS from the router, with no success:
Code:
dhcp-option DNS 192.168.2.1