CentOS 5 :: Virtual Server Setup Using VPN Endpoint
Mar 7, 2011
I am setting up a virtual server on CentOS that I want to use as a VPN endpoint. How much resorce should I allocate to the virtual server ? I'm not expecting it to do anything else other than host a small VPN, traffic will be medium / light. I'm tempted to give it minimum ram and drive space.
I just recently purchased a vs from a company and i am trying to set up a web site on it with kloxo and set up the mail for it upon setting up the mail settings it says:
"It is very essential that you set the my name to a properly resolvable hostname, since otherwise, many public mailservers like hotmail will reject mails from your server"
Now this is my first time setting up a vs before i have set up linux vm's to get email access but that was about a year ago.
I am trying to set up a Mail Server -- Virtual Users with Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS 5.5 using this guide. These are the version and softwares I have used till now:-
I have 4 domains registered through godaddy. I have a dell poweredge box with one static IP hosted somewhere. I want the 4 domain to resolve to four different sites. I have already created 4 different sites in apache with four different aliases and has enabled it.
eg alias /a /var/www/a alias /b /var/www/b alias /c /var/www/c
I tried with godaddys forward with masking option. It works but I can't hide xx.xx.xx.xx/a in the links. Whats the best approach? One limitation is I cannot use the webhosts name servers. How do I set this up with name based virtual hosting? Do I setup a DNS server in the box?
I do have a dns host name for my box which is publicy accessible. Some my.ca.examplehost.net
I'm running Ubuntu 10.04 server as a guest on a Windows 7 host using VirtualBox. I've set the VirtualBox configuration to use a Bridged network connection so that I can access the internet through the Ubuntu guest and to access the Ubuntu apache server through my Windows host.This is all running on my laptop which connects to various routers using dhcp (some ip addresses start with 198. while others start with 10.) What I need is a single static ip address (or hostname/url) to setup my cms (drupal).how I can accomplish this given the varying routers the laptop connects to?
We are trying to set up a NIS server on a CentOS system. We need to have a NIS server which can provide NIS authentication to a couple of clients. We are practically new to all this stuff.
Just googled to find some ideas about installing ypserv and ypbind and portmapper. We did all that and also started them successfully. But now the clients are not able to join to the NIS domain . The error log states "YP_DOMAIN NOT BOUND".
I guess we have not entered the /etc/yp.conf, /etc/hosts files properly. Please let us know the detailed steps to setup a NIS server .
Also, please let us know what entries should go into the different /etc/<file_names>? What is meant by HOSTNAME in the /etc/hosts file?
Is there any other files which need to be changed? Are we missing any steps?
Also to add-on, while executing the ypinit command we faced the following error:
At this point, we have to construct a list of the hosts which will run NIS servers. localhost.localdomain is in the list of NIS server hosts. Please cont inue to add the names for the other hosts, one per line. When you are done with the list, type a <control D>. next host to add: localhost.localdomain next host to add:
is it possible to setup a DHCP server using the loopback or a virtual interface? I installed Sun VirtualBox on my fedora system and want to try and kickstart them from within the same box on a virtual network. Is this possible and has anyone done it? I only have a single NIC in the box and it is on my public network.
But when I try to check for syntax errors tells me SSLRequire not allowed here I do not want to add SSLRequire on the main httpd.conf because I only want it for one virtual host. The rest of the virtual hosts do not need it.
1) My Internet connection is COMCAST with a router box and one public IP address.2) My web server is Apache using 10.1.10.200 as its address.3) Now I want to add another host name (www.myhealth.com) on my server. I did DNS forwardin (with Godaddy) to my COMCAST static IP address.4) I also added (in my httpd.conf) a block for virtual hosting
I have a few mail servers, a mail log server and a web server running on Centos 5. Now I have a task: to avoid accidental crashes on the production servers while installing updates, my boss asked me to do clones (these clones will all be VMware virtual machines) of the servers (EXCLUDING the actual e-mails and log contents) and then to run those clones on VMWare Server. This way, first I will install and test updates on the clones and - if they will be running without crashes - I will apply the updates on the real production servers themselves.
I have already installed VMWare Server 2.0 I have a few questions: How do I build the virtual machines to exclude the actual mail files and mail logs? Can I use VMware Converter for this purpose, or do I have to use another program? How do I actually do this cloning? Is there a tutorial on how to do this?
I'm trying to setup and configure a server entirely with text only run mode 3 on a virtual machine so I can redo my current live server. I'm now trying to set up the firewall of the system using iptables. I've read up on it and came up with the following:
-clear all rules #iptables -F -set default policy rules #iptables --policy INPUT DROP #iptables --policy FORWARD DROP
[Code]....
Everything above worked for me but just out of interest I looked at my live server which was configured using a GUI. I ran iptables-save and it was pretty much the same but its port open lines read like this:
#iptables -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
so finally my question is do I really need the "-m state --state NEW"? Wouldn't having that drop established connections on those ports? I'm just confused as to what exactly the NEW state is doing and would it make a difference if I didn't include it.
I have installed CentOS on a VMwareWorktation and that CentOS, i also install VMware Server (suscess) and setup a guest OS that, but i start this Guest OS, an error show "You may not power virtual machine in virtual machine"...
Is there any way to setup the Centos Directory Server without an internet connection?? i tried using the command: yum install centos-ds
but this just tries to connect to the internet to to download the packages. Is there a site where i can find the package so that i can copy it to my server and install it or is there some other way to do this?
I'm trying to setup RAID 1 on a CentOS 5 server for a zimbra email server.I get a partion schema error. Can I do this?The server is a HP Proliant ML150 G3 server with two 80GB HDD.
I intend to setup a Linux Virtual Server cluster behind a firewall. I have two machines which will run Centos 5.3 and act as the routers. I have two other boxes for now, also running Centos 5.3 which will run the server applications. All these machines are connect on my local network behind a firewall. I will ask for the two LVS router machines to be granted access through the firewall for web access (port 80) and ssh access (port 22). These two ports should be sufficient for me to receive my web application requests, as I will use NAT translation on the LVS machines to redirect to the applications on the real servers.
I've read the documentation for the LVS but I would be grateful if someone could give me some guidance on the whether I will have any problem with the firewall and the LVS routers machines, as I have described it above. Do I need to ask for anything other than access through the firewall for these two machines. They will get DHCP IP's I guess. Also, its not quite clear to me where the LVS router machines LAN cards get connected. Do all of the NIC cards connect to my local network, or do I need an independent hub to connect the second NIC of the LVS router machines, and as such use static IP address for them on this private network.
I have just finished bulding a virtual web hosting server on my CentOS-5.5 x86_64 linux box with several websites hosted and its working fine. Now I have to build and FTP service in this webhosting server so that i can create indviudal login for each website and provide access to thier respective web directory only. This is where I am stuck. I have been trying to find out some docs and instructions to achieve this but in vain.
What I need is to configure an FTP service in the web server so that individual owner of websites can login to thieir respective web directories only and upload and download files as well as create, delete and modify the contents of their web directory.
I installed the Centos 5.5 with XEN and put 03 virtual machines (Centos 5.5 too). I did this correctly, but I have a problem. In the virtual machine, I need update the kernel. I used "yum update kernel" and this is downloaded correctly and the menu.lst file is updated too, but the kernel not ran. I ran "grub-install /dev/sda" or "grub-install /dev/xvda" and received a error return. I read the device.map file and i ran "grub-install /dev/sde" and received a error return too.
The errors: [root@vm01 ~]# grub-install /dev/sda /dev/sda: Not found or not a block device. [root@vm01 ~]# grub-install /dev/sde /dev/sda1 does not have any corresponding BIOS drive. [root@vm01 ~]# grub-install /dev/xvda /dev/xvda: Not found or not a block device.
Over the years I've had various flavours of linux on webservers, each has handled this in it's own way - some due to the GUI that was installed etc...
What is your prefered way of holding NameBased Virtual Host records...?
Is it like the redhat system having a sites-available and a sites-active and sim linking the records of the active sites and having httpd.conf only get the info from sites-available?
I know that some people have all the Virtual Hosts records at the end of httpd.conf (or apache2.conf)
What would you do if you had to start a fresh?
I'm running CentOS 5.5 LAMP (Latest versions at 1/8/10)
Using THIS I was able to get virtual users working via standard ftp. After wrestling with selinux and such I'm able to log in as a user defined in the virtual-users file.
At the bottom is the vsftpd.conf. I can start the server no problem. I've been making edits to it so I'm not sure what's right/wrong at this point in it. I have a snapshot I keep reverting to where ftp works with virtual users and then I start monkeying with it again.
First problem I have is I'm not exactly sure how to test it. If I use WinSCP, I try SFTP and in the vsftpd.log I see:
EDIT-Forgot to mention that I did Xorg -configure before testing the config. Only errors I got were:
(EE) LoadModule: Module ati_r500 does not have a ati_r500ModuleData data object. (EE) Failed to load module "ati_r500" (invalid module, 0)
[Code]...
Linuxquestions--I posted this over on the CentOS forums, which are not as booming. Then I remembered these forums for when I had my VPS way back when and you guys were pretty helpful, of course expected me to mostly do my own reading which I dont mind its just having a hard time understanding some of the things in what I was reading. I even believe I came here with this problem before but abandoned the issue because my VPS was not powerful enough or something of the sort, but this was many years ago also on CentOS using apt. Now using yum which I like much better.
I am trying to set up a mail server on centos5 using sendmail and dovecot, and eventually spamassassin and some antivirus filter as well. I'd also like to get the proper secure auth mechanism set up at some point too. But for starters, I've been having a lot of difficulty trying to even connect to the mail server from a client computer in the local network. I installed Eudora on the client and after some tweaking in dovecot I was able to connect to the mail server, but then when I try to send an email I get a "connection refused" error, with nothing being logged on the server that I can see.
The last time I set up a mail server was Fedora Core 2, so the configuration files have changed a bit to say the least, and I can't really refer back to those to set up this new server. Does anybody know of a good step-by-step doc on getting the mail server going? I've read the man pages and other various readme's, but these really only list out the available options with no really good explanation of what needs to be done to get the mail server going. If there isn't a full write-up on how to do this, I'll put something together when I'm finished so others can use it in the future.
I have just installed CentOS 5. I have set mysql database to access from remote machines. But now the problem is it is not connecting from the local machine now.
We have two CentOS 5 servers in production (web and database). We are setting up a single staging server that will mirror the configurations of these servers as closely as possible. What is the easiest way to ensure the exact same software and configs as the production servers are setup on the new staging server. Our contracted data center provider has already informed us that they do not perform images and NO we do not have physical access to the machines. It is undetermined whether we will be virtualizing the staging server into two virtual servers yet, so for the purposes of this post lets assume we are not. I'm seeking a faster/more precise method than doing this by eye and hand.
I'm running CentOS 5.5 x64 and have just installed VMWare Server 1. I am able to create a new Virtual Machine, but when I go to power on the VM in order to install the OS (windows server 2003), either the host crashes/reboots (with "Run in Debugging Mode" turned on) or the VM simply does not start (with that Debugging box unchecked) and in the log there is an error along the lines of VMware Server unrecoverable error (vmx)