Posts

Showing posts with the label General

Adding Secondary Virtual IP Addresses

Adding Secondary Virtual IP Addresses Adding additional IP addresses can be done one of two ways. Add IP addresses to the same network adapter as secondary IP addresses (the normal way) Add an IP address to each, seperate network adapters. To say the least, the second option is not the most desirable as you would have a limited number of network adapters available, even on a physical machine. For additional, seperate network adapters, the goal is to connect to a private or other network. Note: This will require at least one (1) dedicated reserved IP address 1) Reserve your IP addresses using the IP Manager at the top menu bar. http://iaas.me/screenshots/2015-02-10_1149.png http://iaas.me/screenshots/2015-02-10_1149_001.png 2) Add the IP address you reserved to the "Additional IPs" section of your servers Network properties: 3) Provision Changes 4) All public IP spaces that are assigned to servers will be part of a /24 network (Netmask 255.255.255.0). ...

Add Secondary Drives to CentOS / RHEL

Add Secondary Drives to CentOS / RHEL Adding a secondary drive to CentOS/RHEL (verbose version) 1) Get a list of current drives attached: [root@centos ~]# fdisk -l Disk /dev/vda: 4294 MB, 4294967296 bytes 16 heads, 63 sectors/track, 8322 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0003b59f Device Boot Start End Blocks Id System /dev/vda1 3 6242 3144704 83 Linux Partition 1 does not end on cylinder boundary. /dev/vda2 6242 8323 1048576 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. 2) Add the secondary drive in your VDC and connect it to the target server: 3) On your server, you should now see the secondary drive: [root@centos ~]# fdisk -l /dev/vdb Disk /dev/vdb: 4294 MB, 4294967296 bytes 16 heads, 63 sectors/track, 8322 cylinders Units ...

Setup Webmin Control Panel on Your Server

Setup Webmin Control Panel on Your Server CentOS / RHEL 1) Download the latest version of the Webmin Control Panel. You will want to use the RPM Build. # wget http://prdownloads.sourceforge.net/webadmin/webmin-1.730-1.noarch.rpm 2) Install the package: # rpm -ivh webmin-1.730-1.noarch.rpm 3) After installation, your webmin installation will be available via HTTP at http://<your server IP>:10000. Ubuntu / Debian 1) Download the latest version of Webmin Control Panel suitable for Ubuntu/Debian. You will need the .deb package. # wget http://prdownloads.sourceforge.net/webadmin/webmin_1.730_all.deb 2) Install the package using dpkg. # dpkg -i webmin_1.730_all.deb 3) Your installation will now be available via HTTP at http://<your server IP>:10000 Change Webmin Port from default of 10000 If you wish, you can change the default port for Webmin from port 10000 to something else that would be more obscure. 1) Open /etc/webmin/miniserv.conf in your text ...

Linux Security Best Practices

Linux Security Best Practices Introduction Security is crucial to any environment whether the systems are running in a local office or a remote data center. It is also important to note that deploying to a cloud service does not eliminate the need to be concerned about security. An ever increasing number of systems are being compromised everyday. Adhering to good security practices is a first step in protecting your servers and data. Enable Firewall Some Linux distributions, such as Ubuntu, do not enable the local firewall by default. This can pose a significant security risk if the server is directly connected to the public Internet. It is suggested the local Linux firewall, iptables, always be enabled. The following command will show if any rules are currently loaded. iptables -L -n To enable the local firewall on Ubuntu, first add a rule to allow remote SSH connectivity. ufw allow 22/tcp The firewall can then be enabled. ufw enable CentOS and Red Hat Enterpris...