This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Allow specific URLs but block non-URL 443 traffic

I want to allow a PC to access specific web sites and nothing else. I have setup a firewall rule on XG 18 that allows HHTP/S services and set a web policy.

What happens if a program tries to make a direct connection from that PC to another computer on those ports? Won't that be allowed by the allowed services? How do you stop this from happening so only the allowed URLs will pass?

I've read loads of posts about web filtering but can't find the answer.



This thread was automatically locked due to age.
Parents
  • Hello JasP,

    So you only want to allow for example https://thiswebsite.com and nothing else?

    If you have Web Policy with the specific URLs applied then the XG shouldn't allow access to any other website or connection. Additionally, you could create a Firewall rule below this one and block port 443. 

    Regards,

  • If you have Web Policy with the specific URLs applied then the XG shouldn't allow access to any other website or connection.

    This doesn't appear to be correct.

    I spent some time testing this. I created a rule at the top of the firewall for one server that allowed HTTP and HTTPS and had a web policy that allowed access to one URL. I then created a rule just below it that blocked all other traffic from that server. I then used a utility called Packet Sender running on my test server to send and receive traffic to another external server running Packet Sender and they could send traffic backwards and forwards on ports 80 and 443 without being blocked. What was even more disconcerting was that, despite having logging turned on for both rules, the traffic didn't appear in the firewall log at all!

    My rules are below:

  • Hi,

    you will need to tick the web proxy box and select your web profile before your block test will work. You also might need to tick block QUIC.

    ian

  • When you say web profile, do you mean web policy? As you can see in my screenshots, I already have a web policy selected and have block QUIC selected.

    Changing to web proxy instead of DPI makes no difference. I can still connect to other servers directly over 443 and 80.

    The only positive is that the traffic is now showing in the firewall log (logged against the correct rule so it isn't being allowed by another rule).

  • Hello JasP,

    Thank you for the follow-up!

    I will need to double-check on this, and get back to you! Allow me a couple of days!

    Regards,

Reply Children
  • Thanks Emmanuel. I presume you are going to try and replicate this yourself.

    If I do have this setup correctly (and nobody has suggested otherwise) then this potentially is a very serious bug that would allow anything malicious to communicate on those ports.