Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-08, 01:48:57

Author Topic: problem while opening ports  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

Offline medo.mine1

  • Junior Member
  • *
  • Posts: 47
  • Karma: +0/-0
    • View Profile
problem while opening ports
« on: 2015-11-04, 04:11:27 »
Hello,
I wish you're fine :)
I tried to open a new port in the firewall but not working,
I'm using  this firewall script http://oldwiki.lxcenter.org/How+to+secure+your+Kloxo+with+IPTABLES
So, I did the following :
Edited the firewall scipt and added this lines :
# 2087
iptables -t filter -A OUTPUT -p tcp --dport 2087 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 2087 -j ACCEPT
echo - 2087 : [OK]
then restarted the firewall ...
[root@s2 ~]# /etc/init.d/firewall  restart
the port still closed !
So, I Tried :
iptables -t filter -A OUTPUT -p tcp --dport 2087 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 2087 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 2087 -j ACCEPT
iptables -t filter -A INPUT -p udp --dport 2087 -j ACCEPT
Still the same !
And
iptables -A INPUT -p tcp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT

With no luck at all !

[root@s2 ~]# netstat -ntul
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:2014                0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:7776              0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:7779                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:2020                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:2021                0.0.0.0:*                   LISTEN
tcp        0      0 :::3306                     :::*                        LISTEN
tcp        0      0 :::587                      :::*                        LISTEN
tcp        0      0 :::110                      :::*                        LISTEN
tcp        0      0 :::143                      :::*                        LISTEN
tcp        0      0 :::80                       :::*                        LISTEN
tcp        0      0 :::465                      :::*                        LISTEN
tcp        0      0 :::25                       :::*                        LISTEN
tcp        0      0 :::443                      :::*                        LISTEN
tcp        0      0 :::2014                     :::*                        LISTEN
tcp        0      0 :::993                      :::*                        LISTEN
tcp        0      0 :::995                      :::*                        LISTEN
[root@s2 ~]#
How to open a port? :)
Thanks in advance.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: problem while opening ports
« Reply #1 on: 2015-11-04, 08:53:17 »
Try rename /etc/sysconfig/iptables.old to iptables and /etc/sysconfig/ip6tables.old to ip6tables first.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline medo.mine1

  • Junior Member
  • *
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: problem while opening ports
« Reply #2 on: 2015-11-04, 13:20:10 »
I don't have this file !
[root@s2 sysconfig]# cat  /etc/sysconfig/iptables
cat: /etc/sysconfig/iptables: No such file or directory

I found /etc/sysconfig/iptables-config only


[root@s2 ~]# cd  /etc/sysconfig/
[root@s2 sysconfig]# ls
authconfig    httpd.rpmsave    netconsole       rawdevices     snmptrapd.options  varnish
cbq           i18n             network          readonly-root  spamassassin       webalizer
console       init             network-scripts  rhn            spawn-fcgi         xinetd
crond         iptables-config  networking       run-parts      syslog
custom.httpd  lm_sensors       php-fpm          samba          sysstat
httpd         mkinitrd         pm-action        saslauthd      sysstat.ioconf
httpd.rpmnew  modules          prelink          snmpd.options  udev-stw

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: problem while opening ports
« Reply #3 on: 2015-11-04, 14:39:41 »
Inform here 'yum list iptables* firewall*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.049 seconds with 18 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM