/scripts/alcasar-iptables.sh |
---|
279,6 → 279,12 |
# HTTP requests are allowed |
$IPTABLES -A OUTPUT -o $EXTIF -p tcp --dport http -j ACCEPT |
# On autorise les requêtes FTP |
# FTP requests are allowed |
modprobe ip_conntrack_ftp |
$IPTABLES -A OUTPUT -o $EXTIF -p tcp --dport ftp -j ACCEPT |
$IPTABLES -A OUTPUT -o $EXTIF -m state --state ESTABLISHED,RELATED -j ACCEPT |
# On autorise les requêtes NTP |
# NTP requests are allowed |
$IPTABLES -A OUTPUT -o $EXTIF -p udp --dport ntp -j ACCEPT |
/scripts/alcasar-watchdog.sh |
---|
49,6 → 49,12 |
function lan_test () |
# LAN connectiivity testing |
{ |
watchdog_process=`ps -C alcasar-watchdog.sh|wc -l` |
if [[ $(expr $watchdog_process) -gt 3 ]] |
then |
echo "ALCASAR watchdog is already running" |
exit 0 |
fi |
# EXTIF testing |
LAN_DOWN="0" |
if [ "`/usr/sbin/ethtool $EXTIF|grep Link|cut -d' ' -f3`" != "yes" ] |