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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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

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 -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.
"system-config-firewall-tui" should suffice if you dont intend to filter access per-ip
SD-WAN: Making It Work for You

As bandwidth requirements and Internet costs grow, businesses naturally want to manage budgets by reducing reliance on their most expensive connection types. Learn more about how to make SD-WAN work for your business in our on-demand webinar!

jl66ConsultantAuthor 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?
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  --  *      *              tcp dpt:2435

That means it is open and available.  It does not however tell you if anything is listening on that port.
jl66ConsultantAuthor Commented:
Thanks all so much.
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

From novice to tech pro — start learning today.