Ping Static IP VPN User

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
VPN-Newbie-1337
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 21, 2022 11:05 am

Ping Static IP VPN User

Post by VPN-Newbie-1337 » Mon Feb 21, 2022 11:28 am

Good day,

I would like to be able to ping/reach a vpn user with a static ip address. However the access server only creates 2 interfaces (as0t0 and as0t1) for the dynamic ips, but no interface for the static users network. Is there a way to add an interface to access the static ip users network? Or somehow else reach it?

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Ping Static IP VPN User

Post by openvpn_inc » Mon Feb 21, 2022 11:48 am

Hello VPN-Newbie-1337,

You do not need to do anything with the interfaces. The static IP will work without requiring any adjustment to network interfaces on the Access Server. However VPN clients are normally only reachable from the Access Server itself, unless you enable routing and set up appropriate return routes in your network.

See this page that describes what is needed to enable traffic to be initiated from a device on Access Server side's networks.
https://openvpn.net/vpn-server-resource ... e-network/

Kind regards,
Johan
Image 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

VPN-Newbie-1337
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 21, 2022 11:05 am

Re: Ping Static IP VPN User

Post by VPN-Newbie-1337 » Mon Feb 21, 2022 1:08 pm

Hi openvpn_inc,

what I am trying to do is to reach a specific PC in the VPN network from outside. My idea was to write some ip table rules to get the traffic from a specific Port routet to the PC. But as I can not even ping the PC using the interfaces of the access server I am a bit stuck here.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Ping Static IP VPN User

Post by openvpn_inc » Tue Feb 22, 2022 9:24 am

Hello again,

From outside? Then use the DMZ function in user permissions for that. With that you can open a port on an IP on the Access Server itself, to be redirected to an IP of a VPN client. Then a static IP for the VPN user isn't even needed as Access Server will automatically update the rules for redirection whenever the user connects.

See this page that describes how to use the DMZ function.
https://openvpn.net/vpn-server-resource ... ss-server/

Kind regards,
Johan
Image 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

VPN-Newbie-1337
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 21, 2022 11:05 am

Re: Ping Static IP VPN User

Post by VPN-Newbie-1337 » Thu Feb 24, 2022 9:40 pm

Hi,

it works perfectly, almost too good to be true :). Thank you very much!

Regards

Post Reply