mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-26 07:55:31 -04:00
fix: port forwarder missing short options usage
This commit is contained in:
parent
dab297905c
commit
03cb70c2c2
1 changed files with 8 additions and 2 deletions
|
@ -194,14 +194,20 @@ recurse_netvms() {
|
||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: ${0##*/} --action ACTION --qube QUBE --port PORT --proto PROTO --persistent
|
echo "Usage: ${0##*/} --action ACTION --qube QUBE --port PORT --proto PROTO [--persistent]
|
||||||
|
Options:
|
||||||
|
-a, --action ACTION add or delete a rule (add, del)
|
||||||
|
-q, --qube QUBE qube name which holds the service to be exposed
|
||||||
|
-p, --port PORT port number to be exposed
|
||||||
|
-n, --proto PROTO protocol the service uses (tcp, udp)
|
||||||
|
-s, --persistent persist rules across reboots
|
||||||
Example:
|
Example:
|
||||||
${0##*/} --action add --qube work --port 22 --proto tcp
|
${0##*/} --action add --qube work --port 22 --proto tcp
|
||||||
${0##*/} --action add --qube work --port 444 --proto udp --persistent
|
${0##*/} --action add --qube work --port 444 --proto udp --persistent
|
||||||
${0##*/} --action del --qube work --port 22 --proto tcp
|
${0##*/} --action del --qube work --port 22 --proto tcp
|
||||||
${0##*/} --action del --qube work --port 444 --proto udp
|
${0##*/} --action del --qube work --port 444 --proto udp
|
||||||
Note: Defaults to temporary rules
|
Note: Defaults to temporary rules
|
||||||
Warn: If persistent is and and a netvm is disposable, the rule will be saved in the disposable template" >&2
|
Warn: Use of '--persistent' with disposable netvm saves the rule in the disposable template" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue