/go/firewall sets up the firewall that GoAdmio expects and can switch it on and off. It supports: It has four forms: installing and configuring (the default), starting, stopping, and resetting. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Install and configure the firewall with the default open ports
/go/firewall
# Switch it off and on
/go/firewall stop
/go/firewall start
Arguments
| Argument | Required | Default | Notes |
|---|---|---|---|
[start|stop|reset] |
No | Install and configure | Any other value is treated as no argument. |
Settings read from the panel
| Setting | Default | Effect |
|---|---|---|
RemoteMariaDB |
0 |
If 1, opens the MySQL service and port 3306. |
SSHManager |
22 |
If not 22, opens that port as well. |
Examples
# Install and configure the firewall
/go/firewall
# Stop it for a migration, then start it again
/go/firewall stop
/go/firewall start
# Reset to the defaults and rebuild
/go/firewall reset
# Open one more port afterwards
/go/allow 8081
Output
| Outcome | What you get |
|---|---|
start or stop |
Nothing is printed. The exit code is 1, even on success. |
Install or reset |
Installing Firewall, then the output of dnf or apt and of firewall-cmd or ufw. |
| Unsupported operating system | Unknown operating system. and exit code 1. |
Logging
Every run is appended to /var/log/go/firewall.log.
See the full reference at /go/firewall and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
