Firewall Pfsense - Redirect Traffic 80 to 3128 squid machine
-
How to redirect in the pfsense firewall, the traffic from 80 to 3128 port of my squid machine.
I dont know how to create this rule in the pfsense firewall, because only have pass,reject and block.
Someone could help me please ?
Thanks
Andrei
-
Squid have transparent mode. Also mind the NAT rules.
-
Hi,
Ok i change the configurantion in the squid.conf
http_port 3128 transparent
but, i have to create a firewall rule to redirect the traffic from 80 to 3128 where is running the squid.
I dont know how to redirect in the pfsense firewall.
Could help me ?
Thanks
Andrei
-
Hi,
Ok i change the configurantion in the squid.conf
http_port 3128 transparent
but, i have to create a firewall rule to redirect the traffic from 80 to 3128 where is running the squid.
I dont know how to redirect in the pfsense firewall.
Could help me ?
Thanks
AndreiNot edit squid.conf manually, this file generated with GUI.
Use Gui\Proxy server\General settings\Transparent proxy option. All rules will created automticly.ps 'NAT' rules page present in GUI too.
-
thankss. done, its a nat rule !!
Thankss
[] ` s
Andrei
-
how can it works?
please give me the details…
i'm trying this for months, can't get the squid working...
hiks... -
i just can't do the NAT rules. can u explain more detail?
-
Hi,
just create a NAT Rule like this:
If: LAN
Ext. Adress: any
Protocol: TCP
Ext. port range: 80 (HTTP)
NAT IP: [your squid in different subnet]
Local port: 3128 (or your custom squid port)done.
It's important that your squid is on another subnet, otherwise you'll create a loop!
Greetz,
Felix -
You can refer here:
http://doc.pfsense.org/index.php/Setup_Squid_as_a_Transparent_Proxy