Last active
March 16, 2020 01:27
-
-
Save grammy-jiang/5197f05749013d9e34ecae0fa600b5a8 to your computer and use it in GitHub Desktop.
The zone configuration of public
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<zone> | |
<short>Public</short> | |
<description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description> | |
<interface name="eth0"/> | |
<service name="dhcpv6-client"/> | |
<service name="mosh"/> | |
</zone> |
After setting up the service of knockd
, remove ssh
from the zone of public
:
foo@bar:~$ sudo firewall-cmd --permanent --zone=public --remove-service=ssh && sudo firewall-cmd --reload
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup the interface, add an interface
eth0
into the zone ofpublic
:Setup the service, add a service
mosh
into the zone ofpublic
: