@@ -687,6 +687,30 @@ function restore_data_remote {
esac
}
function ping_enable_disable {
ping_str=$"\nDo you want to enable other systems to ping this machine?\n\nPing may be useful for diagnostic purposes, but for added security you may not want to enable it."
enable_ping="no"
dialog --title$"Enable Ping / ICMP"\
--backtitle$"Freedombone Control Panel"\
--defaultno\
--yesno"$ping_str" 10 60
sel=$?
case$selin
0)enable_ping="yes";;
255)return;;
esac
if[[$enable_ping=="yes"]];then
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT