Tuesday, May 19, 2020

How to add Add Unix firewall exceptions for Oracle Apps or EBS URL


==============================================================

iptables -I INPUT -p tcp --dport 8020 --syn -j ACCEPT     ( This is stored in  /etc/iptables.conf)

service iptables save

iptables-save > /etc/iptables.conf

Add the following command in /etc/rc.local to reload the rules in every reboot.
iptables-restore < /etc/iptables.conf

[root@oracletest ~]# chkconfig --list telnet
telnet          on

[root@oracletest ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                             [  OK  ]

[root@oracletest ~]# service network  restart


Curl command from unix server can tell whether EBS/Oracle Apps Url is accessible or not
(without going to browser to check )

==============================================================
 cat  /etc/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

iptables-restore < /etc/iptables.conf


No comments: