- Codice: Seleziona tutto
# Allow ICMP echo-request (ping), all other essential ICMP will be
# ESTABLISHED or RELATED, and the rest caught by the default DENY policy
/sbin/iptables -A INPUT -p icmp --icmp-type 8 -j ACCEPT
con questo:
- Codice: Seleziona tutto
# Allow ICMP echo-request (ping), all other essential ICMP will be
# ESTABLISHED or RELATED, and the rest caught by the default DENY policy
if [ "$IFACE" != "" ]; then
# RED PING
/sbin/iptables -A INPUT -p icmp --icmp-type 8 -i $IFACE -j DROP
fi
/sbin/iptables -A INPUT -p icmp --icmp-type 8 -j ACCEPT
Il problema è che guardandolo quell'istruzione "fi" non capisco cosa sia, dite che è un if o è giusto scritto cosi?