#! /bin/bash
#!/usr/bin/bash
#
# uniepsekiptables       Bring up/down uniepsekiptables
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables NetworkManager-wait-online NetworkManager udev-wait $network-pre
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO


case "$1" in
start)
    # disable the icmp timestamp
    iptables -w -A INPUT -p icmp --icmp-type timestamp-request -j DROP
    iptables -w -A OUTPUT -p icmp --icmp-type timestamp-reply -j DROP
    #disable the icmp netmask query
    iptables -w -A INPUT -p icmp --icmp-type address-mask-request -j DROP
    iptables -w -A OUTPUT -p icmp --icmp-type address-mask-reply -j DROP
    ;;
stop)
    echo "if you want to stop the service please run ' chkconfig --del uniepsekiptables ' command to delete the service,then reboot the system"
    ;;
status)
    echo "on"
    ;;
esac

exit $rc

