#!/bin/sh

[ "$ACTION" = ifup ] || exit 0

pgrep redsocks >/dev/null 2>&1 && iptables -t nat -I zone_lan_prerouting -j REDSOCKS