f5-appsvcs-extension icon indicating copy to clipboard operation
f5-appsvcs-extension copied to clipboard

Cannot add AFM Global Firewall Policy

Open thepowercoders opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe.

BIGIP: 16.1.2.2 Build 0.0.28 Point Release 2 (VE) AS3 version: f5-appsvcs | 3.34.0

AS3 includes the following classes to build an AFM firewall policy:

  • Firewall_Port_List
  • Firewall_Address_List
  • Firewall_Rule_List
  • Firewall_Policy

However, there does not appear to be any class/method to apply a firewall policy to the global (device) context.

Describe the solution you'd like

Presume a new class is needed to allow this to be configured as there is no "Device" class in AS3, only DO.

Describe alternatives you've considered

Only non-AS3 alternative which works is to call on the iControlREST API which can be used to set the policy:

PATCH: https://{{big_ip}}/mgmt/tm/security/firewall/global-rules
{
	"stagedPolicy": "{{Firewall_Policy}}"
}

thepowercoders avatar Feb 07 '23 17:02 thepowercoders

Hi @antonywm, AUTOTOOL-3682 has been created for the same and added to our internal product backlog.

sunitharonan avatar Feb 22 '23 18:02 sunitharonan

AS3 creates the AFM firewall policy at the application and not global. AS3/DO dev is validating if the AFM firewall policy can be applied globally via declarative onboarding

mdditt2000 avatar Mar 23 '23 17:03 mdditt2000

Hi Mark - only problem with applying at DO level is that DO does not contain any classes at all for AFM. Also our DO is ran in as part of our f5-bigip-runtime-init script which is where we provision the AFM feature so I doubt we can also define AFM stuff in DO as well.

thepowercoders avatar Apr 13 '23 22:04 thepowercoders

hi - any update on this enhancement request please?

thepowercoders avatar Sep 28 '23 10:09 thepowercoders

hi @sunitharonan - any update on this enhancement request please - it's been over a year since it was added to the backlog.

thepowercoders avatar Apr 09 '24 20:04 thepowercoders