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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

No clarity with iptables save configuration

975148Jul 3 2014 — edited Jul 4 2014

I have a query with iptables configuration, the sample /etc/sysconfig/iptables file has the contents as below:

__________________________________________________________________________________

# Generated by iptables-save v1.3.5 on Sat Dec 21 17:42:48 2013

*filter

:INPUT ACCEPT [395486230:305451389171]

:FORWARD ACCEPT [0:0]

:OUTPUT ACCEPT [242867802:405321956718]

-A INPUT -p tcp -m state --state NEW -m tcp --dport 5667 -j ACCEPT

-A INPUT -p tcp -m state --state NEW -m tcp --dport 5666 -j ACCEPT

COMMIT

__________________________________________________________________________________

What if I want to add 2 more below rules to the configuration as -

-A INPUT -p tcp -m state --state NEW -m tcp --dport 5668 –j ACCEPT

-A INPUT -p tcp -m state --state NEW -m tcp --dport 5669 –j ACCEPT

Can the above 2 rules be added by editing /etc/sysconfig/iptables using vim editor and the iptables service restarted as

service iptables restart

Would editing the /etc/sysconfig/iptables using vim editor add the rules to the iptables configuration?


I hope, my question is clear.


Please revert with the reply to my query.


Regards

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2014
Added on Jul 3 2014
2 comments
1,656 views