Ask Your Question

fedora firewall

asked 2018-03-19 09:58:08 -0600

gege gravatar image

hello, where can I find instructions for the fedora firewall, e.g. disable ip addresses (/ sbin/iptables -A INPUT -s -j DROP), disable ip address ranges block all incoming requests (iptables -P OUTPUT DROP) prevent forwarding (iptables -P FORWARD DROP) Thank you very much

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2018-03-20 07:31:11 -0600

Aeyoun gravatar image

updated 2018-03-20 07:32:05 -0600

You should setup and configure zones in FirewallD (Fedora’s default iptables front-end). FirewallD lets you abstract rules in easy to use commands nstead of managing raw iptables rules.

In a simplified explanation, a zone is a set of port rules that are applied to either a network interface or a IP range. You’d have e.g. a trusted home network accepting DHCP, mDNS, and other things you expect on your home network; and a separate public zone for things you want to be publicly accessible.

edit flag offensive delete link more

answered 2018-03-19 13:47:54 -0600

aeperezt gravatar image

Think this may work

firewall-cmd --zone=drop --add-source=x.x.x.x/xx

edit flag offensive delete link more

answered 2018-03-19 14:17:32 -0600

florian gravatar image

You can find instructions on the wiki page of FirewallD.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-03-19 09:58:08 -0600

Seen: 230 times

Last updated: Mar 20 '18