Hello,

I am trying to setup relayd for loadbalancing on my DNS servers.
The problem is that relayd seems to handle only TCP connexions, UDP isn't
taken into account.
I found a known bug on openBSD 4.2, but I am using openBSD 4.4.

I've tried the same setup with a relay, and still have the same problem.

Where am I mistaking ?

# pfctl -a relayd/DNS -s nat
rdr inet proto tcp from any to 10.31.33.254 port = domain (tcp.established
600) -> <DNS> port 53 round-robin

# cat /etc/relayd.conf
node1="10.60.0.101"
node2="10.60.0.102"
node3="10.60.0.103"

squid_int="10.31.33.254"
dns_int="10.31.33.254"

# Global Options
interval 5
log updates
prefork 10
timeout 1500

table <squid> { $node1 , $node3 }
table <DNS> { $node1 , $node3 }

redirect "squid" {
        listen on $squid_int port 3128
        forward to <squid> mode roundrobin check tcp
}

redirect "DNS" {
        listen on $dns_int port 53
        forward to <DNS> mode roundrobin check tcp
}

Relay config :
dns protocol "dnsfilter" {
   ### TCP performance options
    tcp { nodelay, sack, socket buffer 1024, backlog 1000 }
}

relay dns {
       ### listen and accept redirected connections from pf
        listen on $dns_int port 53

       ### apply web filters
        protocol "dnsfilter"

       ### forward to web server(s)
        forward to <DNS> mode roundrobin check tcp
}
--
Cordialement,
 
Pierre BARDOU
CSIM - Bureau 012
 
Midi Picardie Informatique Hospitalihre
12 rue Michel Labrousse
BP93668
F-31036 Toulouse CEDEX 1
 
Til : 05 67 31 90 84
Fax : 05 34 61 51 00
Mail : [email protected]

Reply via email to