What is a reverse proxy? A reverse proxy accepts connections and then routes them to an appropriate backend. For example, if we have a Ruby application running on port 3000, we can configure a reverse proxy to accept connections on HTTP or HTTPS, which can then transparently proxy requests to the ... Read More...
Networking
Want to quickly change the hostname of your server? Use this simple script: ... Read More...
In this tutorial, we will learn how to mount a Windows partition on CentOS by using mount.cifs [info_box] Please ensure that you have configured a Windows share before continuing. [/info_box] The mount.cifs file is provided by the samba3-client package. This can be installed from the standard CentOS yum repository by running the following command: yum ... Read More...
This quick tutorial will describe how to change the hostname on your CentOS Linux server. Where HOST_NAME occurs, replace it with your desired hostname. 1. Run the hostname command: 2. Open /etc/sysconfig/network, update the HOSTNAME line and save: 3. Open your hosts file, and update the hostname entry and save: Alternatively, you can use this ... Read More...
An easy method to do port forwarding on CentOS is to use xinetd. This service is usually installed on CentOS by default. In order to port forward with xinetd, you will need to create a configuration file: vim /etc/xinetd.d/smtp_forward Some xinetd port forwarding examples: 1. Forward port 2000 on localhost to remote server on ... Read More...
In this guide I'll be explaining how to install the SNMP service on CentOS. The SNMP service is available in the standard CentOS repository. 1. Install net-snmp with yum: yum install net-snmp 2. Create a simple SNMP configuration: mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org vim /etc/snmp/snmpd.conf Add the following to /etc/snmp/snmpd.conf ; Replace 1.2.3.4 with the IP address of the ... Read More...