Ask Your Question
0

fedora firewall

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

gege gravatar image

hello, where can I find instructions for the fedora firewall, e.g. disable ip addresses (/ sbin/iptables -A INPUT -s xxx.xxx.xxx.xxx -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
0

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

Aeyoun gravatar image

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

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
0

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

aeperezt gravatar image

Think this may work

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

edit flag offensive delete link more
0

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

florian gravatar image

You can find instructions on the wiki page of FirewallD.

edit flag offensive delete link more

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-03-19 09:58:08 -0500

Seen: 200 times

Last updated: Mar 20