Ho creato con una PI un server VPN che incollo la configurazione, ed aperto sul router le porte della mia rete domesntica, la PI e collegata al router tramite cavo LAN:
Codice: Seleziona tutto
dev tun
proto tcp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/ubuntu_7cd0ee4>
key /etc/openvpn/easy-rsa/pki/private/ubuntu_7cd0ee>
dh none
ecdh-curve prime256v1
topology subnet
server 192.168.0.70 255.255.255.0
# Set your primary domain name server address for clients
push "dhcp-option DNS 192.168.0.70"
push "dhcp-option DNS 8.8.4.4"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/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
client-config-dir /etc/openvpn/ccd
keepalive 15 120
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 openvpn
group openvpn
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
Seguono le specifiche per configurare la VPN sul fritzbox....
L'ip interno della PI e 192.168.0.70 e la porta verso l'esterno con ddns è 1194, correttamente aperta:
Come configuro i parametri sulla FritzBox? grazie