Thursday, September 27, 2012

Wednesday, September 26, 2012

install qpid in centos 6

To install the Qpid Python client library:
    # yum install python-qpid
To install the Qpid broker:
    # yum install qpid-cpp-server
To start the Qpid broker:
    # service qpidd start
To have the Qpid broker started at boot time:
    # chkconfig qpidd on
Install qpid-tools
[root@FSWWW ~]# yum install qpid-tools
 

OpenVPN can connect, but no LAN Acess

I setup an openvpn, but no LAN access when I connected to VPN

Here is the steps to fix it:
1, logon to openvpn server and check this file
[root@openvpn ~]# cat /proc/sys/net/ipv4/ip_forward
0


2, if it returns 0, that's the root cause. But you cannot modify this file directly.

3, You need change ip_forward to 1 permanent
open file and change net.ipv4.ip_forward to 1 , about line 7:
[root@openvpn ~]# vim /etc/sysctl.conf
# Controls IP packet forwarding
net.ipv4.ip_forward = 1


 4, Reboot the server or you can do this to avoid rebooting
[root@openvpn ~]# sysctl -p

[root@openvpn ~]# sysctl -w net.ipv4.route.flush=1




5, reconnect to you VPN


Tuesday, September 25, 2012

openvpn hangs forever

openvpn use 443, 943, and 1194, need to forward all these port in your router.

http://docs.openvpn.net/frequently-asked-questions/

"
Short answer: TCP 443, TCP 943, UDP 1194
Long answer: By default OpenVPN Access Server has 2 OpenVPN daemons running. One of them on UDP port 1194 and another on TCP 443. We recommend that you use the UDP port because this functions better for an OpenVPN tunnel. However, many public locations block all sorts of ports except very common ones like http, https, ftp, pop3, and so on. Therefore we also have TCP 443 as an option. TCP port 443 is the default port for https:// (SSL) traffic and so this is usually allowed through at the user’s location.
TCP port 943 is the port where the web server interface is listening by default. You can either approach this directly using a URL like https://yourserverhostnamehere:943/ or by approaching it through the standard https:// port TCP 443, since the OpenVPN daemon will automatically internally route browser traffic to TCP 943 by default. (https://yourserverhostnamehere/).
"

Monday, September 24, 2012

Saturday, September 22, 2012

Patch ESXi 5

1, download patch from VMware.com, mine is ESXi500-201207001.zip

2, Enable ESXi 5 ssh

3, scp ESXi500-201207001.zip to ESXi

4, make sure file is not broken
This file size is:
~ # ls /vmfs/volumes/datastore1/ -l
-rw-r--r--    1 root     root          594036729 Sep 23 01:54 ESXi500-201207001.zip

5, do update
~ # esxcli software vib install -d /vmfs/volumes/datastore1/ESXi500-201207001.zip

If you see the error like:
Could not download from depot at zip:/vmfs/volumes/datastore1/ESXi500-201207001.zip?index.xml, skipping (('zip::/vmfs/volumes/datastore1/ESXi500-201207001.zip?index.xml', '', "Error extracting index.xml from ::/vmfs/volumes/datastore1/ESXi500-201207001.zip: [Errno 2] No such file or directory: :/vmfs/volumes/datastore1/ESXi500-201207001.zip?index.xml'"))
url = zip:
:/vmfs/volumes/datastore1/ESXi500-201207001.zip?index.xml
Please refer to the log file for more details.

This means this zip file has some issue:
1, not exist
or 2, broken