Forum Discussion
[APM] cli command to check list of url's being whitelisted
Hi Experts,
Is there a cli command to check if any specific url is whitelisted under custom category ?
Access ›› Secure Web Gateway : URL Categories ››
try this :
tmsh list sys url-db
tmsh list sys url-db url-category <name> urls- Blue_whaleCirrocumulus
Thanks CA_Valli
Can you help me with the command to filter url along with it it provide me information of display name or description in 1-2 lines. ( reason we have 100+ urls added and many have many category ,so we can find the url but difficult to find out the url used in which category )
sarovani@(PRD-F5-A1)(cfg-sync Standalone)(Active)(/Common)(tmos)# list sys url-db url-category UNITY_URL_LIST
sys url-db url-category UNITY_URL_LIST {
cat-id 0
cat-number 1904
default-action allow
description UNITY_URL_LIST
display-name UNITY_URL_LIST
f5-id 17001
is-custom true
urls {
Http\*://example.com:12400/\* {
type glob-match
}
\*://CVSNAS125.example.com/\* {
type glob-match
}
\*://CVSNAS126.example.com/\* {
etc
etc
ectExample : If I search > list sys url-db | grep CVSNAS125.example.com
It should show me on which category the above URL is whitelisted :
So, if you use urls keyword in the command after the list name, it will only display the urls { ... } part of the object.
If you need something that's valid for all object, I would grep for "{" character, as I believe that there should be one after object name (so you know which category it is), one after urls (so you know it starts showing urls in the category above), and one after every url so none is missed.tmsh list sys url-db | grep {
will NOT show default objects[root@bigip:Active:Standalone] config # tmsh list sys url-db | grep { sys url-db download-schedule urldb { } sys url-db url-category testurlc { urls { https://test.test.test { [root@bigip:Active:Standalone] config #
[EDIT] if you add | grep -v "unwanted line" it will also filter those out
while tmsh list sys url-db url-category | grep { will.
[root@bigip:Active:Standalone] config # tmsh list sys url-db url-category | grep { sys url-db url-category Abortion { sys url-db url-category Abused_Drugs { sys url-db url-category Adult_Content { sys url-db url-category Adult_Material { sys url-db url-category Advanced_Malware_Command_and_Control { sys url-db url-category Advanced_Malware_Payloads { sys url-db url-category Advertisements { sys url-db url-category Advocacy_Groups { sys url-db url-category Alcohol_and_Tobacco { sys url-db url-category Alternative_Journals { sys url-db url-category Application_and_Software_Download { sys url-db url-category Application_and_Software_Services { sys url-db url-category Auctions { sys url-db url-category Audio { sys url-db url-category Audio_Video { sys url-db url-category Bandwidth { sys url-db url-category Blog_Commenting { sys url-db url-category Blog_Posting { sys url-db url-category Blogs_and_Personal_Sites { sys url-db url-category Bot_Networks { sys url-db url-category Business_and_Economy { sys url-db url-category Cheating { sys url-db url-category Classifieds_Posting { sys url-db url-category Collaboration_-_Office { sys url-db url-category Compromised_Websites { sys url-db url-category Computer_Security { sys url-db url-category Computer_and_Internet { sys url-db url-category Content_Delivery_Networks { sys url-db url-category Cult_and_Occult { sys url-db url-category Cultural_Institutions { sys url-db url-category Custom-Encrypted_Uploads { sys url-db url-category Database { sys url-db url-category Dating { sys url-db url-category Dead_Sites { sys url-db url-category Drugs { sys url-db url-category Dynamic_Content { sys url-db url-category Dynamic_DNS { sys url-db url-category Education { sys url-db url-category Educational_Institutions { sys url-db url-category Educational_Materials { sys url-db url-category Educational_Video { sys url-db url-category Elevated_Exposure { sys url-db url-category Emerging_Exploits { sys url-db url-category Encrypted { sys url-db url-category Entertainment { sys url-db url-category Entertainment_Video { sys url-db url-category Extended_Protection { sys url-db url-category Facebook_Apps { sys url-db url-category Facebook_Chat { sys url-db url-category Facebook_Commenting { sys url-db url-category Facebook_Events { sys url-db url-category Facebook_Friends { sys url-db url-category Facebook_Games { sys url-db url-category Facebook_Groups { sys url-db url-category Facebook_Mail { sys url-db url-category Facebook_Photo_Upload { sys url-db url-category Facebook_Posting { sys url-db url-category Facebook_Questions { sys url-db url-category Facebook_Video_Upload { sys url-db url-category Fashion_and_Beauty { sys url-db url-category File_Download_Servers { sys url-db url-category Files_Containing_Passwords { sys url-db url-category Financial_Data_and_Services { sys url-db url-category Gambling { sys url-db url-category Games { sys url-db url-category Gay_or_Lesbian_or_Bisexual_Interest { sys url-db url-category General_Email { sys url-db url-category Government { sys url-db url-category Gross { sys url-db url-category Hacking { sys url-db url-category Hate_and_Racism { sys url-db url-category Health_and_Medicine { sys url-db url-category Home_and_Garden { sys url-db url-category Hosted_Business_Applications { sys url-db url-category Hunting_and_Fishing { sys url-db url-category IP_Layer_Protocols { sys url-db url-category Illegal_or_Questionable { sys url-db url-category Image_and_Video_Search { sys url-db url-category Individual_Stock { sys url-db url-category Information_Technology { sys url-db url-category Instant_Messaging { sys url-db url-category Internet_Auctions { sys url-db url-category Internet_Communication { sys url-db url-category Internet_Portals { sys url-db url-category Internet_Radio_and_TV { sys url-db url-category Internet_Telephony { sys url-db url-category Internet_Watch_Foundation { sys url-db url-category Intolerance { sys url-db url-category Job_Search { sys url-db url-category Keyloggers_and_Monitoring { sys url-db url-category Kids { sys url-db url-category Legal { sys url-db url-category Lingerie_and_Swimsuit { sys url-db url-category LinkedIn_Connections { sys url-db url-category LinkedIn_Jobs { sys url-db url-category LinkedIn_Mail { sys url-db url-category LinkedIn_Updates { sys url-db url-category Local_Information { sys url-db url-category Malicious_Embedded_Link { sys url-db url-category Malicious_Embedded_iFrame { sys url-db url-category Malicious_Web_Sites { sys url-db url-category Marijuana { sys url-db url-category Media_File_Download { sys url-db url-category Message_Boards_and_Forums { sys url-db url-category Militancy_and_Extremist { sys url-db url-category Military { sys url-db url-category Miscellaneous { sys url-db url-category Mobile_Malware { sys url-db url-category Motor_Vehicles { sys url-db url-category Music { sys url-db url-category Network_Errors { sys url-db url-category Network_Management_and_Services { sys url-db url-category Newly_Registered_Websites { sys url-db url-category News_and_Media { sys url-db url-category Non-Traditional_Religions { sys url-db url-category Nudity { sys url-db url-category Nutrition { sys url-db url-category Office_-_Apps { sys url-db url-category Office_-_Documents { sys url-db url-category Office_-_Drive { sys url-db url-category Office_-_Mail { sys url-db url-category Online_Brokerage_and_Trading { sys url-db url-category Online_Greeting { sys url-db url-category Organizational_Email { sys url-db url-category Parked_Domain { sys url-db url-category Pay_to_Surf { sys url-db url-category Peer-to-Peer_File_Sharing { sys url-db url-category Personal_Network_Storage_and_Backup { sys url-db url-category Personals_and_Dating { sys url-db url-category Philosophy { sys url-db url-category Phishing_and_Other_Frauds { sys url-db url-category Political_Organizations { sys url-db url-category Potentially_Exploited_Documents { sys url-db url-category Potentially_Unwanted_Software { sys url-db url-category Prescribed_Medications { sys url-db url-category Private_IP_Addresses { sys url-db url-category Pro-Choice { sys url-db url-category Pro-Life { sys url-db url-category Productivity { sys url-db url-category Professional_and_Worker_Organizations { sys url-db url-category Proxy_Avoidance { sys url-db url-category Questionable { sys url-db url-category Real_Estate { sys url-db url-category Recreation_and_Hobbies { sys url-db url-category Reference_and_Research { sys url-db url-category Religion { sys url-db url-category Restaurants_and_Dining { sys url-db url-category Routing { sys url-db url-category SPAM_URLs { sys url-db url-category Search_Engines { sys url-db url-category Search_Engines_and_Portals { sys url-db url-category Security { sys url-db url-category Service_and_Philanthropic_Organizations { sys url-db url-category Sex { sys url-db url-category Sex_Education { sys url-db url-category Shareware_and_Freeware { sys url-db url-category Shopping { sys url-db url-category Social_Networking { sys url-db url-category Social_Organizations { sys url-db url-category Social_Web_-_Facebook { sys url-db url-category Social_Web_-_LinkedIn { sys url-db url-category Social_Web_-_Twitter { sys url-db url-category Social_Web_-_Various { sys url-db url-category Social_Web_-_YouTube { sys url-db url-category Social_and_Affiliation_Organizations { sys url-db url-category Society_and_Lifestyles { sys url-db url-category Special_Events { sys url-db url-category Sport_Hunting_and_Gun_Clubs { sys url-db url-category Sports { sys url-db url-category Spyware_and_Adware { sys url-db url-category Streaming_Media { sys url-db url-category Surveillance { sys url-db url-category Suspicious_Content { sys url-db url-category Suspicious_Embedded_Link { sys url-db url-category Swimsuits_and_Apparel { sys url-db url-category Tasteless { sys url-db url-category Telecommunication { sys url-db url-category Text_and_Media_Messaging { sys url-db url-category Traditional_Religions { sys url-db url-category Training_and_Tools { sys url-db url-category Translation { sys url-db url-category Travel { sys url-db url-category Tunneling { sys url-db url-category Twitter_Follow { sys url-db url-category Twitter_Mail { sys url-db url-category Twitter_Posting { sys url-db url-category Unauthorized_Mobile_Marketplaces { sys url-db url-category Uncategorized { sys url-db url-category Unknown { sys url-db url-category User-Defined { sys url-db url-category Vehicles { sys url-db url-category Video { sys url-db url-category Violence { sys url-db url-category Viral_Video { sys url-db url-category Weapons { sys url-db url-category Web_Analytics { sys url-db url-category Web_Chat { sys url-db url-category Web_Collaboration { sys url-db url-category Web_Hosting { sys url-db url-category Web_Images { sys url-db url-category Web_Infrastructure { sys url-db url-category Web_and_Email_Marketing { sys url-db url-category Web_and_Email_Spam { sys url-db url-category Web_based_email { sys url-db url-category Website_Translation { sys url-db url-category YouTube_Commenting { sys url-db url-category YouTube_Sharing { sys url-db url-category YouTube_Video_Upload { sys url-db url-category testurlc { urls { https://test.test.test { [root@bigip:Active:Standalone] config #
- Leslie_HubertusRet. Employee
Hey Blue_whale - I see nobody has answered yet. I'm not a technical F5er and can't help you with a cli command to check the allow list, but have you checked https://techdocs.f5.com/en-us/bigip-15-0-0/big-ip-access-policy-manager-secure-web-gateway/url-database-for-swg.html#GUID-B7D2BB63-59E2-40A2-9DD3-674A2AE41F13 ?
Recent Discussions
Related Content
* 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