How to build a VPN server on your VPS?

Posted by NosaLee in UNIX/Linux on 15-11-2012. Tags: ,

Author: Nosa Lee
Original Address: http://www.seeksunslowly.com/how-to-build-a-vpn-server-on-your-vps
To reprint this article, please indicate the source, thank you.
_____________________________________
If you have a foreign VPS and you want have a VPN server, just do it as below:
In my VPS:
OS: Ce[......]

Read More…

如何在 VPS 上搭建 VPN 服务器

Posted by NosaLee in UNIX/Linux on 15-11-2012. Tags:

作者:牧山道人
原文地址:http://www.seeksunslowly.com/如何在-vps-上搭建-vpn-服务器
转载请注明出处,谢谢。
_____________________________________
如果您买了国外的 VPS,可以顺便利用主机流量及国外的网络环境搭建自己的 VPN 服务器,以实现流畅的上网体验及一些特殊访问需求。
之前一直没动手搭,因为觉得很麻烦,有需求时用用免费 VPN(参见本道另一篇文章:干货:VPN 翻墙访问 YouTube 脸书 facebook 推特 twitter 谷歌 google blogspot blogger 等攻略/教程(完全免费)[......]

Read More…

How to set access password for awstats in Kloxo?

Posted by NosaLee in UNIX/Linux, Web Programming & Resources on 27-07-2012. Tags: ,

Author: Nosa Lee Original Address: http://www.seeksunslowly.com/how-to-set-access-password-for-awstats-in-kloxo To reprint this article, please indicate the source, thank you. _____________________________________
 
As you know, if you set your VPS environment by using Kloxo software [......]

Read More…

Kloxo 中如何给 awstats 设置访问密码

Posted by NosaLee in UNIX/Linux, Web Programming & Resources on 27-07-2012. Tags: ,

作者:牧山道人 原文地址:http://www.seeksunslowly.com/kloxo-中如何给-awstats-设置访问密码 转载请注明出处,谢谢。 _____________________________________
 
大家知道,如果用 Kloxo 套件搭建你的 VPS 环境,那么默认会装上 awstats 这个流量分析工具。
其默认 URL 为:http://your-domain.com/awstats/awstats.pl,并且没有密码,任何人都可以访问,任何人都可以看到你的流量情况,分析你的商业机密,这非常恐怖!
在网上查了一些设置 a[......]

Read More…

qmail/vpopmail 拒收不存在的账户邮件的方法(弹回邮件)

Posted by NosaLee in UNIX/Linux on 09-06-2012. Tags: ,

作者:牧山道人 原文地址:http://www.seeksunslowly.com/qmail-vpopmail-拒收不存在的账户邮件的方法-弹回邮件 转载请注明出处,谢谢。 _____________________________________
 
前段时间买了 Linode VPS,使用 Kloxo 套件配好了主机(可参见我也来分享一下最近耍Linode VPS + Kloxo 的经历文章)。
Kloxo 自带的邮件服务器是 qmail + vpopmail,几乎没有作额外配置,直接可用,挺好。
但是,有个问题很严重,一直困扰着本道:
自从用了 qmail + v[......]

Read More…

Linux SNMP OID’s for CPU,Memory and Disk Statistics

Posted by NosaLee in UNIX/Linux on 15-05-2012.

SNMP stands for Simple Network Management Protocol and consists of three key components: managed devices, agents, and network-management systems (NMSs). A managed device is a node that has an SNMP agent and resides on a managed network. These devices can be routers and access server, switches and br[......]

Read More…

安装配置Kloxo 管理系统

Posted by NosaLee in UNIX/Linux on 15-05-2012.

步骤:首先执行 /usr/sbin/sestatus 保证这个状态是disabled
然后执行#rpm -qa | grep sql 查询是否安装了mysql
然后如果未安装mysql ,那么执行下面的:
# su - root
# yum install -y wget
# wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh
# sh ./kloxo-installer.sh –type=master
 
安装后的操作:
1、必要的更新和清理
yum install[......]

Read More…

安装配置Whmcs

Posted by NosaLee in UNIX/Linux on 15-05-2012.

1、在Kloxo面板,解压后修改文件名,修改configuration.php.new 为 configuration.php
2.、建立一个数据库。记录相关信息,方面下面使用。在kloxo后台主页的domain栏里的mysql databases
3、修改文件及文件夹权限。可以直接在Kloxo面板选择文件或文件夹直接修改权限,也可以使用终端cd 到所在目录,执行
chmod 777 configuration.php
chmod 777 attachments
chmod 777 downloads
chmod 777 templates_c
4、然后打开http://www.yourdom[......]

Read More…

Dropbear 安装和配置

Posted by NosaLee in UNIX/Linux on 15-05-2012.

一、Dropbear 安装和配置
安装之前需要做两件事情,
一是修改openssh 的端口
vi /etc/ssh/sshd_config
前面几行有这样的:
Port 19837
#Protocol 2,1
保存后,重启:
service sshd restart
二是安装必需包:
yum install zlib* gcc make
(编辑 /etc/yum/pluginconf.d/fastestmirror.conf
将enabled=1修改为enabled=0,禁用该功能就可以了。)
接下来下载安装dropbear最新版:
wget http://matt.ucc.asn.au/dr[......]

Read More…

在dropbear的ssh服务器下开设最低权限的ssh帐号

Posted by NosaLee in UNIX/Linux on 15-05-2012.

一个ssh连接,在sshd(openssh)下,要开两个进程,大概好几m的内存。
但在dropbear下,一个ssh连接只需要一个进程,内存占用大概600k。
而且根据个人感观,dropbear登录要快一点,很多嵌入设备也采用的是dropbear。
如果你是想开ssh帐号出售或者给朋友用,显然dropbear更节省内存,也更划算,因为同时连接的数量多,也不会占用太多内存而影响vps正常运行。
但如果vps上的ssh服务器不是sshd(openssh),而是dropbear的话,这样设置是不能成功的。
不信你去淘宝买ssh帐号,都是用openssh做的ssh服务器。
问题出在哪里?
问题在/et[......]

Read More…