Hi,

On Fri, Feb 21, 2014 at 10:13:28AM -0800, William Stein wrote:
> On Fri, Feb 21, 2014 at 10:09 AM, kcrisman <kcris...@gmail.com> wrote:
> > I thought of one more issue here.  Has the new branch of sagenb where the
> > "report a bug" link goes to ask.sagemath instead of the Google doc gone live
> > yet?  That would be unfortunate at this time.
> 
> If somebody with server admin skills (especially Django apps!) steps
> up to help, this could all be sorted out in a few hours.  Nobody has
> volunteered yet, but based on experience I'd be surprised if somebody
> doesn't soon.
> 
> Help -- somebody with time and Django skills...


I do not know Django, but an easy-to-implement lower-level solution to
block the IP given (one IP per line) in the file ipban.txt could be as
follows:


# Configure the xt_recent module for a lot of IP to block:
echo 'options xt_recent ip_list_tot=10000' >> 
/etc/modprobe.d/xt_recent_module.conf


# firewall rule to drop connections on port 80 from the ip listed in ipban:
iptables -A INPUT -p tcp --dport 80 -m recent --rcheck --name ipban -j DROP


# Feed the ipban list (the iptables rule will create the ipban file
# first):
echo / > /proc/net/xt_recent/ipban
for ip in $(cat ipban.txt) ; do echo +$ip > /proc/net/xt_recent/ipban ; done


Ciao,
Thierry




>  -- William
> 
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sage-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to sage-devel+unsubscr...@googlegroups.com.
> > To post to this group, send email to sage-devel@googlegroups.com.
> > Visit this group at http://groups.google.com/group/sage-devel.
> > For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> -- 
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to