Prevent client connection attempts from selected internal and external IPs

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
johnds
OpenVpn Newbie
Posts: 9
Joined: Fri Mar 04, 2022 3:17 pm

Prevent client connection attempts from selected internal and external IPs

Post by johnds » Mon Mar 28, 2022 9:31 am

Hi,

Within the OpenVPN Access Server interface or via the terminal is there a way to prevent client connections attempts from selected internal and external IPs?

I did think of using Linux's /etc/hosts.deny but it will invariably break legitimate connections to internal resources.

thanks

John

johnds
OpenVpn Newbie
Posts: 9
Joined: Fri Mar 04, 2022 3:17 pm

Re: Prevent client connection attempts from selected internal and external IPs

Post by johnds » Mon Mar 28, 2022 3:55 pm

Looks like the below GUI control is already configured in a sane manner:

USER MANAGEMENT > User Permissions > More settings > Allow Access From: "all server-side private subnets" [checkbox]

above not flagged by default.

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

Re: Prevent client connection attempts from selected internal and external IPs

Post by openvpn_inc » Sat Apr 02, 2022 4:27 pm

Hi John,

You'll find that fine-grained control of user/group access rules requires the command line interface:
https://openvpn.net/vpn-server-resource ... mand-line/

regards, rob0
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

Post Reply