I've installed the openVPN RPM on a Centos 6.2 behind a firewall which nats the public ip on port 943 to the openVPN servers private IP address (10.104.100.104). I'm able to get pass the first screen after login but I'm getting stuck where I need to use openVPN connect since the client software seems to be configured with the VPN servers private address... Is there a way to configure openVPN to pass the firewalls IP instead of the actual server ip in a config file or something?
thanks in advance,
-steph
openVPN passes wrong IP.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Apr 20, 2015 5:27 pm
Re: openVPN passes wrong IP.
Steph,
You need to configure the 'remote' parameter in your Defaults.txt file with the Public IP or DDNS entry.
Example:
client
dev tun
proto udp
remote PUBLIC_IP_GOES_HERE
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 2
mute 20
You need to configure the 'remote' parameter in your Defaults.txt file with the Public IP or DDNS entry.
Example:
client
dev tun
proto udp
remote PUBLIC_IP_GOES_HERE
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 2
mute 20
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Jun 27, 2016 5:46 pm
Re: openVPN passes wrong IP.
Hey Delphinus!
where is this defaults.txt file on an debian server? It happens to me as well, thanks!
where is this defaults.txt file on an debian server? It happens to me as well, thanks!
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Jul 05, 2021 9:02 pm
Re: openVPN passes wrong IP.
For me, this file was in (Ubuntu)
Code: Select all
/etc/openvpn/client-template.txt
- openvpn_inc
- OpenVPN Inc.
- Posts: 1333
- Joined: Tue Feb 16, 2021 10:41 am
Re: openVPN passes wrong IP.
Hello,
I assume that you're talking about OpenVPN Access Server here. In that case just go to the Admin UI, log in as the openvpn administrator, and go to Network Settings. In the 'host name or IP address' field put in the correct external public IP, or better, a DNS name that resolves to that external public IP, and save settings and update runnings servers. From now any new connection profiles downloaded from this Access Server will contain the correct public address to reach your Access Server at. Already installed VPN clients may need a reinstall or reimport of the profile.
Kind regards,
Johan
I assume that you're talking about OpenVPN Access Server here. In that case just go to the Admin UI, log in as the openvpn administrator, and go to Network Settings. In the 'host name or IP address' field put in the correct external public IP, or better, a DNS name that resolves to that external public IP, and save settings and update runnings servers. From now any new connection profiles downloaded from this Access Server will contain the correct public address to reach your Access Server at. Already installed VPN clients may need a reinstall or reimport of the profile.
Kind regards,
Johan
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support