Opening a port is not working

Support for security such as Firewalls and securing linux
Post Reply
jay4eva
Posts: 1
Joined: 2015/06/25 15:39:32

Opening a port is not working

Post by jay4eva » 2015/06/25 15:42:01

Hi everyone,

we are trying open the port 4430 and it is not work for some reason.

IPTABLES ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 DTra ctstate NEW tcp dpt:4430 .... ACCEPT
IPTABLES ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 JAUW ctstate NEW tcp dpt:4430 .... ACCEPT

what shall we do? please advice. We are running Centos 6.6

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Opening a port is not working

Post by TrevorH » 2015/06/25 15:45:21

The default supplied rules end with a -j REJECT so all rules appended after that one will be ignored. Did you just iptables -A INPUT ...? If so then your rule is probably never being reached. Insert it instead using iptables -I INPUT $linenum ...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply