problem in openning a port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
beofore openning  a port, I checked which port is open:
 
mahmood@client:~$ netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:15002           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:15003           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:38304           0.0.0.0:*               LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     3488     @/com/ubuntu/upstart



Then I opened a port with


mahmood@client:~$ sudo iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 4949 -j ACCEPT
[sudo] password for mahmood:
mahmood@client:~$ 


However netstat doen't show it is open:

mahmood@client:~$ netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:15002           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:15003           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:38304           0.0.0.0:*               LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     3488     @/com/ubuntu/upstart


What is wrong?
// Naderan *Mahmood;
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux