# 一番下で不要な通信を流さないように上で広くRETURNする
iptables -t nat -A OUTPUT -m owner --uid-owner debian-tor -j RETURN
iptables -t nat -A OUTPUT -o lo -j RETURN

for special_addr in $SPECIAL_ADDRS; do
  iptables -t nat -A OUTPUT -d $special_addr -j RETURN
done

iptables -t nat -A OUTPUT -p tcp --syn -j DNAT --to-destination='127.0.0.1:9040'