#!/bin/sh # Used for private firewall rules # See how we were called. case "$1" in start) ## add your 'start' rules here #Added for BlockOutTraffic start - BEGIN /sbin/iptables -N BOT_INPUT /sbin/iptables -N BOT_FORWARD /sbin/iptables -A CUSTOMINPUT -j BOT_INPUT /sbin/iptables -A CUSTOMFORWARD -j BOT_FORWARD /usr/local/bin/setfwrules #Added for BlockOutTraffic start - END ;; stop) ## add your 'stop' rules here #Added for BlockOutTraffic stop - BEGIN /sbin/iptables -D CUSTOMINPUT -j BOT_INPUT /sbin/iptables -D CUSTOMFORWARD -j BOT_FORWARD /sbin/iptables -F BOT_INPUT /sbin/iptables -F BOT_FORWARD /sbin/iptables -X BOT_INPUT /sbin/iptables -X BOT_FORWARD #Added for BlockOutTraffic stop - END ;; reload) $0 stop $0 start ## add your 'reload' rules here ;; *) echo "Usage: $0 {start|reload|stop}" esac