Add firewall rules to firewalld in Ubuntu 18.10

I wanted to drop all ICMP traffic, tried to create the rules in the gui, but no progress.

I did miss the direct rules, should work in the gui also.

So I did it with the cmd command:

firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p icmp -j DROP

firewall-cmd --permanent --direct --add-rule ipv6 filter INPUT 0 -p icmp -j DROP

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: