I just installed at home a Raspberry Pi with pivpn to always have an encrypted connection to my LAN.
However, when I am outside and connect to the vpn I can't connect to my Local Network. OpenVPN assigns me an IP not in 192.168.0.0/24, which is my local range, in particular now I see 192.168.4.17.
How can I solve that?
This is my /etc/openvpn/server.conf
dev tun proto udp port 1195 ca /etc/openvpn/easy-rsa/pki/ca.crt cert /etc/openvpn/easy-rsa/pki/issued/London_34a9093b-4d5a-42d9-a09d-aeb641065389.crt key /etc/openvpn/easy-rsa/pki/private/London_34a9093b-4d5a-42d9-a09d-aeb641065389.key dh none topology subnet server 10.8.0.0 255.255.255.0 # Set your primary domain name server address for clients push "dhcp-option DNS 220.127.116.11" push "dhcp-option DNS 18.104.22.168" # Prevent DNS leaks on Windows push "block-outside-dns" # Override the Client default gateway by using 0.0.0.0/1 and # 22.214.171.124/1 rather than 0.0.0.0/0. This has the benefit of # overriding but not wiping out the original default gateway. push "redirect-gateway def1" client-to-client keepalive 1800 3600 remote-cert-tls client tls-version-min 1.2 tls-crypt /etc/openvpn/easy-rsa/pki/ta.key cipher AES-256-CBC auth SHA256 user nobody group nogroup persist-key persist-tun crl-verify /etc/openvpn/crl.pem status /var/log/openvpn-status.log 20 status-version 3 syslog verb 3 #DuplicateCNs allow access control on a less-granular, per user basis. #Remove # if you will manage access by user instead of device. #duplicate-cn # Generated for use by PiVPN.io
Thank you in advance.