Ask Your Question
1

firewalld block /any ip

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

justme95 gravatar image

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

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
1

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

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
D
    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

Comments

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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 90 times

Last updated: Jun 29 '18