CentOS :: Simple Pound Load Balancer
Posted by blackonsole on April 12th, 2014 01:19 AM | No Comment
:: Whatis Pound
Pound Load Balancer - HTTP/HTTPS reverse-proxy and load-balancer
:: How to install Pound Load Balancer
yum -y install Pound
:: Simple forward all traffic in Pound Load Balancer
Forward all incoming HTTP and HTTPS traffic to 10.10.1.3 in port 80 and 10.10.2.4 ...
Ubuntu : Setting OpenVPN Pre-Shared Static Key
Posted by blackonsole on December 22nd, 2013 03:37 AM | No Comment
:: What is
Setting OpenVPN with static key are ideal for point-to-point VPNs or proof-of-concept testing.
:: Installing OpenVPN Server in Ubuntu
aptitude install openvpn
:: Create Pre-Shared Static Key for OpenVPN
openvpn --genkey --secret /etc/openvpn/shared.key
:: Setup OpenVPN to use Pre-Shared Static Key
vi /etc/openvpn/server.conf
Add configuration ...
Ubuntu : Setting Wifi HotSpot using HostAPd
Posted by blackonsole on October 30th, 2013 07:22 AM | No Comment
Setting Wifi HotSpot using HostAPd
Checking Wifi
:: Check Wifi AP Support
sudo aptitude install iw
iw list
make sure you see "AP" in Support interface:
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
...
CentOS :: Setting User Can Access FTP Only
Posted by blackonsole on September 19th, 2013 04:20 AM | No Comment
:: What's this
FTP is a standard network protocol used to transfer files from one host to another host over a TCP-based network.
:: How to setup user can access ftp only without shell access
+ Disable shell access for user
vi /etc/passwd
change /bin/bash ...
Ubuntu :: Move datadir directory in MySQL
Posted by blackonsole on September 17th, 2013 01:09 PM | No Comment
:: What's MySQL
MySQL is open-source relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.
:: How to move datadir MySQL directory in Linux Ubuntu
+ Stop mysqld
/etc/init.d/mysql stop
+ Move or copy mysql data ...
CentOS :: Increase tmpfs / shm size
Posted by blackonsole on September 9th, 2013 09:00 AM | No Comment
:: What's tmpfs
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems.
:: How to increase tmpfs or /dev/shm size
+ See current size
df -h
some like this
df -h
Filesystem ...
Postfix :: Relay Email to Google Apps / Gmail
Posted by blackonsole on August 27th, 2013 12:28 PM | No Comment
:: What's Postfix
Postfix is free and open source mail transfer agent.
:: How to setup Postfix relay email to Google Apps / Gmail in CentOS 6.3
+ Setup main.cf to relay email
vi /etc/postfix/main.cf
add some configure like these:
relayhost = :587
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/gmail
smtp_sasl_security_options =
smtp_sasl_tls_security_options ...