Date: Thu, 12 Apr 2007 15:09:39 -0700 From: "Michael K. Smith - Adhost" <mksmith@adhost.com> To: "Vadym Chepkov" <vchepkov@gmail.com>, <freebsd-pf@freebsd.org> Subject: RE: DMZ problem Message-ID: <17838240D9A5544AAA5FF95F8D52031601E22854@ad-exh01.adhost.lan> In-Reply-To: <004a01c77cba$5480ffd0$0610a8c0@chepkov.lan> References: <004a01c77cba$5480ffd0$0610a8c0@chepkov.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Vadym: > -----Original Message----- > From: owner-freebsd-pf@freebsd.org [mailto:owner-freebsd- > pf@freebsd.org] On Behalf Of Vadym Chepkov > Sent: Wednesday, April 11, 2007 9:24 PM > To: freebsd-pf@freebsd.org > Subject: DMZ problem >=20 > Hello everyone, >=20 > I earlier asked a question about Amanda, still hasn't solved it, but it > seems I have a bigger problem, I obviously doing something wrong here, > maybe > by fixing this issue I will be able to fix it as well. >=20 > I discovered my secondary DNS server, which is located outside of our > network, is not able to transfer zone file from the primary DNS server, > which is located in our DMZ. My DMZ rules are build on "inversed" > logic, > since I want to limit access to it from all interfaces (we have many of > them), so I don't want to duplicate "in" rules on all other interfaces > for > the DMZ. > I reduced my pf.conf to the bare minimum, and yes, if I disable pf, I > am > able axfr zone right away. > This is the actual pf.conf that I am testing with, and it doesn't work. > And > what is very frustrated, pflog is silent. I don't see anything being > dropped >=20 > ----------------------------- > dmz_if=3D"em0" > wan_if=3D"bge0" >=20 > set optimization normal > set block-policy return > set skip on lo > scrub in >=20 > block in log on $wan_if > pass out on $wan_if from { $wan_if $dmz_if:network } keep state > # DMZ has it's own rules > pass in on $wan_if to $dmz_if:network >=20 > # SSH so I can login back > pass in quick on $wan_if proto tcp to port ssh flags S/SA keep state >=20 > # DMZ > block out log on $dmz_if > pass in on $dmz_if keep state > pass out quick on $dmz_if proto tcp to port domain flags S/SA keep > state > pass out quick on $dmz_if proto udp to port domain keep state >=20 > -------------------------------- >=20 You might want to try: pass out log quick on $dmz_if prot udp from any to any port 53 keep state pass out log quick on $wan_if prot udp from any to any port 53 keep state You could also ratchet down the source and destination IP addresses instead of using the interfaces if you wanted to be more granular. Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17838240D9A5544AAA5FF95F8D52031601E22854>