Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2009 06:43:04 -0700 (PDT)
From:      Zohreh <zohreh_ir@yahoo.com>
To:        freebsd-questions@FreeBSD.org
Cc:        keramida@ceid.upatras.gr
Subject:   Fw: Re: question
Message-ID:  <377063.98911.qm@web110711.mail.gq1.yahoo.com>

next in thread | raw e-mail | index | archive | help


--- On Tue, 7/21/09, Zohreh <zohreh_ir@yahoo.com> wrote:


From: Zohreh <zohreh_ir@yahoo.com>
Subject: Re: question
To: "Giorgos Keramidas" <keramida@ceid.upatras.gr>
Date: Tuesday, July 21, 2009, 2:43 PM







Dear Sir/Madam=20
tahnk you fo your reply ,=A0 i have checked my squid setting , and ftp_pass=
ive =3Don ,
i disabled firewall and brows ftp site ,i brows first page of ftp site but =
ia can not brows all link on it and take me this error :the folder ftp://ft=
p.hp.com is read only because the proxy server is not=A0 set up to allow fu=
ll access .
=A0
after that i enabeld firewall and check it again but i cannot brows ftp sit=
e . my rule set that i set is as follow :
=A0
IPF=3D"ipfw -q add"
skip=3D"skipto 800"
ipfw -q -f flush
#bge0 is outbound port on internet
#bge1 is inbound port on LAN network
#loopback=20
$IPF 10 allow all from any to any via bge1=A0=A0=A0=20
$IPF 11 allow all from any to any via lo0
#$IPF 20 deny all from any to 127.0.0.0/8
#$IPF 30 deny all from 127.0.0.0/8 to any
#$IPF 40 deny tcp from any to any frag=20
#$IPF 12 divert natd ip from any to any in via bge0
#statefull
$IPF 50 check-state
#$IPF 60 allow tcp from any to any established
#$IPF 70 allow all from any to any out keep-state
#$IPF 80 allow icmp from any to any=20
$IPF 90 allow all from any to any
#open port ftp(20,21),mail(25),http(80),https(443),ssh(22),dns(53)
$IPF 100 allow tcp from any to x.x.x.x 53 out via bge0 setup keep-state=A0=
=20
$IPF 101 allow udp from any to x.x.x.x 53 out via bge0=A0 keep-state
$IPF 110 allow tcp from any to any 80 out via bge0 setup keep-state
$IPF 120 allow tcp from any to any 443 out via bge0 setup keep-state
$IPF 130 allow tcp from any to any 25 out via bge0 setup keep-state
$IPF 140 allow tcp from any to any 110 out via bge0 setup keep-state
$IPF 150 allow icmp from any to any out via bge0=A0 keep-state
$IPF 160 allow tcp from any to any 20 out via bge0 setup keep-state
$IPF 170 allow tcp from any to any 21 out via bge0 setup keep-state
#$IPF 171 fwd 10.10.40.40 tcp from 192.168.32.0,21 to any 21=20
#$IPF 172 allow tcp from any to any 20 in via bge0
$IPF 180 allow tcp from any to any 22 out via bge0 setup keep-state
$IPF 190 allow tcp from any to any 43 out via bge0 setup keep-state
$IPF 200 allow tcp from any to any 53 out via bge0 setup keep-state
$IPF 210 allow udp from any to any 53 out via bge0 setup keep-state
$IPF 220 deny all from 192.168.0.0/16 to any in via bge0=20
$IPF 221 deny all from 172.16.0.0/12 to any in via bge0
$IPF 222 deny all from 10.0.0.0/8 to any in via bge0=20
$IPF 223 deny all from 0.0.0.0/8 to any in via bge0
$IPF 224 deny all from 169.254.0.0/16 to any in via bge0
$IPF 225 deny all from 192.0.2.0/24 to any in via bge0
$IPF 226 deny all from 204.152.64.0/23 to any in via bge0
$IPF 227 deny all from 224.0.0.0/3 to any in via bge0
$IPF 240 deny icmp from any to any in via bge0
#$IPF 241 allow icmp from 10.10.40.40 to 10.10.40.43 in via bge0
$IPF 250 deny tcp from any to any 113 in via bge0
$IPF 260 deny tcp from any to any 137 in via bge0
$IPF 261 deny tcp from any to any 138 in via bge0
$IPF 262 deny tcp from any to any 139 in via bge0
$IPF 263 deny tcp from any to any 81 in via bge0=A0=20
$IPF 270 deny all from any to any frag in via bge0
$IPF 280 deny tcp from any to any established in via bge0
$IPF 290 allow tcp from any to me 80 in via bge0 setup limit src-addr 2=20
#$IPF 800 divert natd ip from any to any out via bge0
#$IPF 801 allow ip from any to any=20
#deny log everything
$IPF 900 deny log all from any to any=A0=20
=A0
i would appriciated if you help me to solve=A0this problem . of course i ha=
ve this problem with pop3 and smtp in order to send email through of=A0my p=
roxy server .=20
=A0
thank you for your attention to this matter
=A0
best regards
zohreh
=A0


--- On Fri, 7/17/09, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:


From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject: Re: question
To: "Zohreh" <zohreh_ir@yahoo.com>
Cc: freebsd-questions@FreeBSD.org
Date: Friday, July 17, 2009, 11:58 PM


On Fri, 17 Jul 2009 10:51:57 -0700 (PDT), Zohreh <zohreh_ir@yahoo.com> wrot=
e:
> Dear Sir/Madam=20
> =A0
> i have a question about free bsd and squid that=A0was=A0installed on it.
> i insatlled squid 2.6 stabled 20 on freebsd 7. and i enabled firewall
> on freebsd .=A0 now i brows http sites on internet but i cannot brows
> ftp site and i cannot pass pop3 through of my squid .=A0 can you hlep me
> , how to config squid and freebsd to pass ftp and pop3 ?=A0 thank you
> for your attention =A0 best regards zohreh =A0

You seem to have blocked FTP access by tweaking the firewall ruleset.

Either show us the ruleset you are using, or try setting in the
environment of the squid proxy the option "FTP_PASSIVE_MODE=3D1".


=0A=0A=0A      



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