From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Reissner Subject: Re: Port is open but I am unable to connect Date: Tue, 07 Sep 2004 21:35:04 +0200 Sender: netfilter-bounces@lists.netfilter.org Message-ID: <413E0D68.6020208@toxicnet.de> References: <413E0B9E.8010708@list.idg.dk> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <413E0B9E.8010708@list.idg.dk> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jacob Friis Larsen Cc: netfilter@lists.netfilter.org just to make sure.. you are certain, that you want -s 1.2.3.4? this means source ip is 1.2.3.4 (so the ip you connect from, not the ip you connect _to_) Jacob Friis Larsen wrote: > When I add -s 1.2.3.4 I am unable to connect to my server. > nmap shows that the correct ports are open. > Any ideas? > > iptables -A INPUT -s 1.2.3.4 -j ACCEPT -p tcp --dport 22 -m state > --state NEW > > This is my script: > > > Thanks, > Jacob > >