Hi!

> Hi all.  I would like to allow ssh in and out of my
> box, without using state rules.  
> 
> Here's what I've got:
> ...
> pass in quick on dc0 proto tcp from any to any port =
> 22
> ...
> pass out quick on dc0 proto tcp from any to any port =
> 22
> ...
> block in log on dc0
> block out log on dc0
> ...
> 
> When I try to ssh out from the box (FreeBSD 5-1) I get
> The replies from outside server blocked
> (flags=SA,catches on "block in log on dc0")

That's not surprising, because there is no rule that allows the 
response packets from remote server's port 22 to enter your system.

> If I try to ssh into the system, the replies get
> blocked going back out the interface
> ("flags=SA,catches on "block out log on dc0")

Similarly, there is no rule that allows the response packets from your 
server's port 22 to go out to the client.

--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* 24 hours in a day, 24 beers in a case. Coincidence?

Reply via email to