perlbal and load balancing

Hi guys, I wonder if someone would be able to assist with my problem. I have just set up a load balancer for a company I am working for. HTTP redirection is working fine, however they also want to load balance SSH and FTP too.

At the moment the perlbal config looks like;

CREATE POOL webhttp
  POOL webhttp ADD 192.168.0.103:80
  POOL webhttp ADD 192.168.0.104:80

CREATE SERVICE httpbalancer
  SET listen          = 192.168.0.99:80
  SET role            = reverse_proxy
  SET pool            = webhttp
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

ENABLE httpbalancer

However when I try to add SSH and FTP to this like so;

CREATE POOL webhttp
  POOL webhttp ADD 192.168.0.103:80
  POOL webhttp ADD 192.168.0.104:80

CREATE POOL webssh
  POOL webssh ADD 192.168.0.103:22
  POOL webssh ADD 192.168.0.104:22

CREATE POOL webftp
  POOL webftp ADD 192.168.0.103:21
  POOL webftp ADD 192.168.0.104:21

CREATE SERVICE httpbalancer
  SET listen          = 192.168.0.99:80
  SET role            = reverse_proxy
  SET pool            = webhttp
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

CREATE SERVICE sshbalancer
  SET listen          = 192.168.0.99:22
  SET role            = reverse_proxy
  SET pool            = webssh
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

CREATE SERVICE ftpbalancer
  SET listen          = 192.168.0.99:21
  SET role            = reverse_proxy
  SET pool            = webftp
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

ENABLE httpbalancer
ENABLE sshbalancer
ENABLE sshbalancer

I get this error when I try and restart perlbal

I cant seem to find much documentation of perlbal on the net so I wondered if anyone on here may be able to assist me?

Thanks, Jamie

Heh, port 22 probably already has SSH running on it. Run "netstat -anp |grep :22" to see if I'm correct.

By the way, looking at the perlbal documentation, it is not designed for non-HTTP protocols, so that you are trying absolutely won't work. It will also absolutely not work with FTP, unless you go through lots of tricks, because FTP just doesn't work this way.

Take a look at The Linux Virtual Server Project - Linux Server Cluster for Load Balancing