Add Iptables rules if dhclient is available.

This commit is contained in:
Jeremy Gardais 2015-09-11 19:38:03 +02:00
parent acde46cc56
commit f425671216
1 changed files with 6 additions and 4 deletions

View File

@ -191,10 +191,12 @@ fi
# #### DNS (résolution de noms de domaines, ... ...)
# $IPT -A OUTPUT -j ACCEPT -p udp -o ${ILAN} --dport 53 -m state --state NEW -m comment --comment "DNS out udp"
# $IPT -A OUTPUT -j ACCEPT -p tcp -o ${ILAN} --dport 53 -m state --state NEW -m comment --comment "DNS out tcp"
#
# #### DHCP
# $IPT -A OUTPUT -j ACCEPT -p udp -o ${ILAN} -s "${IPLAN}" --sport 68 -m comment --comment "DHCPREQUEST"
#
if [ $(command -v dhclient) ]; then
#### DHCP
$IPT -A OUTPUT -j ACCEPT -p udp -o ${ILAN} -s "${IPLAN}" --sport 68 -m comment --comment "DHCPREQUEST"
fi
# #### HTTP (maj, ...)
# $IPT -A OUTPUT -j ACCEPT -p tcp -o ${ILAN} --dport 80 -m state --state NEW -m comment --comment "HTTP out"
# $IPT -A OUTPUT -j ACCEPT -p tcp -o ${ILAN} --dport 443 -m state --state NEW -m comment --comment "HTTPS out"