cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
821
Views
1
Helpful
8
Replies

Disable WebVPN Portal Only

m.santangelo
Level 1
Level 1

Hello all,

We have a link, https://remote.ourdomain.tld which is currently getting hammered by login attempts.  Since our VPN uses AD, the failed logins are causing AD account lockouts.

We are on Cisco FMC 7.4.2 and the FTD units themselves (FP2140's) are also on 7.4.2 with FX-OS 2.14.1.

I have tried adding a flex config:

webvpn
_keepout "503 Service Unavailable"

and 

webvpn
_portal-access-rule 1 deny any

and

webvpn
_no enable Outside

(I put the _ in there to indicate a space, but I have also tried without a space).  Whenever I add these FlexConfigs, I get errors:

HOST >> error :
portal-access-rule 1 deny any
^
ERROR: % Invalid input detected at '^' marker.
Config Error -- portal-access-rule 1 deny any

and

HOST >> error :
keepout "503 Service Unavailable"
^
ERROR: % Invalid input detected at '^' marker.
Config Error -- keepout "503 Service Unavailable"

 

Is there any way to disable JUST the WebVPN access? We still need people to access the VPN, but they all have installed clients on their devices.  Or failing that, is there a way to change the landing page url? something like https://remote.ourdomain.tld/randomtext would be fine because no one actually uses the WebVPN to get the software.  We tried an alias, but the alias just adds the other url, not disabling the main page at https://remote.ourdomain.tld.

1 Accepted Solution

Accepted Solutions

m.santangelo
Level 1
Level 1

Figured it out.  We had another FlexConfig defined elsewhere to enable some other features (vpngina).

I had to combine the files into one, where the lines became:

---

webvpn
keepout "503: Service Unavailable"

group-policy GroupPolicy_Site_VPN attributes
_webvpn
__anyconnect modules value vpngina

---

Now I have enabled vpngina and the WebVPN is shuttered, but remote vpn access is still working.

Thanks all.

View solution in original post

8 Replies 8

webvpn
keepout "503: Service Unavailable"

Without space 

MHM

As stated in the OP, with or without space, I get an error.

msantangelo_0-1736365322050.png

FMC >> webvpn
FMC >> keepout "503: Service Unavailable"
TECH-FP-2140-1 >> error :
keepout "503: Service Unavailable"
^
ERROR: % Invalid input detected at '^' marker.
Config Error -- keepout "503: Service Unavailable"

 

Try 

Keepout "message"

MHM

Also for deployment use everytime 

MHM

It is all explained clearly in this post

https://www.linkedin.com/pulse/shutting-down-webvpn-portal-ftd-flexconfig-matt-albrecht/

 

**Please rate as helpful if this was useful**

I found and followed that article.  I am here posting because the steps in said article did not work. 

m.santangelo
Level 1
Level 1

Figured it out.  We had another FlexConfig defined elsewhere to enable some other features (vpngina).

I had to combine the files into one, where the lines became:

---

webvpn
keepout "503: Service Unavailable"

group-policy GroupPolicy_Site_VPN attributes
_webvpn
__anyconnect modules value vpngina

---

Now I have enabled vpngina and the WebVPN is shuttered, but remote vpn access is still working.

Thanks all.

You are so welcome 

Please close ticket. 

Thanks and have a nice day

MHM