DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2008
d0z3r d0z3r is offline
New User
 
Join Date: Jun 2008
Posts: 2
Thanked 0 Times in 0 Posts
Default relayd won't work with multiple relays

Hi all,

I'm running OpenBSD 4.3 with relayd enabled and configured.
I'm trying to configure 2 relays on 2 different machines, but this
configuration won't works!

Relayd starts fine and it finds all the hosts up, but i can connect to only one of these

This is the configuration:

#############
interval 10
prefork 5
ext_addr="10.200.1.2"

host1="192.168.4.10"
host2="192.168.4.24"

table <table_one> { $host1 }
table <table_two> { $host2 }

http protocol "one_web" {
request header expect "one.domain.tld" from "Host"
}
http protocol "two_web" {
request header expect "two.domain.tld" from "Host"
}

relay relay_one {
listen on $ext_addr port http
protocol "onw_web"
forward to <table_one> check tcp
}

relay relay_two {
listen on $ext_addr port http
protocol "two_web"
forward to <table_two> check tcp
}
#####################

Relayctl seems good:

# relayctl show summary
Id Type Name Avlblty Status
1 relay relay_two active
3 table table_two:80 active (1 hosts up)
3 host 192.168.4.24 100.00% up
0 relay relay_one active
2 table table_one:80 active (1 hosts up)
2 host 192.168.4.10 100.00% up

And in pf.conf i have:

rdr-anchor "relayd/*"
anchor "relayd/*"


So, one.domain.tld works perfectly, but if i try to call two.domain.tld,
relayd returns this:

relay relay_one, session 1 (1 active), 0, 192.168.0.240 -> :80,
incomplete request

If i switch "one" with "two", two starts to work and one go out of order

This is driving me crazy. Any suggestion? Any kind of help will be
really appreciated...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd and multiple subnets vdubjunkie OpenBSD General 5 11th March 2009 11:02 PM
Using multiple gateways ivanatora FreeBSD General 7 15th November 2008 06:57 PM
Multiple VPN rondynames OpenBSD General 5 24th July 2008 11:51 AM
Multiple instances of Opera ebzzry FreeBSD General 7 24th July 2008 03:53 AM
relayd (and hoststated) give syntax error for 'check script' gwl OpenBSD Security 2 2nd May 2008 04:53 PM


All times are GMT. The time now is 12:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick