How To Setup Ip Address On Centos

Aug 5, 2008

my ISP offers me vlan environment for my two servers, but I need to setup internal IPs myself on my centos. Now I have no idea on how to do it. Anybody may help me on this problem?

View 5 Replies


ADVERTISEMENT

How Do I Setup A New Ip Address As My Server's Main Ip Address

Jul 26, 2007

I just bought a new ip address and want to setup this new ip as my server's main ip, making the 'existing main ip' as the secondary ip.

Which means, this new ip will be the server's default ip address for all services, including when connecting to other server.

I'm using CentOs 4.5 and swsoft's panels: HSPcomplete & Virtuozzo Power Panel, and Webmin.

View 1 Replies View Related

Second IP Address In CentOS

Feb 17, 2008

How do I add additional IPs in CentOS? I've been assigned five, let's say 1.1.1.101 through 1.1.1.105, but the box only came set up for 1.1.1.101.

I think I can apply 'em via ifconfig, but where are they actually configured, so I'm not left running a set of commands every time the server reboots?

View 4 Replies View Related

DNS Setup With Single IP Address

Jun 11, 2008

I have purchased a VPS and setup all my apache, php and mysql successfully.

However I am unable to understand over how can I point [url] (bought at Godaddy) to my VPS host.

I only have a single dedicated IP address for me. So it makes more challenging on how can I host DNS on my VPS only.

View 14 Replies View Related

How To Setup A Floating IP Address?

Feb 14, 2008

how to setup a floating IP?

I have 2 servers, need a "floating" IP for load balancing, but my datacenter didnt understand what floating IP is.

View 10 Replies View Related

How To Change Primary IP Address In Centos

Nov 11, 2008

I have centos VPS server, it's possible to change primary vps?

View 4 Replies View Related

How Can Change Primary IP Address In Centos

Apr 29, 2008

How can change server primary address in centos?

View 2 Replies View Related

Software Raid1 Setup On Centos 5

Dec 4, 2008

How can setup software raid1 on centos 5?

Can you provide any refrence?

I see [url]but i dont know is this need to /boot partition or no? and if need to this, is it must set for raid1 too?

View 6 Replies View Related

How To Setup Virtual Private Server (VPS) On CentOS?

Jan 16, 2008

How can I setup VPS's on my new server?, I want something which is free, can anyone give me some software? for centos

View 5 Replies View Related

Plesk 11.x / Linux :: CentOS 6 - Host Name Must Resolve To Correct IP Address Of Server

Feb 15, 2015

I have a fresh server running CentOS 6 (final). I am trying to install Plesk 11.5.30 but i am experiencing some problems. When i run the plesk-installer i get this message:

Your host name must resolve to the correct IP address of your server, unless you are using network address translation (NAT).

Please quit Parallels Installer, fix the host name resolution problem, and then try installing again.

You can skip the hostname check and continue the installation, however, in such a case, the installer cannot guarantee successful installation.

Now, in my /etc/hosts file i have this:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Is this correct? Or do i need to add/change something else?

My server is in the clound.

View 3 Replies View Related

HOWTO OpenVPN Setup Guide For FC3, FC4, FC5, CentOS And Others,connecting Via Windows

Apr 1, 2007

I have had great difficulty in setting up OpenVPN, so I thought, when I finally do get it to work, I will write a HOWTO, so other can hopefully benefit…

This guide was done using a FC4 VPS, running on Xen, it will work on OpenVZ, all you need to do is ask your VPS provider to install “tun support”.

1.First of all get a few additional repos, If you already have your repos setup, skip this step

If you have Fedora 3, follow these steps,

[url]

If you have Fedora 4, follow these steps,

[url]

If you have Fedora 5, follow these steps,

[url]

If you have CentOS, follow the “additional third party CentOS repos”

[url]

Then issue these commands, each line is a new command, anything beginning with "#" are comments so dont try to execute those.

Code:
yum update

yum install openssl openssl-devel
# openssl and openssl-devel may be installed already… so don’t worry

2. Right, now you want to install OpenVPN, here are the commands,

Code:
yum install openvpn -y

#Now check that it works

service openvpn start
service openvpn stop

3. A few things to setup before you can make certificates, issue these commands,

Code:

find / -name "easy-rsa"

#you should get an output like this…

/usr/share/doc/openvpn-2.0.7/easy-rsa

