Wednesday, 8 January 2014

Allow port in Linux Server

Error : Telnet a port  2001 in 192.168.20.174 server but connection refused

Solution:

1. Check /etc/services location
[root@PhoenixBackup ~]# grep -w 2001 /etc/services
dc              2001/tcp
wizard          2001/udp                        # curry
m3ua            2905/udp                        # De-registered (2001 June 07)
sua             14001/udp                       # De-Registered (2001 June 06)
ATMlen          2001/tcp
[root@PhoenixBackup ~]#

2. If the port exist in /etc/services then allow it into Firewall 

vi /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2001 -j ACCEPT

3. Save and close the file. Restart iptables:

# /etc/init.d/iptables restart


Cheers.....

1 comment:

  1. Jadwal Daftar Sabung Ayam SV388 15 Februari 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Jumat, Banten 15 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete