From: Sandro T. <mo...@de...> - 2011-01-05 22:21:49
|
On Wed, Jan 5, 2011 at 23:07, John Hunter <jd...@gm...> wrote: > On Wed, Jan 5, 2011 at 4:04 PM, Sandro Tosi <mo...@de...> wrote: > >> it's not exactly monitory, but I disable all the requests to >> matplotlib.svn.sourceforge.net via iptables: >> >> sudo iptables -A OUTPUT -d matplotlib.svn.sourceforge.net -j DROP >> >> and you're sure nothing passes towards that address :) and in fact, >> the moment you reach an example with get_sample_data() it stops. > > That's helpful. I used to be an iptables guru, but it has been a long > time. How do you reverse the command when you are done testing? if you have only those rule, then just issue a sudo iptables -F to flus the whole iptables chains list rules; else, you have to: sudo iptables -nL OUTPUT --line-numbers take notes of the line number of those for MPL SF (the ip addresses are those in $ host matplotlib.svn.sourceforge.net matplotlib.svn.sourceforge.net has address 216.34.181.177 matplotlib.svn.sourceforge.net has address 216.34.181.65 ) and then remove them: sudo iptables -D OUTPUT <line number above> (note that if you delete a rules, the following ones have linenumber changed...) Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |