I may be wrong, but it sounds like what you really want is a leastconns loadbalancing alg, which currently doesn't exist, though I don't know the state of dev, anyone?
J On Fri, Sep 18, 2009 at 1:13 PM, Josh Hoppes <josh.hop...@gmail.com> wrote: > I should clarify that the tag option is usable as an option to a > redirection, and not a relay if I understand the man page correctly. > > On Fri, Sep 18, 2009 at 3:10 PM, Josh Hoppes <josh.hop...@gmail.com> > wrote: > > You could try using the tag option in the configuration, and then have > > a rule in your > > pf.conf act on that tag to do what ever you need. > > > > On Fri, Sep 18, 2009 at 2:31 PM, Brian McCann <bjmcc...@gmail.com> > wrote: > >> Hi all. I've been using relayd for about 6 months or so now on OpenBSD > 4.4. > >> I'm quite happy with it, but there's something I'd really like to do > with > >> it that it currently can't do (or perhaps I just missed how to do it, or > >> just couldn't connect the dots). > >> I currently have a pool of mail servers behind relayd, forwarding port > 25 > to > >> the servers in the pool. I know this is sort of possible using pf, but > I'd > >> like to do is have relayd be able to limit connections per source > address. > >> My goal is that once the limit has been reached for any address, relayd > >> will then pass that connection off to a different host or table which > can > >> handle the overage. In my case, those "overage" servers would say "421 > Too > >> many connections, please try again momentarily", if it were a web server > >> load balancer, those "overage" servers could say something similar. > >> > >> Maybe I missed that this is currently possible...if so, great. If not, > I > >> think this could be very useful. > >> > >> Thanks! > >> --Brian > >> > >> -- > >> _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ > >> Brian McCann > >> > >> "I don't have to take this abuse from you -- I've got hundreds of > >> people waiting to abuse me." > >> -- Bill Murray, "Ghostbusters"