Hi all,
I'm trying to open port 8008 so that it's accessible via telnet.
I added rules to do so, but it just doesn't seem to be working.
Here's the output of "iptables --list -n" :
[root@A2 root]# iptables --list -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:8008
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:8008
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:8008
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:8008
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:8008
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:8008
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:8008
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:8008
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8008
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:8008
Here's the output of "nmap -sT -O localhost" (note that port 8008 doesnot seem to be open):
Starting nmap 3.50 (
http://www.insecure.org/nmap/ ) at 2006-07-20 17:51 PDT
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1656 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
Device type: general purpose
Running: Linux 2.4.X|2.5.X
OS details: Linux Kernel 2.4.0 - 2.5.20
Uptime 73.049 days (since Mon May 8 16:40:59 2006)
Nmap run completed -- 1 IP address (1 host up) scanned in 5.361 seconds
...and finally, the telnet fails-
[root@A2 root]# telnet localhost 8008
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
What am I doing wrong here?
Any help will be highly appreciated.
Thanks,
Neelay.