How to Export URL Filtering Profile from one Firewall to Another

How to Export URL Filtering Profile from one Firewall to Another

0
Created On 09/25/18 19:38 PM - Last Modified 07/19/22 22:41 PM


Resolution


Type the below commands  to view all the configurations on your firewall in the CLI.

 

Tarang@chnlab-fw72(active)> set cli config-output-format set
Tarang@chnlab-fw72(active)> configure
Entering configuration mode
[edit]

 

Tarang@chnlab-fw72(active)# show

This will show you all the configurations on the box in cli view

 

 

set deviceconfig system ip-address 10.50.243.72
set deviceconfig system netmask 255.255.255.0
set deviceconfig system update-server updates.paloaltonetworks.com
set deviceconfig system update-schedule threats recurring weekly day-of-week wednesday
set deviceconfig system update-schedule threats recurring weekly at 01:02

 

Note: If you have created any custom URL category first import the same by the below  method before importing the Url filtering profiles

 

I created a Custom url filtering profile  named as my_custom  if you will search the custom category  in my case I have set the action as overried for this custom URL 

[     type / and then Enter the name of the Custom URL for example    /my_custom   ]

 

 

one_custom_cli.PNG

 

custom.PNG

 

 

Copy the above 2  commands one by one and paste the same  on firewall B

 

follow the below procedure for URL filtering profiles

 

Tarang@chnlab-fw72(active)# show

 

type / and then Enter the name of the URL filtering profile

The URL filtering profile which I want to Import is Students

/Students

 

 

This is the output of firewall A 

 

 

5060.PNG
Copy this part

 

Paste on a Notepad++

 

set profiles url-filtering Students block [ abortion abused-drugs adult alcohol-and-tobacco auctions
business-and-economy computer-and-internet-info content-delivery-networks dating dynamic-dns educat
ional-institutions entertainment-and-arts financial-services gambling games government hacking healt
h-and-medicine home-and-garden hunting-and-fishing internet-communications-and-telephony internet-po
rtals job-search legal malware military motor-vehicles music news not-resolved nudity online-storage
-and-backup parked peer-to-peer personal-sites-and-blogs philosophy-and-political-advocacy phishing
private-ip-addresses proxy-avoidance-and-anonymizers questionable real-estate recreation-and-hobbies
reference-and-research religion search-engines sex-education shareware-and-freeware shopping social
-networking society sports stock-advice-and-tools streaming-media swimsuits-and-intimate-apparel tra
ining-and-tools translation travel unknown weapons web-advertisements web-based-email web-hosting ]

Make have to rearrange the above paragraph in one line

 

 

You can see business-and-economy is in second line click before b and press a back space to bring in one line 

 

 

set profiles url-filtering Students block [ abortion abused-drugs adult alcohol-and-tobacco auctions business-and-economy computer-and-internet-info content-delivery-networks dating dynamic-dns educat
ional-institutions entertainment-and-arts financial-services gambling games government hacking healt
h-and-medicine home-and-garden hunting-and-fishing internet-communications-and-telephony internet-po
rtals job-search legal malware military motor-vehicles music news not-resolved nudity online-storage
-and-backup parked peer-to-peer personal-sites-and-blogs philosophy-and-political-advocacy phishing
private-ip-addresses proxy-avoidance-and-anonymizers questionable real-estate recreation-and-hobbies
reference-and-research religion search-engines sex-education shareware-and-freeware shopping social
-networking society sports stock-advice-and-tools streaming-media swimsuits-and-intimate-apparel tra
ining-and-tools translation travel unknown weapons web-advertisements web-based-email web-hosting ]

 

you can see ional-institutions is in second line / click End button to go on the end of the line press right arrow and then back space you have to repeat this procedure to bring the above format in one line

like :  

kb2.PNG

 

Copy and paste the same on the firewall B

 

This the output from the other firewall ( firewall B ) on which we have pasted the above commands

 

success1.PNG

 

success.PNG

 

 

The url fitering profile is successfully imported on firewall B 

 

type these commands on firewall A and close the cli

 

ok.PNG

 

Note: If you are getting any error while pasting the Url filtering prolies which is related to the custom URL category, you can also delete the same on a notepad++ (delete the name of custom category) before pasting on the CLI of firewall B.

 

 

Thank you.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Clb5CAC&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail