Ask Your Question

firewalld block /any ip

asked 2018-06-29 00:57:12 -0500

justme95 gravatar image

updated 2018-06-29 00:57:20 -0500

i use the firewalld GUI

i tried block certain ports/service i am not using especially once that can connect to my Fedora workstation remotely like FTP/SSH

now by leaving the IP address section source/destination blank it set the firewall Rule as /Any IP address ?

so the Rule is block [lets say port 21] from any IP address.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-29 02:44:50 -0500

villykruse gravatar image

You can display the exact rults using this command

sudo iptables -L -v

for ipv4 rules and

sudo ip6tables -L -v

for ipv6

82889  123M ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHE
    1    60 ACCEPT     all  --  lo     any     anywhere             anywhere

The firs line accepts any traffic for established connections, and for related traffic such as udp used by DNF.

The second line accepts anything arriving on the loopback device.

edit flag offensive delete link more


thank you

keeping the ip section blank in firewall gui and write the command sudo iptables -L -v it clearly show that the rule set to Anywehre.

justme95 gravatar imagejustme95 ( 2018-06-29 04:43:21 -0500 )edit

Question Tools

1 follower


Asked: 2018-06-29 00:57:12 -0500

Seen: 147 times

Last updated: Jun 29 '18