Re: pf rules

2010-01-24 Thread Erik Norgaard
Doug Hardie wrote: 1. pf allows short cuts, but these also makes it more difficult to debug. I'd separate NAT from filtering, Ok. I guess you want some white space between them? Here it is with the white space and comments: ext_if=dc0 table blackhole persist file /etc/blackhole

Re: pf rules

2010-01-23 Thread Erik Norgaard
Doug Hardie wrote: This is quite interesting. I can't figure out the rules on my system. Maybe try to simplify, clean up and structure your rules :) Here is the pf.conf file with all comments removed: table blackhole persist file /etc/blackhole table spamd persist table spamd-white

Re: pf rules

2010-01-23 Thread Doug Hardie
On 23 January 2010, at 04:18, Erik Norgaard wrote: Doug Hardie wrote: This is quite interesting. I can't figure out the rules on my system. Maybe try to simplify, clean up and structure your rules :) Here is the pf.conf file with all comments removed: table blackhole persist file

Re: pf rules

2010-01-22 Thread Dánielisz László
hi kalin, my question is: are you telnet-ing to/from/through this machine with the specified pf rules? From: kalin m ka...@el.net To: freebsd-questions@freebsd.org Sent: Fri, January 22, 2010 8:12:00 AM Subject: pf rules hi all... doing testing with pf

Re: pf rules

2010-01-22 Thread Erik Norgaard
port $tcp_in flags S/SAF synproxy state pass proto tcp to any port ssh To debug pf rules: - always add direction to the rule, pass or block, add interface to all rules except default policy, keep state on all pass rules - group your rules per direction, then per interface - add log to all rules

Re: pf rules

2010-01-22 Thread Fbsd1
in inet proto tcp to any port $tcp_in flags S/SAF synproxy state pass proto tcp to any port ssh To debug pf rules: - always add direction to the rule, pass or block, add interface to all rules except default policy, keep state on all pass rules - group your rules per direction, then per interface

Re: pf rules

2010-01-22 Thread Doug Hardie
On 22 January 2010, at 01:45, Erik Norgaard wrote: To debug pf rules: - always add direction to the rule, pass or block, add interface to all rules except default policy, keep state on all pass rules - group your rules per direction, then per interface - add log to all rules and watch

Re: pf rules

2010-01-22 Thread Erik Norgaard
Doug Hardie wrote: On 22 January 2010, at 01:45, Erik Norgaard wrote: To debug pf rules: - always add direction to the rule, pass or block, add interface to all rules except default policy, keep state on all pass rules - group your rules per direction, then per interface - add log to all

Re: pf rules

2010-01-22 Thread Tim Judd
On 1/22/10, kalin m ka...@el.net wrote: hi all... doing testing with pf... how is it possible that if i have these rules below in pf.conf if i do: telnet that.host.org 25 i get: Trying xx.xx.xx.xx... Connected to that.host.org. Escape character is '^]'. ... etc ...

Re: pf rules

2010-01-22 Thread Cristiano Deana
On Fri, Jan 22, 2010 at 8:12 AM, kalin m ka...@el.net wrote: how is it possible that if i have these rules below in pf.conf if i do: telnet that.host.org 25 i get: Trying xx.xx.xx.xx... Connected to that.host.org. Escape character is '^]'. you probably don't load pf. pfctl -sa | grep

Re: pf rules

2010-01-22 Thread Doug Hardie
On 22 January 2010, at 03:14, Erik Norgaard wrote: Doug Hardie wrote: On 22 January 2010, at 01:45, Erik Norgaard wrote: To debug pf rules: - always add direction to the rule, pass or block, add interface to all rules except default policy, keep state on all pass rules - group your rules

Re: pf rules

2010-01-22 Thread Doug Hardie
On 22 January 2010, at 03:14, Erik Norgaard wrote: Doug Hardie wrote: On 22 January 2010, at 01:45, Erik Norgaard wrote: To debug pf rules: - always add direction to the rule, pass or block, add interface to all rules except default policy, keep state on all pass rules - group your rules

pf rules

