[geek stuff] Check Point command line policy install

Sa zicem ca dintr-un motiv oarecare, fw fetch smartcenter_ip nu mai merge pe un modul de firewall iar singura solutie e sa faci o instalare de politica de securitate. Ca sa faci asta, in mod normal iti trebuie SmartDashboard. Da sa zicem ca n-ai. Ca d’aia Murphy vegheaza asupra noastra. Ce-i de facut ?

Pai, pe SmartCenter se fac urmatoarele operatiuni:

1. sa schimba directorul curent in $FWDIR/conf

Aici trebuie sa stii cum se cheama numele politicii de securitate. Daca n-ai redenumit-o pe aia implicita, se va chema Standard. Daca ai redenumit-o si nu mai stii, un ls -lh *W in $FWDIR/conf iti va spune cate politici ai si ar fi bine sa-ti aduci dupa aia aminte cum se cheama aia de trebuie instalata pe modulul de firewall.

2. se ruleaza comanda fwm gen Standard > Standard.W de unde o sa reiasa un output de genul:

# fwm gen Standard > Standard.W

Warning: Anti-Spoofing is not configured for some interfaces and gateways. This will allow address spoofing through these gateways.
Anti-Spoofing should be configured on the following objects: Gateway: fw01, Interface: External.110 Gateway: fw01, Interface: External.120

Daca da doar mesaje de avertizare e OK si se trece la urmatorul pas

3. pentru a instala politica de securitate pe modulul de firewall de ruleaza comanda fwm load Standard fw01 (fw01 fiind numele modulului de firewall). In principiu o sa scoata un output de genul:

# fwm load Standard.W fw01

Installing policy on R70/R71 targets:  Warning: Anti-Spoofing is not configured for some interfaces and gateways. This will allow address spoofing through these gateways. Anti-Spoofing should be configured on the following objects: Gateway: fw01, Interface: External.110 Gateway: fw01, Interface: External.120

Standard.W: Security Policy Script generated into Standard.pf
Standard: Compiled OK.
Installing Security Gateway policy on: fw01 …
Security Gateway policy installed successfully on fw01…
Security Gateway policy installation complete
Security Gateway policy installation succeeded for: fw01

Cam asta e. Ca tot e sambata, putem s-o trecem la categoria chestii pe care le face sin sambata seara :))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.