/go/allow: allow from the Command Line

/go/allow opens one TCP port in the server's firewall, so that clients on the internet can connect to it. It: The port is opened for all source addresses. The command does not install or start a firewall. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Open port 8080
/go/allow 8080

Arguments

Argument Required Notes
<port> Yes A whole number from 1 to 65535. One port per run. Ranges are not accepted.

Only TCP is opened. To open a UDP port, use your firewall tool directly.

Examples

# Open the HTTPS port
/go/allow 443

# Open a custom application port
/go/allow 8080

# Check that the port is listed (firewalld)
firewall-cmd --zone=public --list-ports

# Review the log of past runs
tail -n 20 /var/log/go/allow.log

Output

When the port is valid, the command prints nothing, whether or not the rule was added. The output of the firewall tools is hidden. To check the result, list the rules yourself:

# AlmaLinux, Rocky, CentOS, Red Hat, Fedora
firewall-cmd --zone=public --list-ports

# Debian, Ubuntu
ufw status

Message Meaning
Invalid PORT The argument is missing, not a whole number, or outside 1 to 65535. The command exits with status 1.

See the full reference at /go/allow 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.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *