This is what happens: Jun 1 21:29:38 haanjdj ipmon[76]: 21:29:37.964350 em1 @0:19 p 195.109.189.2,2231 -> 82.161.5.221,22 PR tcp len 20 60 -S K-S K-F IN Jun 1 21:29:40 haanjdj ipmon[76]: 21:29:39.773919 em1 @0:1 b 82.161.5.221,22 -> 195.109.189.2,2231 PR tcp len 20 60 -AS OUT
The tcp connection can't be established. S comes in but AS isn't allowed out. @19 pass in log first quick on em1 proto tcp from any to 82.161.5.221/32 port = 22 flags S/FSRPAU keep state keep frags (seems OK) @1 block in log from any to any (this rule is a fall-through that should never be reached for normal traffic. I don't understand why 'keep state' in the incoming rule doesn't allow the answer out) I have however managed to narrow it down a bit: if I comment out the line that does port-remapping, then all is well. Does this ring a bell ? I am still rather puzzled by this one. regards, Derkjan ----- Original Message ----- From: "Guido van Rooij" <[EMAIL PROTECTED]> To: "Derkjan de Haan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, May 28, 2004 9:19 AM Subject: Re: ipfilter > On Thu, May 27, 2004 at 06:29:09PM +0200, Derkjan de Haan wrote: > > > map em1 0.0.0.0/0 -> 0.0.0.0/32 proxy port ftp ftp/tcp > > > map em1 0.0.0.0/0 -> 0.0.0.0/32 portmap tcp/udp auto > > > map em1 0.0.0.0/0 -> 0.0.0.0/32 > > > > I have tried that; FTP and other outbound traffic work indeed. However, when > > I activate these rules, all existing incoming connections are cut off, and > > no new ones are accepted. The box is completely unreacheable from the > > Internet. Below is the output of ipnat -lv in case it is of any help. > > > Use output of ipmon to check creation/non-creation of NAT, state and the > blocking and passing of packets. > > -Guido >
