move selinux, firewalld, k3s
This commit is contained in:
23
active/software_firewalld/firewalld.md
Normal file
23
active/software_firewalld/firewalld.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Firewalld
|
||||
|
||||
## Notes
|
||||
|
||||
```bash
|
||||
# Add a port
|
||||
firewall-cmd --permanent --add-port=22/tcp
|
||||
|
||||
# List active zones
|
||||
firewall-cmd --get-active-zones
|
||||
|
||||
# Set default zone
|
||||
firewall-cmd --set-default-zone=drop
|
||||
|
||||
# Set zone for a specific subnet
|
||||
firewall-cmd --permanent --zone=drop --add-source=10.244.0.0/16
|
||||
|
||||
# Get info about service
|
||||
firewall-cmd --info-service=samba
|
||||
|
||||
# Get zone information
|
||||
firewall-cmd --info-zone=drop
|
||||
```
|
||||
Reference in New Issue
Block a user