Hi everyone!
I want to add some filter rules in firewall to allow access to only certain websites and block all http and https traffic. To do so I added the following rules (example for one site):
I’m allowing the website by its IP address. After enabling “block http, https traffic” rule, the website takes about a minute or even more to load. Other http and https traffic is blocked.
I have the same issue with Layer 7 filter. This happens even when a filter rule for one website is applied.
I would really appreciate your help. Thank in advance!
That is not the cause, because our companies website is not loading fonts, images etc from other websites and still the website is loading to slow.
Has anyone managed to block all http and https traffic and allow only certain website by its ip address? I have searched the forum, but could not find an example that works form me.
Well the site you mentioned (duden.de) has lots of files loaded from external domains (including lots of blocking javascript), so that’s why it is slow. If you set your firewall to reject with tcp-reset, it will reduce the timeouts, but the site will be quite broken without all the 3rd party resources loading.
I get your point. Could you please write the exact firewall rule for tcp-reset, because I’m not able to get it to work.
Can anybody tell my the proper way how to block all http/https traffic and allow only certain websites. Is there any way to block website by its domain? The layer 7 rules simply don’t work or maybe I can’t configure them right. Also, the Layer 7 can pump up the CPU usage so I’m kinda trying to avoid it.
It’s about your blocking rule. When you do action=drop, packets silently disappear and client uselessly waits for reply. Use action=reject protocol=tcp reject-with=tcp-reset instead, to make client think that port is closed. You’ll need other rules if you also care about blocking non-tcp traffic.
Thank you very much. The websites are loading much faster. There are some parts of the website which can’t be loaded, but i guess there’s no other way.