OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: Trebor1 on February 20, 2017, 05:41:22 pm

Title: Filter rule for vpn user
Post by: Trebor1 on February 20, 2017, 05:41:22 pm
I've set up openvpn and works very well, but I'd like to define firewall rules by source vpn user and I can only do it by IP. Is there any way to do it by name? For example the "common name" of the vpn user?

Thanks
Title: Re: Filter rule for vpn user
Post by: bartjsmit on February 20, 2017, 06:09:04 pm
You could make proxy decisions in Squid based on user name, but you'd have to set it up with authentication (non-transparent).

Other than setting up different VPN servers with different settings, there's no way to distinguish between VPN users.

Bart...
Title: Re: Filter rule for vpn user
Post by: Trebor1 on February 21, 2017, 10:14:09 am
Could I specify a static IP by common name of VPN users?
Title: Re: Filter rule for vpn user
Post by: djGrrr on February 21, 2017, 02:59:27 pm
You can accomplish this with Client specific overrides, assign them a static ip, then create firewall rules on the static ip