Ik heb de openvpn.conf zo ingesteld in mijn ET8000 die ik wel eens mee neem op vakantie, de openvpn server staat op mijn Synology NAS, dan hoef je alleen nog maar port 1194 in je router te forwarden. Het certificaat heb ik door mijn NAS laten genereren.
dev tun
tls-client
remote url of domein naam van de vpn server 1194
# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)
#float
# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)
redirect-gateway def1
# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.
dhcp-option DNS 192.168.1.1
pull
# If you want to connect by Server's IPv6 address, you should use
# "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
proto udp
script-security 2
ca ca.crt
comp-lzo
reneg-sec 0
auth-user-pass login.txt
In de ontvanger van oma zet je ca.crt, login.txt en openvpn.conf in de map etc/openvpn/
Edited by Sagitarius, 12 January 2019 - 23:11.