# Please add a note to open HTTP/HTTPS traffic for Squid in the "Firewall configuration recommendations for IPFire users" guide

**URL:** <https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647>\
**Category:** Firewall Rules\
**Created:** [15 February 2025 12:50 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647 "2025-02-15T12:50:39Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 12:50 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/1 "2025-02-15T12:50:39Z")

</div>

The [Firewall configuration recommendations for IPFire users](https://www.ipfire.org/blog/firewall-configuration-recommendations-for-ipfire-users) guide contains very helpful information to harden default IPFire firewall settings. I think it should be the main starting point for any new user willing to customize the IPFire firewall rules.

The guide reports 5 rules needed to allow essential connections for IPFire itself, however after configuring them the user ends up with a partly functional system, because the Squid proxy server is unable to connect to the Internet. IMHO a phrase should be added to explain that in order to use the Squid proxy server another rule is needed to allow all outbound HTTP/HTTPS traffic.

If you agree on this, I could edit the blog page myself, although I think there are much more expert people here that could make a better job than me.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 14:02 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/2 "2025-02-15T14:02:45Z")

</div>

> [@lucatrv](#):
>
> all outbound HTTP/HTTPS traffic.

this is allowed by the proxy out of the box.

 ![image](https://community.ipfire.org/uploads/default/original/2X/c/c61f25509552857c5d49220638237d1ff6b3cd51.png)

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 17:23 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/3 "2025-02-15T17:23:24Z")

</div>

> [@hvacguy](#):
>
> this is allowed by the proxy out of the box.
> 
> ![image](https://community.ipfire.org/uploads/default/original/2X/c/c61f25509552857c5d49220638237d1ff6b3cd51.png)

If I’m not mistaken (but maybe I am…) those are the ports that the proxy uses, and if the firewall closes them it will not work.

I tried it again on my system: if I change the “outgoing firewall” policy to “blocked” following the [Firewall configuration recommendations for IPFire users](https://www.ipfire.org/blog/firewall-configuration-recommendations-for-ipfire-users) guide, then I need to add a firewall rule to allow HTTP/HTTPS traffic from firewall interface RED to zone RED, otherwise the proxy server will not be able to fetch website data.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 17:54 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/4 "2025-02-15T17:54:56Z")

</div>

My understanding is the proxy is open…  
Your PC must use the proxy.  
PC must be setup to use proxy.  
or you can use WPAD.

> **[Web Proxy Auto-Discovery Protocol (WPAD) / Proxy Auto-Config (PAC)](https://www.ipfire.org/docs/configuration/network/proxy/extend/wpad)**

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 17:58 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/5 "2025-02-15T17:58:03Z")

</div>

> [@lucatrv](#):
>
> then I need to add a firewall rule to allow HTTP/HTTPS traffic from firewall interface RED to zone RED, otherwise the proxy server will not be able to fetch website data.

This maybe true?  
I’m not using PROXY.

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 19:46 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/6 "2025-02-15T19:46:45Z")

</div>

> [@hvacguy](#):
>
> This maybe true?  
> I’m not using PROXY.

Yes I confirm. I set up the proxy on IPFire, and my browser is configured to access the Internet through the proxy. I need to open HTTP/HTTPS traffic from the IPFire server to the Internet for the proxy to work. IMHO this should noted in the guide.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 20:08 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/7 "2025-02-15T20:08:10Z")

</div>

It is mentioned here.

#### Forward

The default value for the “Forward Firewall” is “Allowed”. This means, in general, that any network packet is allowed to be forwarded to another network zone unless there is an existing rule preventing it. Such a rule can be added within basic zone policy or it can be customized to fit requirements for your various network zones.

When switching the “Forward Firewall” to “Blocked”, the traffic will no longer be transfered between the zones. Please note, the traffic from internal zones to your IPFire’s RED zone is also affected, but not the traffic of the IPFire system itself. You will then have to create firewall rules to re-allow desired packets between your internal network zones and the Internet.

> **[Firewall Default Policy](https://www.ipfire.org/docs/configuration/firewall/default-policy)**

Change this behavior is what I would consider an advanced step.  
If you have reached this point in your firewall journey that is Awesome.  
lots if users only block port 80,443  
and redirect to proxy or WPAD.

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 21:19 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/8 "2025-02-15T21:19:48Z")

</div>

Yes I fully implemented what suggested in the [Firewall configuration recommendations for IPFire users](https://www.ipfire.org/blog/firewall-configuration-recommendations-for-ipfire-users) guide, blocking all forward and outbound traffic by default, and adding specific firewall rules to allow outbound traffic from the IPFire server only for the strictly needed protocols and ports.

So, following what is written in the “Allow essential connections for IPFire itself” section, I allowed DoT traffic to the primary and secondary DNS servers, outbound NPT traffic, and IMCP type 8 traffic to the gateway so that IPFire can measure its latency.

All this is fine, but I think that the guide should also mention that if the Squid proxy is used, another firewall rule should be added to allow outbound HTTP and HTTPS traffic. I am suggesting this as an improvement of that guide, because the Squid proxy is certainly an essential component of IPFire, so IMHO it should be mentioned together with the other five points reported.

If you agree, I can add this to the guide myself.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 21:38 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/9 "2025-02-15T21:38:19Z")

</div>

> [@lucatrv](#):
>
> Squid proxy is used, another firewall rule should be added to allow outbound HTTP and HTTPS traffic

This is not exactly true.  
It is a consequence of changing your firewall default behavior to blocked

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 22:44 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/10 "2025-02-15T22:44:32Z")

</div>

> [@hvacguy](#):
>
> It is a consequence of changing your firewall default behavior to blocked

I agree, but this is instructed by the guide: “To make things as secure as possible, however, it is necessary to drop any connection by default. In order to do so, change “forward firewall” and “outgoing firewall” policies to “blocked” on the [firewall options CGI](https://wiki.ipfire.org/configuration/firewall/default-policy)”.

After you do that, you need to add rules to allow some traffic. A few points are mentioned in the guide (DNS, NTP, ICMP, etc), but it is not mentioned that opening outbound HTTP/HTTPS traffic is needed for the proxy to work.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 23:13 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/11 "2025-02-15T23:13:48Z")

</div>

As a side note IPfire can not updater with out a fire wall rule as you described above.

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 23:16 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/12 "2025-02-15T23:16:09Z")

</div>

Yes, this is mentioned in the guide, but not that both HTTP and HTTPS outbound traffic is needed for the proxy to work.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [15 February 2025 23:24 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/13 "2025-02-15T23:24:05Z")

</div>

You can edit the wiki. if you want to add that bit of information.

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [15 February 2025 23:30 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/14 "2025-02-15T23:30:17Z")

</div>

OK, thanks!

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [16 February 2025 09:14 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/15 "2025-02-16T09:14:30Z")

</div>

> [@hvacguy](#):
>
> You can edit the wiki. if you want to add that bit of information.

@hvacguy I noticed only now that, while I see the “Edit Page” button at the bottom of the documentation pages (for instance [here](https://www.ipfire.org/docs)), that button is missing on the blog pages. So I am unable to modify the [Firewall configuration recommendations for IPFire users](https://www.ipfire.org/blog/firewall-configuration-recommendations-for-ipfire-users) guide ☹

@pmueller since you are the author of that guide, can I post the text here so that you can add it to the blog page? Or otherwise can you enable me to edit it? Thanks

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [16 February 2025 12:54 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/16 "2025-02-16T12:54:13Z")

</div>

I would add it here. it is explained here.

> **[Firewall Default Policy](https://www.ipfire.org/docs/configuration/firewall/default-policy)**

but more verbiage may help, to understand the consequence of changing the Default behavior to Blocked.

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [16 February 2025 13:22 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/17 "2025-02-16T13:22:38Z")

</div>

IMHO the [Firewall Default Policy](https://www.ipfire.org/docs/configuration/firewall/default-policy) page should reference to the [Firewall configuration recommendations for IPFire users](https://www.ipfire.org/blog/firewall-configuration-recommendations-for-ipfire-users) guide for in-depth information, and then all infos about firewall rules should be in the latter one.

---

<div class="post-metadata">

**Author:** ![hvacguy](https://community.ipfire.org/user_avatar/community.ipfire.org/hvacguy/32/8576_2.png) [@hvacguy](https://community.ipfire.org/u/hvacguy)\
**Post date:** [16 February 2025 13:51 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/18 "2025-02-16T13:51:12Z")

</div>

You cant edit a blog post.  
Quote from the blog post.  
change “forward firewall” and “outgoing firewall” policies to “blocked” on "the [firewall options CGI](https://wiki.ipfire.org/configuration/firewall/default-policy). Afterwards, a reboot is required to apply these settings.

After rebooting, nothing will work."

So the page about this setting is the best place to do this.

The Blog post is not a all encompassing manual.  
It is a guide.

---

<div class="post-metadata">

**Author:** ![lucatrv](https://community.ipfire.org/user_avatar/community.ipfire.org/lucatrv/32/12673_2.png) [@lucatrv](https://community.ipfire.org/u/lucatrv)\
**Post date:** [17 February 2025 23:31 UTC](https://community.ipfire.org/t/please-add-a-note-to-open-http-https-traffic-for-squid-in-the-firewall-configuration-recommendations-for-ipfire-users-guide/13647/19 "2025-02-17T23:31:42Z")

</div>

> [@hvacguy](#):
>
> So the page about this setting is the best place to do this.

I edited the documentation page, please let me know if you think it’s OK like that.
