Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

allow specific port through firewall on linux

RobeenNov 9 2017 — edited Nov 9 2017

Red Hat Linux 6

[root@RHIS-GAIA-RPT01 mtadmin]# service iptables status

Table: filter

Chain INPUT (policy ACCEPT)

num  target     prot opt source               destination

1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,                       ESTABLISHED

2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0

3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0

4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp                        dpt:22

5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with ic                       mp-host-prohibited

Chain FORWARD (policy ACCEPT)

num  target     prot opt source               destination

1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with ic                       mp-host-prohibited

Chain OUTPUT (policy ACCEPT)

num  target     prot opt source               destination

Is there a way I can allow only specific ports through the firewall? For example port 1521, instead of completely disabling the firewall.

Regards,

Joe

This post has been answered by Dude! on Nov 9 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2017
Added on Nov 9 2017
1 comment
13,407 views