From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ramin Alidousti Subject: Re: ssh Date: Mon, 24 Jun 2002 09:56:30 -0400 Sender: netfilter-admin@lists.samba.org Message-ID: <20020624135630.GC26150@cannon.eng.us.uu.net> References: <200206241331.OAA15709@slate.rockstone.co.uk> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Errors-To: netfilter-admin@lists.samba.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Maciej Soltysiak Cc: Antony Stone , netfilter@lists.samba.org On Mon, Jun 24, 2002 at 03:47:49PM +0200, Maciej Soltysiak wrote: > > 1. You can't. Netfilter / IPtables works by port number, not by content, so > > you can only filter by port number. > Hmm, maybe you could... > Look: > 1. look for a openingpacket with ssh connection characteristics, say a > version string and mark packets, use recent module, put them to a > seperate chain. something like that. Yes. Very expensive though and not full-proof in case of fragments. Ramin > 2. filter by port number. > > What do you think? > > Maciej >