Reply
Thread Tools
Posts: 24 | Thanked: 26 times | Joined on Feb 2011
#1
I have iptables installed and I have currently done this: (as root)

iptables -F;

iptables -I INPUT -p tcp --dport 80 -j ACCEPT;

nc -l -vv -p 80;

However, when I try to connect to port 80 on my n900 from another machine (yes netcat is listening on all interfaces), I am unable to connect.

When I do a nmap scan on my n900 on port 80, it shows that the port is closed, even though I have netcat still listening on that port and iptables has been setup to accept connections on that port.

Oddly enough, on higher ports such as tcp port 8000, I am able to accept connections.

Is there another firewall on the n900 that is getting in the way? Any tips or pointers that you can give, I would greatly appreciate.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#2
First of all by default all policies are open, so you don't really need that iptables command.

Is that 'another machine' on the same subnet?

BTW, the nc command doesn't seem to be correct, say you should supply a non-zero value after -w. Besides, which package provides nc in your case? Please show me the result of the following command:

Code:
dpkg -S `which nc`
 
Posts: 24 | Thanked: 26 times | Joined on Feb 2011
#3
-vv = V V

lol For increased verbosity, it's not a 'W'.

And this other machine is on the same subnet.

I don't think this is a netcat specific problem, because I will get the same results if I do:

Code:
python -m SimplHTTPServer 80
What could be causing this issue?
 
Posts: 24 | Thanked: 26 times | Joined on Feb 2011
#4
This is odd.. I did:

Code:
iptables --flush
reboot
Now I'm not having this issue, that's queer.
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:05.