Port is open but I am unable to connect

Jason Opperisano opie at 817west.com
Tue Sep 7 22:19:58 CEST 2004


On Tue, 2004-09-07 at 15:27, 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

i would content that while you believe your source IP is 1.2.3.4 in this
scenario--it; in fact, is not.

try:

  iptables -A INPUT -j LOG --log-prefix "FW DROP INPUT: "

and see what the logs have to say about it.

-j

-- 
Jason Opperisano <opie at 817west.com>




More information about the netfilter mailing list