I followed a little tutorial to open a port.
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5280 -j ACCEPT
I restarted the firewall
service iptables restart
But the port remains closed :
> nmap -v -sV localhost -p 5280
Starting Nmap 5.51 ( http://nmap.org
) at 2012-11-19 11:27 BRT
NSE: Loaded 8 scripts for scanning.
Initiating SYN Stealth Scan at 11:27
Scanning localhost (127.0.0.1) [1 port]
Completed SYN Stealth Scan at 11:27, 0.01s elapsed (1 total ports)
Initiating Service scan at 11:27
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000056s latency).
Other addresses for localhost (not scanned): 127.0.0.1
rDNS record for 127.0.0.1: bio1
PORT STATE SERVICE VERSION
5280/tcp closed xmpp-bosh
Read data files from: /usr/share/nmap
Service detection performed. Please report any incorrect results at http://nmap.org/submit/
Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
Raw packets sent: 1 (44B) | Rcvd: 2 (84B)
What is the problem with my configuration ?