#Now, make a copy of the easy-rsa directory, to /etc/openvpn/ ( make sure you #have put the right version number in i.e. mine was -2.0.7, change if needed)

cp -R /usr/share/doc/openvpn-2.0.7/easy-rsa /etc/openvpn/

cd /etc/openvpn/easy-rsa

chmod 777 *

mkdir /etc/openvpn/keys

4. You need to edit the vars file, located in /etc/openvpn/easy-rsa
You can use any editor you like, I used vi.

Change the line

Code:
export KEY_DIR=$D/keys
to

Code:
export KEY_DIR=/etc/openvpn/keys
Also at the bottom of this file you will see something similar to this,

Code:
export KEY_COUNTRY=US
export KEY_PROVINCE=CA
export KEY_CITY=SOMEWHERE
export KEY_ORG="My Org"
export KEY_EMAIL=me@mydomain.com
Change this to your own values.

5. Now its time to make the certificates, enter these commands

Code:
. ./vars

Code:
./clean-all

Code:
./build-ca
# just hit enter to the defaults apart from Common Name, this must be unique
# call it something like mydomain-ca

Code:
./build-key-server server

Code:
./build-key client1
# remember that common name must be unique e.g. use mydomain-client1
# and YES you want to sign the keys

Code:
./build-key client2
# do this step for as many clients as you need.

Code:
./build-dh

6. We are almost done now… right we need to create a few config files, you can download my template from here,

Code:
cd /etc/openvpn

Code:
wget www.designpc.co.uk/downloads/server.conf
# make sure you change a few things in the server.conf file, like DNS
# servers

Code:
touch server-tcp.log
~ this makes the log file..

Code:
touch ipp.txt
this makes the IP reservation list.

7. You need to make a few changes to OpenVPN itself. Go to..

Code:
cd /etc/init.d/
edit the openvpn file

#Uncomment this line (line 119)

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
Add these lines below it, changing 123.123.123.123 to your public IP address,

Code:
iptables -t nat -A POSTROUTING -s 192.168.2.3 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.4 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.5 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.6 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.7 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.8 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.9 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.10 -j SNAT --to 123.123.123.123
Now install iptables if you don’t have it already,

Code:
yum install iptables

#test it

service iptables start
service iptables stop

8. Now for the client config files. If your client is a Windows machine, make sure you have installed OpenVPN, use the gui version, downloadable from here;

[url]

You need to copy a few files from the server to your client machine, here is the list, located in /etc/openvpn/keys/

## WARNING ## Use a secure way of transferring these files off the server, something like WinSCP.

ca.crt
client1.csr
client1.key
client1.crt

Put these files in this directory C:Program FilesOpenVPNconfig

Now you need to make a client config, here is an example..

PHP Code:

clientdev tunproto tcp#Change my.publicdomain.com to your public domain or IP addressremote my.publicdomain.com 1194resolv-retry infinitenobindpersist-keypersist-tunca ca.crtcert client1.crtkey client1.keyns-cert-type server#DNS Options here, CHANGE THESE !!push "dhcp-option DNS 123.123.123.123"push "dhcp-option DNS 123.123.123.124"comp-lzoverb 3 

Make sure you edit any of the lines with comments above them.

Call this file client1.opvn and put it in C:Program FilesOpenVPNconfig

Make sure the file extension is .opvn not .txt

To connect right click on OpenVPN in the taskbar >> Connect

To test ping 192.168.2.1

View 14 Replies View Related

How Do I Setup A Ubuntu DomU Guest On A CentOS / Fedora Core XEN Server

Jul 27, 2008

how to install Ubuntu (either 7.10 or 8.04) as a XEN domU guest on a CentOS 5 / Fedora Core 8 XEN dom0 server?

I have tried installing Ubuntu as a fully virtualized guest, but the Ubuntu CD doesn't even bootup. I get the Linux bootloader, and that's it,it doesn't continue to boot. Odd.

When trying to install a Paravirtualized guest, I had to use the debootstrap method, but can't get it to boot up.

Quote:

xm create anya_zanet
Using config file "/etc/xen/anya_zanet".
Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found
')

This is the xen configuration:

Code:
kernel = "/boot/vmlinuz-2.6.23.1-42.fc8"
ramdisk = "/boot/initrd-2.6.23.1-42.fc8.img"
builder='linux'
memory = 256
name = "anya_zanet"
vcpus = 1
vif = [ 'bridge=xenbr0' ]
disk = [ 'phy:/dev/System/anya_zanet,hda1,w' , 'phy:/dev/System/anya_zanet,hda2,w' ]
root = "/dev/hda1 ro"
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'

