IPTABLES : Linux based firewall

If you are Apps DBA, I assume you never have to do this but if you are in situation like me (Apps Server running IPTABLES firewall and you handling both Linux server and Apps) then here is quick way to open port from linux based software firewall IPTABLES.

1. Identify Port which you need to open on firewall (For Apps 11i/R12 with port pool zero, open port 8000/web & 8100/forms )

 2. Open port in firewall with below command
iptables -I INPUT -p tcp –dport <port_number> -j ACCEPT   (replace port_number) like

iptables -I INPUT -p tcp –dport 8000 -j ACCEPT
iptables -I INPUT -p tcp –dport 8100 -j ACCEPT

3. Save IPTABLES like configuration 
service iptables save

4. Restart service IPTABLES like
service iptables restart

Related
Linux for newbie

Share This Post with Your Friends over Social Media!

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Oracle Gold Partner specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

2 comments
Raghavan's WikiSite: Linux says March 31, 2009

[…] are ip tables? http://onlineappsdba.com/index.php/2008/04/13/iptables-linux-based-firewall/ page_revision: 43, last_edited: 1238506321|%e %b %Y, %H:%M %Z (%O ago) edittags history files […]

Reply
Puneet says August 13, 2011

When I run command

iptables -I INPUT -p tcp –dport 8000 -j ACCEPT

I get following error. My linux version is 5.7 . DO you know what I am doing wrong.

[root@localhost ~]# iptables -I INPUT -p tcp –dport 8000 -j ACCEPT
Bad argument `–dport’
Try `iptables -h’ or ‘iptables –help’ for more information.

Thanks in advance.

Reply
Add Your Reply

[i]
[i]
[i]
[i]
[index]
[index]
[523.251,1046.50]
[523.251,1046.50]
[523.251,1046.50]
[523.251,1046.50]
[index]
[index]
[523.251,1046.50]
[523.251,1046.50]
[523.251,1046.50]
[523.251,1046.50]