It doesn't work for me. I fixed with iptables -A OUTPUT -p tcp --destination-port 8008 -j DROP iptables -A OUTPUT -p tcp --destination-port 8009 -j DROP