I am using haproxy for the first time.I downloaded the latest version 1.4.7 and then unpacked it.then opened the terminal and wrote the command
After which an executable haproxy file was created which I copied to /usr/local/sbin. then i wrote $sudo make install. then I make a configuration file in /etc/haproxy.cfg which is as follows
But it's not working it is various kind of errors intially it was showing "cannot bind to socket" so tried changing the port number but didn't help. I also used command like $sudo sysctl net.ipv4.ip_nonlocal_bind=1 But didn't help.
I am working on a load balancing project. The type of routing I am implementing is direct routing (LVS-DIR).
The following is a script that sets up the Linux Virtual Server (LVS) or the load balancer:
On both, the LVS and Real Server 1, the firewalls (iptables) are not running.
A few questions I have are: 1) On the LVS, is apache supposed to be running? 2) If so, what would be the ServerName for apache on the LVS? 3) What would be the ServerName for apache on the real server1, is it the server real IP or the VIP?
When I try to access the web content on real server1 in a browser on the LVS, I get Failed to Connect. A connection to the server cannot be established.
The load balancer has two NICS, eth0 and eth1. The real servers will connect to the load balancer via eth1, and the client will connect via eth0.
I have set up one of my linux box as link load balancer for two ADSL connection. After deployment, I have found out that instead of being fast, it has become slow. What I have observed that my request get out to internet but comes back intermittently. Is this a standard scenario ?
My requirement is to route ssh sessions from a single head node to multiple slave nodes. So what i want is, for a client there is just one point of entry (master/head node) to ssh into, it evaluates the load on the slave nodes connected on to internal network and routes the ssh session, kind of a ssh load balancer. Do you have any idea what open source solution i can apply for my problem?
I have tried using LVS piranha, it works well for http and https load balancing but not for ssh load balancing.
I have just taken on a dedicated server sitting somewhere in Norfolk. I have created a website that uses PHP to connect to another remote server in order to interrogate a MSSQL database. This script, running on Apache, uses a VPN connection to connect to the remote server.To test, I have Apache on my laptop at home and just used Microsoft Network Connection to create the VPN connection.I have now uploaded this site to my new CentOS server and need to create the same VPN connection. I understand this is a command level and have been advised to use OpenVPN which I have successfully installed.My problem is I only have the details remote ip address, username and password. I believe I have to use the 'client.conf' script instead of server.conf.
I need to set a NAC (PacketFence) system (CentOS 5.5), i would like to set in my case eth0 to work with several different VLAN'S i created ifcfg-eth0.2 copied from orginal ifcfg-eth0 and changed the ip and append VLAN=yes but when i am triyng to load ifcfg-eth0.2 i get error
my ifcfg-eth0 goes as follow
# Intel Corporation 82578DM Gigabit Network Connection # Normal VLAN Lan adapter (Managment)(On-boad 1st NIC) DEVICE=eth0
I have a cgi script that tries to get the IP address of a domain. the Domain is defined in Bind, yet it can not resolve it. I put the domain in the host file and it then gives a Error: unable to create socket - Permission denied
I figure I have to do some code changes to the script but here I would like an explaination as to the error I am getting.
Have been playing with Centos 5 and finally got it installed and have done most of the updates. Before I proceed much further it would be nice if I could create a backup/install disc of how it is now. No Data,just the setup and software used etc.Have a dvd rw on the server.I recall mondo rescue installed years ago on a linux server we used.
I have a huge issue on this error on mysql. Can't create/write to file '/tmp/#sql the full error message is Can't create/write to file '/tmp/#sql_4761_0.MYI' (Errcode: 30)
I have a CentOS 5.5 server running currently with a Netgear gigabit ethernet card and for wifi I have a wi-fi card with the chipset: RT2860.Now I have gotten the ethernet card and wi-fi card working but my main question is: How do you bridge the connection between the ethernet card and the wi-fi card to create a wireless network with a hidden ESSID if possible and WPA encryption? (So the server basically acts as a wireless router as well as doing all the other stuff I need to do on it).
I'm in the process of creating local repos for our company servers (CentOS 5.5) and laptops (Fedora 13). And while the CentOS part went perfect the Fedora part is causing major trouble.But first things first, here's the setup: a central CentOS 5.5 server is running Apache2 and has a VirtualHost listening on Port 8080 for both CentOS and Fedora. The DocumentRoot for this VirtualHost is /data/repo wherein two directories, centos and fedora, reside.
This is the .repo-file for CentOS that works like a charm:
Quote:[local] name=CentOS-$releasever - local packages for $basearch
I am trying to setup a High-Availability HTTP Load Balancer With HAProxy & Heartbeat using the below links.
I have all RHEL 5.4 servers hosted on VMWare.
[url] [url]
This is the scenario, as given in the links as wells as my setup.
Load Balancer 1
Load Balancer 2
Web Server 1
Web Server 2
I have followed all the steps mentioned in the links religiously except the 2.2 here, in which it is asking to configure the vhosts. I could not really understand , what is to be placed in /etc/httpd/conf.d/vhosts.conf file and in which Web Server.
Due to this step only, I think I am failing in Failover test given in Point 4.1 here. I am able to open the webpage by [url] which gives the content of Web Server 1 (http1.example.com). But, when I try to shutdown the http service (to check failover), it does not shows the contents of Web Server 2 (http2.example.com)
Although, I am able to succeed in Failover Test 4.2, in which shared IP 192.168.0.120 switches when I try to start/stop the any of the Load Balancers.
I've just installed Fedora 14 on VMware and i want to create vpn connection over it, because my ISP only allow vpn connections to connect Internet. code...
and 1 or more rpms not installed on my FC 14 can ny1 guide me how can i create a vpn fully working!
I have Centos5.4 loaded on a late 2008 MACBOOK Pro and would like to get wireless working. I've attempted to download the broadcom driver and create a driver module with no luck.
I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.
In the %post I have :
%post --log=/tmp/post.log --erroronfail mkdir /mnt/nfs mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs
I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).
Here is the remainder of the KS : lang en_US.UTF-8 keyboard us timezone US/Eastern
Ive installed centos freebsd and mandriva but i want to manage grub from my centos and y create successfully a boot load for freebds. But for mandriva it just doesnt work... so how can a create a boot load entry for mandriva from grub centos?
I have just installed FC11 from a DVD I created from an ISO.I also have FC10 (using here) and Windoze XP pro all on separate HDDs.I have not been able to configure my internet connection, when I try to create a new xDSL connection I get an error message; package needed 'rp-pppoe'.I don't now how to get the package without a connection.I have tried with and without Network Manager.
I'm a network administrator and I have to cut the internet access to some network users. I would like to do that by installing a proxy server on a F10/F11/F12.
I have a fresh install of Fedora 13 64 bit. I am unable to create VPN profiles in network manager as a normal user.
To test: Logging in with gnome as root, I am able to create a VPN profile in Network Manager Logging in with KDE as root, I am not able to create a VPN profile in Network Connections.
Problem: Logging in as a normal user with KDE, I am not able to create a VPN profile in Network Connections. On the VPN tab, the Add... button is greyed out.
What is required to add VPN connections under KDE on Fedora 13?
I installed the latest CentOS 5.5 in my PC. I added some public domain projects on it. Now how can I make another boot-able CentOS iso file with all the new projects I just added? In the other words, I try to create a boot-able CD with the CentOS and all the projects on it.
I thought configuring a vpn would be a piece of cake, but it seems I'm missing something.
I'm attempting to create a vpn (pptp) using the networkmanager (0.7.1). I enter the gateway (I assume thats the server I'm trying to connect to) and my login information. What is the NT Domain?
When I try to connect it only tells me after a while that it failed to do so. How can I find the information on what went wrong in the process?