Add support for ip-addresse, which have unlimited acces to inet but no access to (other) local networks - gaming devices..
This commit is contained in:
@ -1112,10 +1112,10 @@ echo ""
|
||||
|
||||
|
||||
# ---
|
||||
# - Allow remote Traffic for Gaming devices
|
||||
# - Allow remote Traffic for Gaming devices (MAC)
|
||||
# ---
|
||||
|
||||
echononl "\tAllow remote Traffic OUT for Gaming devices"
|
||||
echononl "\tAllow remote Traffic OUT for Gaming devices (MAC)"
|
||||
|
||||
if [[ ${#gaming_device_mac_address_arr[@]} -gt 0 ]] ; then
|
||||
for _mac in ${gaming_device_mac_address_arr[@]} ; do
|
||||
@ -1135,10 +1135,10 @@ fi
|
||||
|
||||
|
||||
# ---
|
||||
# - Deny Traffic to other local networks for Gaming devices
|
||||
# - Deny Traffic to other local networks for Gaming devices (MAC)
|
||||
# ---
|
||||
|
||||
echononl "\tDeny Traffic to other local networks for Gaming devices"
|
||||
echononl "\tDeny Traffic to other local networks for Gaming devices (MAC)"
|
||||
|
||||
if [[ ${#gaming_device_mac_address_arr[@]} -gt 0 ]] ; then
|
||||
for _mac in ${gaming_device_mac_address_arr[@]} ; do
|
||||
@ -1153,6 +1153,51 @@ else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
|
||||
|
||||
# ---
|
||||
# - Allow remote Traffic for Gaming IP addresses (IP-address)
|
||||
# ---
|
||||
|
||||
echononl "\tAllow remote Traffic OUT for Gaming devices (IP-address)"
|
||||
|
||||
if [[ ${#gaming_device_ip_address_arr[@]} -gt 0 ]] ; then
|
||||
for _ip in ${gaming_device_ip_address_arr[@]} ; do
|
||||
for _dev in ${ext_if_arr[@]} ; do
|
||||
if $kernel_forward_between_interfaces ; then
|
||||
if ! $permit_local_net_to_inet ; then
|
||||
$ip6t -A FORWARD -p ALL -o $_dev -s $_ip -j ACCEPT
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
echo_done
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
|
||||
# ---
|
||||
# - Deny Traffic to other local networks for Gaming devices (IP-address)
|
||||
# ---
|
||||
|
||||
echononl "\tDeny Traffic to other local networks for Gaming devices (IP-address)"
|
||||
|
||||
if [[ ${#gaming_device_ip_address_arr[@]} -gt 0 ]] ; then
|
||||
for _ip in ${gaming_device_ip_address_arr[@]} ; do
|
||||
for _dev in ${local_if_arr[@]} ; do
|
||||
if $kernel_forward_between_interfaces ; then
|
||||
$ip6t -A FORWARD -o $_dev -s $_ip -j DROP
|
||||
fi
|
||||
done
|
||||
done
|
||||
echo_done
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
|
||||
echo ""
|
||||
|
||||
|
Reference in New Issue
Block a user