[help]Open port Centos

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat [help]Open port Centos
# 1  
Old 07-15-2012
[help]Open port Centos

I uses iptables but not working Smilie
# 2  
Old 07-15-2012
Could you be a bit more specific?
# 3  
Old 07-15-2012
One can open ports through iptables even if they have no idea about the commands, chains, etc.
First, take a look at /etc/sysconfig/iptables file. You should see a line something like this:
Code:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

If you have opened the file in an editor, copy the line and paste it just below the above line. Now, you have to edit certain things like the port number and whether you are opening TCP or UDP port. Once done, save the file and restart iptables service. That's all.

Code:
service iptables restart
iptables -nL | grep PORT_NUMBER
netstat -tulpn | grep PORT_NUMBER

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Good way to check firewall port on Linux centos 7

Hi, I need to know what kind of firewall settings does the linux box have? Is port 25 blocked in any way? Linux techx 3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I'm coming from this thread. (1 Reply)
Discussion started by: mohtashims
1 Replies

2. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies

3. Red Hat

Os Open source dialer not working on Centos Asterisk platform

Hi We have one centos Server on Asterisk platform and using OS Open source dialer for dialing outbound connections.We are using eyebeam as a softphone for calling with Server ip 192.168.1.X.Today i found dialing issues with each client side phones.Not showing pause/resume button when browse... (0 Replies)
Discussion started by: Vaibhav.T
0 Replies

4. Red Hat

Os (open source dialer config on centos)

Hii Champs I want to configure OS (Open source dialer on asterisk platform) for Centos.here is the detail : We are going to use inbound outbound calling.We have Two servers with 2 separate network for inbound and outbound calling.using 6 mbps dedicated line with 2 mbps bakcup line.I want... (0 Replies)
Discussion started by: Vaibhav.T
0 Replies

5. UNIX for Dummies Questions & Answers

Linux - How to Open a Port

Hi, I would like to open a specific port for use with a bespoke application. Before everyone points me to other threads - I read a few but couldn't find any specific to my problem. Iptables / firewall is disabled SELinux is also disabled I would just like to assign this port to this... (0 Replies)
Discussion started by: mcclunyboy
0 Replies

6. Red Hat

problem in open ldap in centos

Hi I am trying to use open ldap in centos. I have installed all the packaged. When I try to use slappasswd to encrypt the password, it does nothing. I searched for the file and I found out that it is in /usr/sbin and that the file is link to slapd. However slapd doesn't encrypt anything. ... (0 Replies)
Discussion started by: programAngel
0 Replies

7. Solaris

how to open specific port

Dear members, My release is open Solaris b103 1- How to know the opening port in my system 2- How to open a specific port like port number 53 3- How to closed the specific port like port number 53 Your feedback highly appreciated (10 Replies)
Discussion started by: dellroxy
10 Replies

8. IP Networking

Unknown open port: "6881/tcp open bittorrent-tracker" found with nmap

Hi. I ran nmap on my server, and I get the following: Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT Interesting ports on -------- (-----): Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 6881/tcp open bittorrent-tracker The... (0 Replies)
Discussion started by: Rledley
0 Replies

9. Linux

open port

How can I open a port on linux machine ??? (5 Replies)
Discussion started by: mm00123
5 Replies

10. UNIX for Dummies Questions & Answers

Best open source firewall for a Centos Server

any recommendations ? thanks (1 Reply)
Discussion started by: upirate
1 Replies
Login or Register to Ask a Question