I
I
Ivan2018-08-14 15:32:42
iptables
Ivan, 2018-08-14 15:32:42

How not to litter iptables with extra entries after applying iptables-save?

1. Disabled firewalld
2. Applied iptables --flush
3. Checked iptables, - clean
4. Created a rule
5. Checked the entries, - only the necessary ones are present
6. Applied iptables-save > /etc/sysconfig/iptables
7. A bunch of extra entries appeared that you don't want to see.
CHADNT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2018-08-15
@bface

in centos 7, firewalld works by default - a shell for iptables
systemctl stop firewalld
yum remove -y firewalld
after this, the rules in iptables will look familiar to you)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question