Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

But how to obtain the rule of source IP #575

Open
Manchuker1120 opened this issue Sep 25, 2024 · 1 comment
Open

But how to obtain the rule of source IP #575

Manchuker1120 opened this issue Sep 25, 2024 · 1 comment

Comments

@Manchuker1120
Copy link

How to extract the rules in a specific fw on Panorama

@Manchuker1120
Copy link
Author

Manchuker1120 commented Sep 25, 2024

fw = Firewall("10.140.196.132", "admin", "Sx[00]Wg(00)")
rulebase = fw.add(Rulebase())
q = {'destination': ['3.2.2.2'],}
rulebase.add(SecurityRule(**q))
fw.add(rulebase)
rules = SecurityRule.refreshall(rulebase)
for rule in rules:
pprint(rule.about())

it donse't work

@Manchuker1120 Manchuker1120 changed the title How to extract the rules in a specific fw on Panorama But how to obtain the rule of source IP Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant