From: Andreas Schneider Date: Mon, 25 Oct 2021 12:29:56 +0000 (+0200) Subject: Revert "gp: Add Firewalld ADMX templates" X-Git-Tag: ldb-2.5.0~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a75212b60b8d90e63e6ff048fda4f00ad6ff94a;p=thirdparty%2Fsamba.git Revert "gp: Add Firewalld ADMX templates" This reverts commit 7253405c35247dff192e86598b18d524e1602818. Signed-off-by: Andreas Schneider Reviewed-by: David Mulder Autobuild-User(master): David Mulder Autobuild-Date(master): Mon Oct 25 15:04:18 UTC 2021 on sn-devel-184 --- diff --git a/libgpo/admx/en-US/samba.adml b/libgpo/admx/en-US/samba.adml index ad3a37ca142..a954c41a7d0 100755 --- a/libgpo/admx/en-US/samba.adml +++ b/libgpo/admx/en-US/samba.adml @@ -3124,84 +3124,12 @@ Example: 192.9.200.1 192.168.2.61 u Insert the number of current users logged in. - U Insert the string "1 user" or "<n> users" where <n> is the number of current users logged in. - - v Insert the version of the OS, that is, the build-date and such. - Firewalld - Zones - A list of zones to create. Existing zones on the host will be unaffected. - -Rule creation for zones is handled in the Rules setting. - Rules - A JSON dictionary, containing zones paired with a list of rules. - -For example, to create rules for the Work and Home zones, specify the following JSON: - -{ - "work": [ - {"rule": {"family": "ipv4"}, "source address": "172.25.1.7", "service name": "ftp", "reject": {}}, - {"rule": {}, "source address": "172.25.1.8", "service name": "ftp", "reject": {}} - ], - "home": [ - {"rule": {}, "protocol value": "icmp", "reject": {}}, - {"rule": {"family": "ipv4"}, "source address": "192.168.1.2/32", "service name": "telnet", "accept": {"limit value": "1/m"}} - ] -} - -An improperly formatted JSON will be ignored. - -The rule structure loosely follows the Firewalld Rich Language Documentation. - -General rule structure: -{ - "rule": { - "family": "ipv4 | ipv6", - "priority": "priority" - }, - "source [not] address | mac | ipset": "address[/mask] | mac-address | ipset", - "destination [not] adress": "address[/mask]", - "service name": "service name", - "port": { - "port": "port value", - "protocol": "tcp | udp" - } - "protocol value": "protocol value", - "icmp-block name": "icmptype name", - "Masquerade": true|false, - "icmp-type": "icmptype name", - "forward-port": { - "port": "port value", - "protocol": "tcp | udp", - "to-port": "port value", - "to-addr": "address" - }, - "source-port": { - "port": "port value", - "protocol": "tcp | udp" - }, - "log": { - "prefix": "prefix text", - "level": "emerg | alert | crit | error | warning | notice | info | debug", - "limit value": "rate/duration" - }, - "audit": { - "limit value": "rate/duration" - }, - "accept" : { - "limit value": "rate/duration" - } | "reject": { - "type": "reject type", - "limit value": "rate/duration" - } | "drop": { - "limit value": "rate/duration" - } | "mark": { - "set": "mark[/mask]", - "limit value": "rate/duration" - } -} - - - + U Insert the string "1 user" or "<n> users" where <n> is the number of current users logged in. + + v Insert the version of the OS, that is, the build-date and such. + + + Script and arguments @@ -4714,18 +4642,9 @@ General rule structure: - Welcome to \s \r \l - - - - Firewalld Zones - - - - - {} - - - - - + Welcome to \s \r \l + + + + + diff --git a/libgpo/admx/samba.admx b/libgpo/admx/samba.admx index 877c9f2ba23..d09956d5394 100755 --- a/libgpo/admx/samba.admx +++ b/libgpo/admx/samba.admx @@ -17,15 +17,12 @@ - - - - - - - - - + + + + + + @@ -2528,22 +2525,8 @@ - - - - - - - - - - - - - - - - - - - + + + + +