Forum Discussion
Jinshu_134425
Nimbostratus
Sep 24, 2015AFM configuration file
Can we configure the rules using AFm configuration file is possible? I have a list of firewall rules to be implemented ( looong list) and it will be great if it can be append in the configuration file.
-Jinshu
1 Reply
- Stanislas_Piro2
Cumulonimbus
Hi,
you can configure AFM rule using tmsh...
- create firewall Host object with
create security firewall address-list Host1 addresses add { 1.2.3.4 } - create firewall Network object with
create security firewall address-list Network1 addresses add { 1.2.3.0/24 } - create firewall Service object with
create security firewall port-list RDP ports add { 3389 } - create a firewall policy
create security firewall policy MyPolicy - create a firewall policy rule
modify security firewall policy MyPolicy rules add { rule1 { ip-protocol tcp source { address-lists add { Network1 } } destination { address-lists add { Host1 } port-lists add { https }} action accept log yes place-after last}}
I converted a 500 rules ASA configuration to AFM with these tmsh commands.
- create firewall Host object with
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects