Add support for dhclient.
This commit is contained in:
@ -1275,10 +1275,24 @@ echo
|
||||
# - DHCP
|
||||
# ---
|
||||
|
||||
echononl "\t\tDHCP"
|
||||
echononl "\t\tDHCP Clients"
|
||||
|
||||
if [[ ${#dhcp_if_arr[@]} -gt 0 ]] ; then
|
||||
if [[ ${#dhcp_client_if_arr[@]} -gt 0 ]] ; then
|
||||
for _dev in ${dhcp_if_arr[@]} ; do
|
||||
# - out
|
||||
$ipt -A OUTPUT -p udp -o $_dev --dport 67 -d 0/0 --sport 1024:65535 -j ACCEPT
|
||||
# - in
|
||||
$ipt -A INPUT -p udp -i $_dev --sport 67 -d 0/0 --dport 68 -j ACCEPT
|
||||
done
|
||||
echo_done
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
echononl "\t\tDHCP Server"
|
||||
|
||||
if [[ ${#dhcp_server_if_arr[@]} -gt 0 ]] ; then
|
||||
for _dev in ${dhcp_server_if_arr[@]} ; do
|
||||
# - in
|
||||
$ipt -A INPUT -p udp -i $_dev -s 0/0 --sport 68 -d 255.255.255.255 --dport 67 -j ACCEPT
|
||||
# - out
|
||||
|
Reference in New Issue
Block a user