-
Notifications
You must be signed in to change notification settings - Fork 90
docs: Add article on firewalld #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,60 @@ | ||||||
--- | ||||||
title: Firewalld | ||||||
summary: A quick start guide to using firewalld on Solus | ||||||
--- | ||||||
|
||||||
# Firewalld | ||||||
|
||||||
firewalld provides a dynamically managed firewall with support for network or firewall zones to define the trust level of network connections or interfaces. It has support for IPv4, IPv6 firewall settings, and for Ethernet bridges, and a separation of runtime and permanent configuration options. It also provides an interface for services or applications to add `iptables` and `nftables` rules directly. | ||||||
Check warning on line 8 in docs/user/software/networking/firewalld.md
|
||||||
|
||||||
## Firewalld on Solus | ||||||
|
||||||
To install firewalld on Solus, search for "firewalld" in GNOME Software or KDE Discover, or use the command line: | ||||||
Check warning on line 12 in docs/user/software/networking/firewalld.md
|
||||||
|
||||||
```bash | ||||||
sudo eopkg install firewalld | ||||||
``` | ||||||
|
||||||
There are two optional packages that you can choose to install, as well: | ||||||
|
||||||
- `firewalld-config`: A graphical configuration program to configure your firewall setup. | ||||||
- `firewalld-applet`: A system tray icon to show the current firewall status. It works with any desktop that supports a system tray via StatusNotifier. | ||||||
|
||||||
### Configuring firewalld | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to make this a subsection of the previous one
Suggested change
|
||||||
|
||||||
As of $SYNC_DATE, our firewalld package is [Stateless](/docs/user/software/configuration_files). These are the default configuration file locations for firewalld: | ||||||
|
||||||
| Package | Default Location | | ||||||
|------------------|----------------------------------------------------| | ||||||
| firewalld | `/usr/share/defaults/etc/firewalld/firewalld.conf` | | ||||||
| firewalld-applet | `/usr/share/defaults/etc/firewall/applet.conf` | | ||||||
|
||||||
To modify the firewall configuration manually, copy the default file to `/etc/firewalld/firewalld.conf` or `/etc/firewall/applet.conf`, and make your changes. If you want to use a graphical tool, install the `firewalld-config` package, and search for Firewall in your desktop's applications menu, or run `firewall-config` from the command line. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be helpful to have the instructions to use the graphical tool separate from the ones to do everything "manually" |
||||||
|
||||||
By default, the graphical configuration tool only modifies the runtime configuration. After ensuring that your changes work, save the configuration to the permanent configuration by clicking "Options" in the top menu bar, and clicking "Runtime to Permanent". | ||||||
|
||||||
### Starting and stopping firewalld | ||||||
|
||||||
Please note that firewalld does NOT run on system boot by default. It needs to be manually started/configured to start automatically: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
|
||||||
```bash | ||||||
# Start firewalld manually | ||||||
systemctl start firewalld | ||||||
|
||||||
# Configure firewalld to start automatically on each boot and immediately start the service | ||||||
systemctl enable --now firewalld | ||||||
|
||||||
# Check whether firewalld is running | ||||||
systemctl status firewalld | ||||||
|
||||||
# Restart firewalld manually | ||||||
systemctl restart firewalld | ||||||
|
||||||
# Stop firewalld manually | ||||||
systemctl stop firewalld | ||||||
|
||||||
# Configure firewalld to not start automatically on each boot and immediately stop the service | ||||||
systemctl disable --now firewalld | ||||||
``` | ||||||
|
||||||
If installed, the firewall applet will start automatically when logging in to your desktop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.