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:
@ -1748,10 +1748,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
|
||||
@ -1769,12 +1769,11 @@ else
|
||||
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
|
||||
@ -1789,6 +1788,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_activate_forwarding ; then
|
||||
if ! $permit_local_net_to_inet ; then
|
||||
$ipt -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_activate_forwarding ; then
|
||||
$ipt -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