/go/ipv6 has three jobs: Every run first clears the panel's cache folder, /usr/local/goadmio/cache/*. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Enable IPv6
/go/ipv6
# Disable IPv6
/go/ipv6 disable
# Set a static IPv6 address (without a prefix length)
/go/ipv6 2a01:db8:1234:5678::1
Arguments
| Argument | Required | Default | Notes |
|---|---|---|---|
disable, 0, --disable |
No | — | Disables IPv6. |
<ipv6-address> |
No | — | Any value containing :. Give the address without a prefix length. The command adds /64. |
The command has no other options.
Examples
# Enable IPv6 and check the address
/go/ipv6
# Disable IPv6
/go/ipv6 disable
# Set a static address
/go/ipv6 2a01:db8:1234:5678::1
# Check the result
ip -6 addr show
ip -6 route show default
cat /etc/sysctl.d/99-disable-ipv6.conf
Output
| Form | What you get |
|---|---|
| Enable, IPv6 works | IPv6: <address>, the address the server uses to reach the internet over IPv6. |
| Enable, IPv6 not working yet | Please wait up to 3 minutes to activate IPv6... |
| Disable | The sysctl lines net.ipv6.conf.all.disable_ipv6 = 1 (and the same for default and lo). Nothing more if IPv6 is off. |
| Static address | The output of nmcli, such as Connection successfully activated. The exit code is 1. |
If an IPv6: line still appears after disable, IPv6 was not really switched off.
Logging
Every run is appended to /var/log/go/ipv6.log.
See the full reference at /go/ipv6 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.