2010-01-21 Thread kalin m
hi all... doing testing with pf... how is it possible that if i have these rules below in pf.conf if i do: telnet that.host.org 25 i get: Trying xx.xx.xx.xx... Connected to that.host.org. Escape character is '^]'. ... etc ... pf.conf contetns: tcp_in = { www, https } ftp_in = {

PF rules evaluation

2008-08-28 Thread Michael Lednev
Hello. Is there some tool to test rules-file for PF with arbitrary packets without need for real traffic? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to

Re: PF rules evaluation

2008-08-28 Thread Jay Chandler
Michael Lednev wrote: Hello. Is there some tool to test rules-file for PF with arbitrary packets without need for real traffic? Yes. It's called netcat (nc on most systems). -- Jay Chandler / KB1JWQ Living Legend / Systems Exorcist Today's Excuse: Second-system effect

Re: PF rules evaluation

2008-08-28 Thread Michael Lednev
Jay Chandler пишет: Michael Lednev wrote: Hello. Is there some tool to test rules-file for PF with arbitrary packets without need for real traffic? Yes. It's called netcat (nc on most systems). Very funny. It will create real traffic which I want to avoid.

DHCP client and PF rules

2006-04-20 Thread RW
My desktop PC get its IP address from a PPPoA modem connected with ethernet. I started logging DHCP in PF, to make sure I wasn't dropping anything, but the *only* packets I'm seeing are incoming broadcast: pass in on vr0: 10.0.0.2.67 255.255.255.255.68: BOOTP/DHCP, Reply, length:

What is wrong with these pf rules?

2006-01-14 Thread Leon Botes
binat on $dig_if from $dmz_srv to any - $dig_ip2 binat on $dsl1_if from $dmz_srv to any - $dsl1_ip2 binat on $dsl2_if from $dmz_srv to any - $dsl2_ip2 rdr on $dig_if inet proto tcp from any to $dig_ip2 port { 25, 80, 81, 110 } - $dmz_srv rdr on $dsl1_if inet proto tcp from any to $dsl1_ip2 port

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Fafa Hafiz Krantz
It's a question of letting DNS traffic _in_ to your nameserver: pass in on $ext_if inet proto { tcp, udp } \ from any to ($ext_if) port 53 ^^^ that lets the traffic in pass out on $ext_if inet proto { tcp, udp } \ from ($ext_if) port 53 to any ^^^ and that lets it

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Fafa Hafiz Krantz
Correction: Unless I COMMENT the default deny policy nothing seems to work. -- Fafa Hafiz Krantz Research Designer @ http://www.home.no/barbershop Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf -- ___ Sign-up for Ads

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Fafa Hafiz Krantz
It's a question of letting DNS traffic _in_ to your nameserver: pass in on $ext_if inet proto { tcp, udp } \ from any to ($ext_if) port 53 ^^^ that lets the traffic in pass out on $ext_if inet proto { tcp, udp } \ from ($ext_if) port 53 to any ^^^ and that lets it

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Jan Grant
On Tue, 10 May 2005, Fafa Hafiz Krantz wrote: Ok, after having added that it seems that my DNS works. The same goes for my WWW and mail server. SSH servers are all OK to connect to. I have to wait like 5 minutes after booting my computer before I can connect to those certain FTP sites.

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Giorgos Keramidas
On 2005-05-10 05:09, Fafa Hafiz Krantz [EMAIL PROTECTED] wrote: It's a question of letting DNS traffic _in_ to your nameserver: pass in on $ext_if inet proto { tcp, udp } \ from any to ($ext_if) port 53 ^^^ that lets the traffic in pass out on $ext_if inet proto { tcp, udp } \

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Fafa Hafiz Krantz
- Original Message - From: Giorgos Keramidas [EMAIL PROTECTED] To: Fafa Hafiz Krantz [EMAIL PROTECTED], Jan Grant [EMAIL PROTECTED] Subject: Re: PF RULES! But mine doesn't ... Date: Tue, 10 May 2005 13:50:27 +0300 On 2005-05-10 05:09, Fafa Hafiz Krantz [EMAIL PROTECTED] wrote: It's

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Fafa Hafiz Krantz
The rules I suggested are so that external machines can talk to your DNS server (querying about the domain it is authoritative for), and so that responses can get back to those machines. Your nameserver, however, may also be trying to get requests out. When it does this, by default, it

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Giorgos Keramidas
On 2005-05-10 07:19, Fafa Hafiz Krantz [EMAIL PROTECTED] wrote: Giorgos Keramidas [EMAIL PROTECTED] wrote: Show us the output of: # pfctl -sr [snip ruleset] Hello! # pfctl -sr scrub in all fragment reassemble block drop log all pass quick on lo0 all pass quick on ep0 all

PF RULES! But mine doesn't ...

2005-05-08 Thread Fafa Hafiz Krantz
Hello. My ruleset is all twisted. Unless I disable the default deny policy, this is what happens: * My nameserver setup goes disfunctional. * My web, mail and fileserver goes disfunctional. * I cannot SSH and FTP into certain servers. * I cannot ping my IP from the outside. Can anyone tell

Re: PF RULES! But mine doesn't ...

2005-05-08 Thread Jan Grant
On Sun, 8 May 2005, Fafa Hafiz Krantz wrote: Hello. My ruleset is all twisted. Unless I disable the default deny policy, this is what happens: * My nameserver setup goes disfunctional. * My web, mail and fileserver goes disfunctional. * I cannot SSH and FTP into certain servers. *

Re: PF RULES! But mine doesn't ...

2005-05-08 Thread Robert Marella
Fafa Hafiz Krantz wrote: Hello. My ruleset is all twisted. Unless I disable the default deny policy, this is what happens: * My nameserver setup goes disfunctional. * My web, mail and fileserver goes disfunctional. * I cannot SSH and FTP into certain servers. * I cannot ping my IP from the

Re: PF RULES! But mine doesn't ...

2005-05-08 Thread Robert Marella
Fafa Hafiz Krantz wrote: Perhaps you should check the archives. :) What do you mean? There are many archives out there ... Please tell me which one? Thanks! -- Fafa Hafiz Krantz Research Designer @ http://www.home.no/barbershop Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf Did