Skip to main content
Ilarena
New Member
January 12, 2023
Question

Restrict VPNSSL access per user

  • January 12, 2023
  • 10 replies
  • 5094 views

I'm looking for a way to restrict VPNSSL access from a certain source IP for some users. As far as I know, I can do it but it will affect to all users. Is there any workaround to solve it?

10 replies

Julien87
Contributor II
January 12, 2023

Hi llarena,

 

Modification : it's very bad solution ;)

 

I don't think the option exists. Source filtering is global to the SSL configuration. 

If I had to do something unconventional. I will do for example:
1) Add a different realm per user group (feature to be activated)
2) Listen SSL VPN on a Loopback interface port 10443
3) Add a VIP on the WAN interface port 30443 to the loopback vpn ssl interface 10443
4) Add a rule with authorized wan source IPs to the loopback vip.
5) Use another port for the VIP and another Realm for other users who do not have this limitation.

 

it will work as long as the port of unfiltered users is not known by other users.

 

I don't like my solution... but it works

 

Best regards

Ilarena
IlarenaAuthor
New Member
January 13, 2023

Hi Julien,

Thanks for the proposal. I'm afraid I cannot change the port. We're using standard 443 port because many places block non standard ports and we don't have any IP available to use it.

Bests,

Iñaki

Ilarena
IlarenaAuthor
New Member
January 13, 2023

Looks that there's an option at the authentication-rule that allows to add a source address:

config vpn ssl settings config authentication-rule edit N set source-interface <interface-name> set source-address <firewall-address-object>

But it's not working. Does anyone use it?

pminarik
Staff
Staff
January 13, 2023

This is the right place. The restriction will apply to the user/group mentioned in the authentication-rule. Be aware that this restriction is applied at the time of logon (a logon attempt will result in failure if the src IP doesn't match, even if correct credentials are provided). It will not block TCP connection to the port. (a random client will be able to display the login page)

The VPN port responds to TCP SYN if it matches any IP from the list of permitted sources in the general SSL-VPN settings (any by default) and and any source in any authentication-rule (any by default).

Julien87
Contributor II
January 13, 2023

Hi !

 

interesting these options, they don't appear in show full-configuration

thank you for this tip.

 

I go try in my lab

 

Best regards

gfleming
Staff
Staff
January 13, 2023

Do you have multiple public IPs on your WAN? You could conceivably create a new VDOM for these restricted users to connect to VPNSSL.

 

Then in your main VDOM create a local-in policy to block SSL VPN access from the source IPs.

Ilarena
IlarenaAuthor
New Member
January 16, 2023

No, I don't have any other public IP available.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!