root@KKT-Server:~# iptables -A INPUT -p tcp --dport 6667 -j ACCEPT root@KKT-Server:~# sudo sh -c "iptables-save > /etc/iptables.rules" root@KKT-Server:~# netstat -an | grep "LISTEN " tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 192.168.0.54:53 0.0.0.0:* LISTEN tcp 0 0 192.168.0.53:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN tcp 0 0 192.168.0.54:25 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN tcp6 0 0 :::8080 :::* LISTEN tcp6 0 0 :::53 :::* LISTEN tcp6 0 0 :::22 :::* LISTEN tcp6 0 0 ::1:25 :::* LISTEN tcp6 0 0 ::1:953 :::* LISTEN root@KKT-Server:~# Can someon please help me to open the port. I also looked at https://help.ubuntu.com/community/IptablesHowTo
You need to start the service that listens on port 6667. Just opening the firewall doesn't help if there's no service listening on that port.
thanx i installed an irc server and now my system listens to that port. <<< what do u mean with this ? can u tell me more , cause i have some problem with u my be more. when i run psybnc its run but just for a minutes its dropped again , the connection refused again . so i decide to stop the process of iptables but its bad . pls advice