Synology-Forum.nl
Packages => Officiƫle Packages => VPN Server => Topic gestart door: JAJB op 16 februari 2017, 08:20:10
-
Hallo allemaal,
Momenteel ben ik bezig om een OpenVPN te configureren, t lukt alleen niet helemaal.
Ik kan verbindingen maken,maar... mijn ip wijzigd niet! Ik behoud mijn ip van mijn telefoon provider.
L2TP protocol heb ik ook draaien en werkt wel met ip change, moet ik in OpenVPN iets extras doen om dit te krijgen?
-
Momenteel heb ik dit is als config:
[Untitled]
dev tun
tls-client
remote MIJN EXTERN IP 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 DNS_IP_ADDRESS
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
reneg-sec 0
auth-user-pass
Op Google kwam ik tegen dat je redirect-gateway def1 moet gebruiken!?
Moet dan t "#" weg halen om te activeren?
-
Je bent er bijna !
dev tun
tls-client
remote <JOUW EXT IP ADRES> 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 8.8.8.8
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
comp-lzo
reneg-sec 0
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
<hier jouw certificaat>
-----END CERTIFICATE-----
</ca>
-
Bedankt voor je reactie, ga t thuis proberen.