#!/bin/sh
#
# by ymc-dabe
# Flush the connection-tracking-table...
#


ymcCommand=$1
USAGE="usage: $0 {start|stop|status}";

conntrack='/usr/sbin/conntrack'

usage()
{
    echo $USAGE >&2
}

if [ $# != 1 ]; then
    usage
    exit 1
fi

conntrack_status()
{
    echo "Status report not supported"
}

conntrack_start()
{
  $conntrack -F || true
}

ip_stop()
{
  ip_start_stop down
}



case $ymcCommand in
  start)        conntrack_start;;
  stop)         exit 0;;
  status)       conntrack_status;;
  *)            usage
                exit 1
                ;;
esac