how to get Ubuntu working on a CentOS / Fedora Core XEN server?

View 1 Replies View Related

Apache :: How To Use Virtual Host IP Address In Request To Remote Address

Feb 6, 2015

My customer has an external facing Apache server that is acting as a reverse proxy to two internal applications. They have:

- external addresses for each app which resolve to different ip addresses, so app1.their_domain.com and app2.their_domain.com resolve to 77.3.170.10 and 77.3.170.11 respectively.
- the Apache server has two network interfaces with ip addresses 192.168.10.10 and 192.168.10.11
- the external ip addresses resolve to the above internal addresses
- the firewall between the Apache server and the internal app servers is configured to allow traffic from 192.168.10.10 to reach app_server1, and traffic from 192.168.10.11 to reach app_server2, both using port 7777.

I have configured a virtual host in httpd.conf for each ip, i.e.

Code:

<VirtualHost 192.168.10.10:80>
...
ProxyPass /app http://app_server1:7777/app
ProxyPassReverse /app http://app_server1:7777/app
RewriteRule ^/$ /app/app1 [R,L]
...
<VirtualHost>

and

Code:

<VirtualHost 192.168.10.11:80>
...
ProxyPass /app http://app_server2:7777/app
ProxyPassReverse /app http://app_server2:7777/app
RewriteRule ^/$ /app/app2 [R,L]
...
<VirtualHost>

This works fine in that the external address are being routed to the correct application, however the firewall is blocking requests to the second app as it appears the requests are coming from the Apache servers 'primary' ip address 192.168.10.10 instead of 192.168.10.11.

Is it possible to send requests using the ip address from the relevant VirtualHost?

Windows server 2008
Apache 2.2

View 1 Replies View Related

Virtuozzo Firewall :: Is It Possible To Enter Two Different Ip Address In Source Address?

Aug 4, 2008

I am using virtuozzo firewall to secure access.

I enter 58.27.175.211/255.255.255.0 for Source Address and Netmask for port 22.

But still I can connect using 58.181.103.217 or 58.27.151.120.

Second is it possible to enter two different ip address in source address?

View 4 Replies View Related

Dedicated Or Reseller Setup With Virtualization Or Decent Chroot Setup

Jul 31, 2008

As my clients' needs expand, they're asking for chroot ssh/sftp setup. I'm currently on a dedicated Linux setup but don't really have the time to set up a whole new box with full virtualization or investigate a full chroot solution (baby on the way), and to be honest it would be less hassle to move to a new provider than worry about down time with sites.

What I'm looking for:

- linux hosting
- hosting for 30+ accounts, some with several domains
- at least 6 IP addresses for SSL certs
- each account in a full chroot environment (ssh/sftp/ftp) so they can't poke around each others' files, or each account set up in a virtual machine setup (ie: openvz)
- maildir
- spamassassin
- php 5, mysql, perl 5.8.8
- suexec apache would be nice

View 3 Replies View Related

URL Redirection Without Changing The Address In The Address Bar

Nov 8, 2007

I want to redirect a website to a particular URL so that the address bar shows the same URL and not the destination URL. I know it is possible via URL masking, however, I want it in such a way that whenever somebody clicks on any link in the website, the address bar should still show the original URL. To put it in simple words, Suppose I want to redirect [url] to [url]. Now if there is a link named contact/index.htm and somebody clicks on it the address bar should display [url]and not redirect to [url]

How can it be possible using URL Rewrite method in .htaccess file?

View 2 Replies View Related

98)Address Already In Use: Make_sock: Could Not Bind To Address [::]:443

Aug 4, 2007

The problem usually goes like this:

- I can't access the webserver
- I'll try to restart httpd, and I'll get

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443

To fix this, I run

[root@www1 ~]# lsof -i tcp:443
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
perl 11307 apache 4u IPv6 476943447 TCP *:https (LISTEN)

There is always leftover process that is causing the restart to fail. Once i force kill the process, I am able to restart httpd properly.

Now it is ok if this just occurs once in a while, but this problem keeps repeating itself almost everyday at 4am server time (cron time?). What can I do to permanently fix this?

View 5 Replies View Related

Difference Between CentOs 5.0 And Centos 4.5? Both With Plesk

Oct 1, 2007

