Re: Squid and IPFW





Spiros Papadopoulos wrote:
Dear all,

I would like to setup a gw / firewall (IPFW) which will also run Squid, in
order to restrict access to certain websites
or to allow certain workstations to have full access to the internet.
How can I redirect all traffic going to port 80 on the gw, to port 3128 on
Squid without setting this on each workstation?
I know this can be done with iptables but i don't want to use iptables on
this one...

Hi Spiros,

You can try the following commands:


/sbin/ipfw add fwd 127.0.0.1,3128 tcp from any to any 80 in
/sbin/ipfw add allow tcp from 192.168.0.0/24 to any 3128 in via fxp0

Hope it helps.



Thanks in advance
Spiros P.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"




_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Squid and IPFW
    ... order to restrict access to certain websites ... How can I redirect all traffic going to port 80 on the gw, ... Squid without setting this on each workstation? ... I know this can be done with iptables but i don't want to use iptables on ...
    (freebsd-questions)
  • Re: OT: Squid or iptables or something else?
    ... > | I have a client that wants to restrict access to the Internet to only ... > | searching on the net, I discovered that Squid could be used. ... > Just set up iptables enough so that everyone must use the squid to get out. ...
    (Fedora)
  • Re: OT: Squid or iptables or something else?
    ... | I have a client that wants to restrict access to the Internet to only ... I discovered that Squid could be used. ... Just set up iptables enough so that everyone must use the squid to get out. ...
    (Fedora)