Good firewalld documentation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to switch from using straight iptables to firewalld, but I'm
not really "getting it" with how firewalld works.  The documentation on
firewalld.org doesn't really explain things to me.

On a server, I would typically restrict management access (SSH, SNMP) to
certain subnets, and leave the other ports (HTTP, HTTPS) open with an
iptables like below.  What would be the easiest way to accomplish the
same thing with firewalld?

************************************************************************
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:mgmt - [0:0]

-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp --dport 22 -j mgmt
-A INPUT -p udp --dport 161 -j mgmt

-A mgmt -s xx.xx.xx.xx/xx -J ACCEPT
-A mgmt -s yy.yy.yy.yy/yy -J ACCEPT
-A mgmt -p tcp -j REJECT --reject-with tcp-reset
-A mgmt -j DROP

COMMIT
************************************************************************

-- 
Chris Adams <linux@xxxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux