mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
merge confilcts
This commit is contained in:
commit
6fec72d127
1 changed files with 40 additions and 0 deletions
40
parse_args
40
parse_args
|
@ -517,6 +517,46 @@ action_map = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
#############################
|
#############################
|
||||||
|
# Firewall #
|
||||||
|
#############################
|
||||||
|
'firewall' : {
|
||||||
|
'category_help' : _("Manage firewall rules"),
|
||||||
|
'actions' : {
|
||||||
|
### firewall_list()
|
||||||
|
'list' : {
|
||||||
|
'action_help' : _("List all firewall rules"),
|
||||||
|
'connections' : ['firewall'],
|
||||||
|
},
|
||||||
|
### firewall_allow()
|
||||||
|
'allow' : {
|
||||||
|
'action_help' : _("Allow connection port/protocol"),
|
||||||
|
'connections' : ['firewall'],
|
||||||
|
'arguments' : {
|
||||||
|
'port' : {
|
||||||
|
'help' : _("Port to open"),
|
||||||
|
},
|
||||||
|
'protocol' : {
|
||||||
|
'help' : _("Protocol associated with port"),
|
||||||
|
'choices' : ['UDP', 'TCP', 'Both'],
|
||||||
|
},
|
||||||
|
'name' : {
|
||||||
|
'help' : _("Reference name of the rule"),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
### firewall_disallow()
|
||||||
|
'disallow' : {
|
||||||
|
'action_help' : _("Disallow connection"),
|
||||||
|
'connections' : ['firewall'],
|
||||||
|
'arguments' : {
|
||||||
|
'name' : {
|
||||||
|
'help' : _("Reference name of the rule to delete"),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
#############################
|
||||||
# Tools #
|
# Tools #
|
||||||
#############################
|
#############################
|
||||||
'tools' : {
|
'tools' : {
|
||||||
|
|
Loading…
Reference in a new issue