Rule to allow HTTP/HTTPS traffic to a specific domain is allowing all HTTP/HTTPS traffic.
I’m trying to create a rule to allow traffic to a specific public domain or list of domains, from my internal users. Traffic that doesn’t match the “whitelisted” destination domain(s) should flow down through the existing rules. The following seems to be allowing all HTTP/HTTPS traffic, not just the traffic to the target domain. The Fortigate is running 7.2.13.
If I enable the rule below, I see traffic in the log matching this rule, that is destined to all kinds of other domains. I don’t want to affect traffic to any other domains, and want traffic not destined to the “whitelisted” domains to just flow down through the other existing firewall rules.
Ive tried using a “simple” URLfliter (as below) as well as a wildcard filter, but no matter what I’ve tried the rule seems to be matching way more traffic than I intend.
config webfilter urlfilter
.....
..
.....
edit 6
set name "Auto-webfilter-urlfilter_f7yxvxpub"
config entries
edit 1
set url "canva.com"
set action allow
next
end
next
end
config webfilter profile
.....
..
.....
edit "Whitelist-Domains"
set options block-invalid-url
config web
set urlfilter-table 6
set blocklist enable
end
config ftgd-wf
end
next
end
config firewall policy
edit 143
set status disable
set name "Allow-Whitelist-Domains-LAN"
set srcintf "LAN_ZONE"
set dstintf "INTERNET_ZONE"
set action accept
set srcaddr "all"
set dstaddr "all"
set schedule "always"
set service "HTTP" "HTTPS"
set utm-status enable
set av-profile "default"
set webfilter-profile "Whitelist-Domains"
set logtraffic all
set nat enable
next
end
