Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 19:02:59 -0400
From:      "Spiros Papadopoulos" <spap13@googlemail.com>
To:        "freebsd mailing list" <freebsd-questions@freebsd.org>,  teklimbu@wlink.com.np
Subject:   Fwd: Squid and IPFW
Message-ID:  <dab71e150705311602t78bb619aid3d9a0932d656c9@mail.gmail.com>
In-Reply-To: <465F157B.1090205@wlink.com.np>
References:  <dab71e150705311013g74c5f32v3ca7a018a26ecc83@mail.gmail.com> <465F157B.1090205@wlink.com.np>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for your reply. I asked the question long in advance. I will try
this.

---------- Forwarded message ----------
From: Tek Bahadur Limbu <teklimbu@wlink.com.np >
Date: 31-May-2007 14:35
Subject: Re: Squid and IPFW
To: Spiros Papadopoulos <spap13@googlemail.com>
Cc: freebsd mailing list < freebsd-questions@freebsd.org>



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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org "
>
>
>



-- 
Spiros P.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dab71e150705311602t78bb619aid3d9a0932d656c9>