> return DENYSOFT_DISCONNECT, 'Too many connections from your class C'
> if ( grep {(ip_to_int($_)&0xff00) == $mask}
> @{$arg->{child_addrs}} )
Though this code is still untested in its
heavily-modified-from-our-version form, I feel like I should point out
that should
> IIRC, the connections-per-ip code isn't in a plugin right now -- it's
> part of the main binary -- because it requires some sort of shared
> state which we don't have for plugins.
The checks do exist in the binaries but they don't have to, you can use
$arg{child_addrs} and $arg{remote_ip} in hoo
Robin Bowes wrote:
>
> On 09/12/10 13:10, Robin Bowes wrote:
> > Hi,
> >
> > I'd like to add the capability to white-list in the hosts_allow plugin.
> > Specifically, we have a relay that we expect to get multiple connections
> > from so I don't want to restrict connections from that IP.
> >
>
On 09/12/10 13:10, Robin Bowes wrote:
> Hi,
>
> I'd like to add the capability to white-list in the hosts_allow plugin.
> Specifically, we have a relay that we expect to get multiple connections
> from so I don't want to restrict connections from that IP.
>
> I was looking at the hosts_allow code
Hi,
I'd like to add the capability to white-list in the hosts_allow plugin.
Specifically, we have a relay that we expect to get multiple connections
from so I don't want to restrict connections from that IP.
I was looking at the hosts_allow code, trying to work out the best way
to implement this