relayd feature request
Hi, Today I found out that I was able to disable/enable hosts by name instead of id :) It would be nice if it worked when a host is mentioned in multiple redirects/tables (ie different ports): Id Type Name Avlblty Status 3 redirect mx-smtps active 3 table mx:465 active (2 hosts) 5 host mx1 100.00% up 6 host mx2 100.00% up 4 redirect mx-subm active 4 table mx:587 active (2 hosts) 7 host mx1 100.00% up 8 host mx2 100.00% up right now, relayctl host dis/en mx1, disables/enables it only in the first redirect. I've looked at the code but didn't find a clean way to make it happen... thanks in advance G
Re: relayd feature request
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 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 > 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 > 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"
Re: relayd feature request
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 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 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"
Re: relayd feature request
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 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"
relayd feature request
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"