<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Captive + Squid transp. works only after reload]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I am using pfSense for half a year now in a very basic setup. Now I want to drive this a bit further and use it in a productive environment.<br />
I am using a pfSense 1.01 on a P4 with 2 network cards and squid 2.6.5_1-p15 installed (no other packages).</p>
<p dir="auto">What I want to achieve:</p>
<p dir="auto">A client connects to the WLAN network (accesspoint attached to one interface, dhcp disabled on the AP), gets the IP from pfSenses dhcp server and the first http-query gets redirected to the captive portal (local userdb). After the authentication, all the internet-traffic gets redirected through the transparent squid, so that I can dig the logs and connect the username to the surfed sites.</p>
<p dir="auto">What I have configured:</p>
<ul>
<li>
<p dir="auto">Anti lockout rule disabled. Access to the web-interface is granted from one fixed external ip address</p>
</li>
<li>
<p dir="auto">No NAT</p>
</li>
<li>
<p dir="auto"><strong>LAN Rules:</strong></p>
</li>
<li>
<ul>
<li>
<p dir="auto">UDP Port 53 to LAN address (for DNS)</p>
</li>
<li>
<p dir="auto">TCP Port 80 to LAN address (shouldn't be necessary AFAIK)</p>
</li>
<li>
<p dir="auto">TCP Port 3128 to LAN address (shouldn't be necessary, because redirection comes from 127.0.0.1, right?)</p>
</li>
<li>
<p dir="auto">TCP Port 8000 to LAN address (Captive Portal)</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Traffic Shaper: went through the wizard</p>
</li>
<li>
<p dir="auto">Captive Portal:</p>
</li>
<li>
<ul>
<li>
<p dir="auto">Enabled on LAN interface</p>
</li>
<li>
<p dir="auto">IDLE timeout: 120 minutes</p>
</li>
<li>
<p dir="auto">Enable logout popup window</p>
</li>
<li>
<p dir="auto">Local user manager</p>
</li>
<li>
<p dir="auto">Additionaly I uploaded my own templates (prefixed with captiveportal-)</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Enabled the DNS forwarder</p>
</li>
<li>
<p dir="auto">Enabled DHCP Server</p>
</li>
<li>
<ul>
<li>
<p dir="auto">Range 192.168.0.10-…254</p>
</li>
<li>
<p dir="auto">DNS Server: 192.168.0.1 (LAN address)</p>
</li>
<li>
<p dir="auto">Gateway: 192.168.0.1</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Proxy Server on LAN interface</p>
</li>
<li>
<ul>
<li>
<p dir="auto">ticked Allow users on interface</p>
</li>
<li>
<p dir="auto">ticked Transparent Proxy</p>
</li>
<li>
<p dir="auto">ticked Enable logging</p>
</li>
<li>
<p dir="auto">Log Store Directory: /var/squid/log</p>
</li>
<li>
<p dir="auto">Proxy Port: 3128</p>
</li>
<li>
<p dir="auto">Access Control: Allowed Subnets: 192.168.0.0/24</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">And that's all.<br />
<strong>Now to the problem:</strong></p>
<hr />
<p dir="auto">After a reboot of the maschine, the internet access to the internet is not working. I can access 192.168.0.1:8000 when I enter the URL directly, but I cannot open google.de for example. I watched the squid logs with "tail -f" but there is nothing in when I try to access an URL, so I assume, the NAT rule is not generated automatically after reboot.</p>
<p dir="auto">I am able to fix that by going to NAT in the web-interface and create an apply a dummy rule like "nat port 9999 to 192.168.0.2 port 9999". After applying the rules, the connection works as supposed. I have also tried to leave this rule in and reboot the maschine, but without succes.</p>
<p dir="auto">Well, I can live with that, but I need to roll this out to several locations and it should work out of the box.</p>
<p dir="auto">Your help is very much appreciated…</p>
<p dir="auto">CHeers,<br />
Manuel</p>
]]></description><link>https://forum.netgate.com/topic/3289/captive-squid-transp-works-only-after-reload</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 00:49:17 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/3289.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Jan 2007 09:16:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Captive + Squid transp. works only after reload on Fri, 02 Feb 2007 10:59:30 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I was wrong with my last post.</p>
<p dir="auto">The problem still exists. After a reboot, no access from inside to outside without creating and deleting a dummy-nat-rule.</p>
<p dir="auto">Regards,<br />
Manue</p>
]]></description><link>https://forum.netgate.com/post/148583</link><guid isPermaLink="true">https://forum.netgate.com/post/148583</guid><dc:creator><![CDATA[yoogie]]></dc:creator><pubDate>Fri, 02 Feb 2007 10:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to Captive + Squid transp. works only after reload on Fri, 02 Feb 2007 08:36:44 GMT]]></title><description><![CDATA[<p dir="auto">Yes, the webinterface is running on port 443 (HTTPS).</p>
<p dir="auto">I think I have found the reason why it doesn't generate the NAT rules after startup.<br />
I had the option "Disable NAT Reflection" under Advanced Tab enabled, because I don't want to allow this type of traffic to the firewall and the internet. All the administration stuff should come from one external ip address.</p>
<p dir="auto">When I disable the option, the internet access is available directly after reboot. But in addition every client is allowed to connect to the firewall directly and this is not intended.</p>
<p dir="auto">Does anybody know which NAT rules I have to set up in order to have the SQUID transparent option working without having to disable the "Disable NAT reflection" rule?</p>
<p dir="auto">Many thanks in advance.</p>
<p dir="auto">Manuel</p>
]]></description><link>https://forum.netgate.com/post/148579</link><guid isPermaLink="true">https://forum.netgate.com/post/148579</guid><dc:creator><![CDATA[yoogie]]></dc:creator><pubDate>Fri, 02 Feb 2007 08:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to Captive + Squid transp. works only after reload on Thu, 01 Feb 2007 07:07:16 GMT]]></title><description><![CDATA[<p dir="auto">did you move the webgui from port 80 to a different port ? so that squid can take port 80 for the Transparent Proxy</p>
]]></description><link>https://forum.netgate.com/post/148504</link><guid isPermaLink="true">https://forum.netgate.com/post/148504</guid><dc:creator><![CDATA[jeroen234]]></dc:creator><pubDate>Thu, 01 Feb 2007 07:07:16 GMT</pubDate></item></channel></rss>