From 372f1fb9f268a02737201a4aeceb77e5fc55440b Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 11 Feb 2023 15:38:51 +0100 Subject: [PATCH] Fix typo - gameming -> gaming. --- conf/main_ipv4.conf.sample | 2 +- conf/main_ipv6.conf.sample | 2 +- conf/post_decalrations.conf | 6 +++--- ip6t-firewall-gateway | 8 ++++---- ipt-firewall-gateway | 8 ++++---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/conf/main_ipv4.conf.sample b/conf/main_ipv4.conf.sample index c8a9711..ae6dd0a 100644 --- a/conf/main_ipv4.conf.sample +++ b/conf/main_ipv4.conf.sample @@ -1620,7 +1620,7 @@ allow_remote_mac_src_addresses="" # - # - Blank separated list # - -gameming_device_mac_addresses="" +gaming_device_mac_addresses="" diff --git a/conf/main_ipv6.conf.sample b/conf/main_ipv6.conf.sample index 1183b24..8ad1afa 100644 --- a/conf/main_ipv6.conf.sample +++ b/conf/main_ipv6.conf.sample @@ -1532,7 +1532,7 @@ allow_remote_mac_src_addresses="" # - # - Blank separated list # - -gameming_device_mac_addresses="" +gaming_device_mac_addresses="" diff --git a/conf/post_decalrations.conf b/conf/post_decalrations.conf index 1397688..1a3f69d 100644 --- a/conf/post_decalrations.conf +++ b/conf/post_decalrations.conf @@ -1835,7 +1835,7 @@ done # --- # - MAC Address Filtering Gaming Devices # --- -declare -a gameming_device_mac_address_arr=() -for _mac in $gameming_device_mac_addresses ; do - gameming_device_mac_address_arr+=("$_mac") +declare -a gaming_device_mac_address_arr=() +for _mac in $gaming_device_mac_addresses ; do + gaming_device_mac_address_arr+=("$_mac") done diff --git a/ip6t-firewall-gateway b/ip6t-firewall-gateway index 4864eac..026f578 100755 --- a/ip6t-firewall-gateway +++ b/ip6t-firewall-gateway @@ -1117,8 +1117,8 @@ echo "" echononl "\tAllow remote Traffic OUT for Gaming devices" -if [[ ${#gameming_device_mac_address_arr[@]} -gt 0 ]] ; then - for _mac in ${gameming_device_mac_address_arr[@]} ; do +if [[ ${#gaming_device_mac_address_arr[@]} -gt 0 ]] ; then + for _mac in ${gaming_device_mac_address_arr[@]} ; do for _dev in ${ext_if_arr[@]} ; do if $kernel_forward_between_interfaces ; then if ! $permit_local_net_to_inet ; then @@ -1140,8 +1140,8 @@ fi echononl "\tDeny Traffic to other local networks for Gaming devices" -if [[ ${#gameming_device_mac_address_arr[@]} -gt 0 ]] ; then - for _mac in ${gameming_device_mac_address_arr[@]} ; do +if [[ ${#gaming_device_mac_address_arr[@]} -gt 0 ]] ; then + for _mac in ${gaming_device_mac_address_arr[@]} ; do for _dev in ${local_if_arr[@]} ; do if $kernel_forward_between_interfaces ; then $ip6t -A FORWARD -o $_dev -m mac --mac-source $_mac -j DROP diff --git a/ipt-firewall-gateway b/ipt-firewall-gateway index 85487da..789b539 100755 --- a/ipt-firewall-gateway +++ b/ipt-firewall-gateway @@ -1753,8 +1753,8 @@ echo "" echononl "\tAllow remote Traffic OUT for Gaming devices" -if [[ ${#gameming_device_mac_address_arr[@]} -gt 0 ]] ; then - for _mac in ${gameming_device_mac_address_arr[@]} ; do +if [[ ${#gaming_device_mac_address_arr[@]} -gt 0 ]] ; then + for _mac in ${gaming_device_mac_address_arr[@]} ; do for _dev in ${ext_if_arr[@]} ; do if $kernel_activate_forwarding ; then if ! $permit_local_net_to_inet ; then @@ -1776,8 +1776,8 @@ fi echononl "\tDeny Traffic to other local networks for Gaming devices" -if [[ ${#gameming_device_mac_address_arr[@]} -gt 0 ]] ; then - for _mac in ${gameming_device_mac_address_arr[@]} ; do +if [[ ${#gaming_device_mac_address_arr[@]} -gt 0 ]] ; then + for _mac in ${gaming_device_mac_address_arr[@]} ; do for _dev in ${local_if_arr[@]} ; do if $kernel_activate_forwarding ; then $ipt -A FORWARD -o $_dev -m mac --mac-source $_mac -j DROP