What is the difference between CentOs 5.0 and Centos 4.5? (Both contains Plesk)

Would CentOS 5 contain more updates and fixes? CentOS 4.5 be more stable?

View 0 Replies View Related

DNS Setup And FTP Setup [LXAdmin/HyperVM]

Aug 1, 2008

I have learnt it is harder to setup than I initially expected (since I have just moved from a shared hosting service). I am in need of some help setting up my DNS servers, as I am very confused. Here is most of the info I know:

1) I am running HyperVM

2) I've installed LXAdmin

3) I own the domain (purchased from xeodomains.com) runemart.com

4) My VPS hostname is: vps.runemart.com

5) I know my IP

6) My host has said:

'For VPS customers that have a HyperVM login you can now host forward DNS on the DNS servers rdns1.vaserv.com (US)rdns2.vaserv.com (UK'

And I am unsure what this means/how to do it.

I am not sure if I need some more information to set up my DNS, however I am sure that I can get it if I do.

Now, my questions begin. Firstly, I need to point my domain - runemart.com - somewhere. I believe I need to set up my DNS via HyperVM or LXAdmin so that they are something like: ns1.runemart.com and ns2.runemart.com. Though, is this correct? Am I able to set up my own actual domain name servers, or will my domain have to point at something like rdns2.vaserv.com?

If anyone can assist me in this I would be very greatful, as I am waiting to get my website running. This is all I will ask for now, I will take it one step at a time =).

View 14 Replies View Related

Upgrading From Centos 4.6 To Centos 5.2

Aug 19, 2008

Does it worth to upgrade cent os to latest version on server where is installed whm/cpanel?Could i request upgrade from cpanel support ?

View 3 Replies View Related

CentOS 4 32-bit Or CentOS 4 X86_64 Bit

Aug 7, 2007

which one do i have to choose?? and why?

my server is P4 3.6GHz HTT with 2GB RAM

View 6 Replies View Related

HOW TO : CentOS 3/RedHat 9 ---> CentOS 4.5, Step By Step.

May 18, 2007

I've made a how to, based on my personal knowledge about upgrading a CentOS 3, RedHat 9, or 8?, Fedora Core, and maybe others, to the new CentOS 4.5 OS. (or CentOS 4.x)

[url]

Please post, comments, questions, etc. here.
I've myself upgraded many servers this way, (even, tonight, I upgraded another, so I finally decided to do this with all my notes)

View 3 Replies View Related

What Is IP Address?

Dec 20, 2008

to understand everything about hosting services.

What is IP address?

View 6 Replies View Related

New Ip Address To Add Via SSH

Jun 6, 2008

I have new ip range and must add to server.

How can add this ip address to server with ssh access?

View 2 Replies View Related

MAC Address

Aug 2, 2008

How many MAC addresses does a system will have and what are they?

If more than one MAC address will be there, then which MAC address is constant one, so that nobody can change it?

Somebody told me that there will be two MAC addresses, one is of Hardware's and second one is of CPU's. Is it correct?

View 1 Replies View Related

One Ip Address For Both Nameserver

Aug 29, 2007

My new host give me 1 ip to register for both (ns1 & ns2) nameserver. Is that correct?

Ex-host always gave me 2 ip's.

View 6 Replies View Related

IP Address Tracer

May 21, 2007

Im looking for a good IP address locator, I have already tryed a couplde such as Visula Route, but it just plain sucks. Im also looking for a good program to monitor packets. any sugestions?

View 0 Replies View Related

Dedicated IP Address Better?

Nov 25, 2008

I have a question is a Dedicated IP on a shared sever any better than just being on there with out a Dedicated IP.Im new to all this.

View 12 Replies View Related

Adding IP Address To WHM

May 21, 2009

about adding IP addresses to cPanel.

I've added 8 IP's to my WHM, and I am slightly confused...

I moved one domain to the new IP address and it worked fine after 15 minutes. I then moved another to a new IP address and it did not work after waiting over 30 minutes. The only difference between the two accounts is one account has 2 domains attached to it and one has about 15 domains attached to it.

If I just were to leave it sitting and wait would it switch to the new IP?

I would have no problem with waiting except for the fact that it resolves to the "cPanel/WHM is now installed" screen, rather then the website.

View 5 Replies View Related

Ssl --address Not Found

Mar 16, 2009

I have a valid ssl certificate for the website but it still shows address not found error. But sometimes it just works fine.

is it related to dns issue?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved