How to setup/configure a secure tcp port in redhat 6?

Background: Want to configure/open a secure tcp port (2435) in OS server ( for Oracle SSL tcp when to use sqlplus).
Would like to know which files in OS to change and what to change. In OS, to open a port for the secure tcp and a non-secure tcp, is there any difference?
jl66Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

savoneCommented:
There is no difference between secure and non-secure ports.  A TCP port is just that, a port, open or closed.  

To open TCP port 2435 in Red Hat 6 you would use the iptables command:

iptables -I INPUT -p tcp --dport 2435 -j ACCEPT

The above command will open the port on the firewall to allow anyone to connect to 2435.  If you want to save this configuration, issue the save command like so:

service iptables save
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Zephyr ICTCloud ArchitectCommented:
The only thing you could perhaps do to make it somewhat more secure is to allow only certain clients to connect to the port, in other words define the source that is allowed to connect to the database.

This could be your LAN IP-address range for example or just a range of IP-addresses that you'd like to allow:

iptables -A INPUT -p tcp --destination-port 2435 -m iprange --src-range 192.168.0.10-192.168.0.20 -j ACCEPT

Open in new window


Instead of '-A' you can also use '-I' ... The '-A-' option appends the rule as where '-I' inserts it in the chain you want it to be.
0
gheistCommented:
"system-config-firewall-tui" should suffice if you dont intend to filter access per-ip
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jl66Author Commented:
Thank all of you very much for the tips. Before I close this request, may I know how to test if the port is open from the server itself or another server? Do I have to be user root in order to do that?
0
savoneCommented:
Yes you have to be root, you can check iptables with:

iptables -L -vn

You will see a line like so:

    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:2435


That means it is open and available.  It does not however tell you if anything is listening on that port.
0
jl66Author Commented:
Thanks all so much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
TCP/IP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.