Centos安装L2TP/IPSEC 与简单故障处理
- May 3, 2011
- Published in VPN
转贴自
http://zeddicus.com/a-key-installation-package-l2tp
这是 L2TP over IPSec Server 一键安装包的发布页,此安装包首发于 VPSYou.com
发行版 | 版本 | 兼容性 |
CentOS | 5.2 32/64bit | 测试通过 |
CentOS | 5.3 32/64bit | 测试通过 |
CentOS | 5.4 32/64bit | 测试通过 |
CentOS | 5.5 32/64bit | 测试通过 |
Ubuntu | 9.10 Karmic 32/64bit | 测试通过 |
Ubuntu | 10.04 Lucid 32/64bit | 测试通过 |
Debian | 5.0 Lenny 32/64bit | 测试通过 |
Fedora | 13 32/64bit | 测试通过 |
CentOS / Fedora:
Ubuntu / Debian:
备注:安装按提示操作,相关截图及细节请移驾至:http://www.vpsyou.com/l2tp-vpn 。
代码
-----------------------------------------------------------------------------------------------------------------
#!/bin/bash
if [ $(id -u) != "0" ]; then
printf "Error: You must be root to run this tool!\n"
exit 1
fi
clear
printf "
####################################################
# #
# This is a Shell-Based tool of l2tp installation #
# Version: 1.2 #
# Author: Zed Lau #
# Website: http://zeddicus.com #
# #
####################################################
"
vpsip=`hostname -i`
iprange="10.0.99"
echo "Please input IP-Range:"
read -p "(Default Range: 10.0.99):" iprange
if [ "$iprange" = "" ]; then
iprange="10.0.99"
fi
mypsk="vpsyou.com"
echo "Please input PSK:"
read -p "(Default PSK: vpsyou.com):" mypsk
if [ "$mypsk" = "" ]; then
mypsk="vpsyou.com"
fi
clear
get_char()
{
SAVEDSTTY=`stty -g`
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}
echo ""
echo "ServerIP:"
echo "$vpsip"
echo ""
echo "Server Local IP:"
echo "$iprange.1"
echo ""
echo "Client Remote IP Range:"
echo "$iprange.2-$iprange.254"
echo ""
echo "PSK:"
echo "$mypsk"
echo ""
echo "Press any key to start..."
char=`get_char`
clear
mknod /dev/random c 1 9
yum -y update
yum -y upgrade
yum install -y ppp iptables make gcc gmp-devel xmlto bison flex xmlto libpcap-devel lsof vim-enhanced
mkdir /ztmp
mkdir /ztmp/l2tp
cd /ztmp/l2tp
wget http://www.openswan.org/download/openswan-2.6.24.tar.gz
tar zxvf openswan-2.6.24.tar.gz
cd openswan-2.6.24
make programs install
rm -rf /etc/ipsec.conf
touch /etc/ipsec.conf
cat >>/etc/ipsec.conf<<EOF
config setup
nat_traversal=yes
virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
oe=off
protostack=netkey
conn L2TP-PSK-NAT
rightsubnet=vhost:%priv
also=L2TP-PSK-noNAT
conn L2TP-PSK-noNAT
authby=secret
pfs=no
auto=add
keyingtries=3
rekey=no
ikelifetime=8h
keylife=1h
type=transport
left=$vpsip
leftprotoport=17/1701
right=%any
rightprotoport=17/%any
EOF
cat >>/etc/ipsec.secrets<<EOF
$vpsip %any: PSK "$mypsk"
EOF
sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl.conf
sysctl -p
iptables --table nat --append POSTROUTING --jump MASQUERADE
for each in /proc/sys/net/ipv4/conf/*
do
echo 0 > $each/accept_redirects
echo 0 > $each/send_redirects
done
/etc/init.d/ipsec restart
ipsec verify
cd /ztmp/l2tp
wget http://mirror.zeddicus.com/sources/rp-l2tp-0.4.tar.gz
tar zxvf rp-l2tp-0.4.tar.gz
cd rp-l2tp-0.4
./configure
make
cp handlers/l2tp-control /usr/local/sbin/
mkdir /var/run/xl2tpd/
ln -s /usr/local/sbin/l2tp-control /var/run/xl2tpd/l2tp-control
cd /ztmp/l2tp
wget http://mirror.zeddicus.com/sources/xl2tpd-1.2.4.tar.gz
tar zxvf xl2tpd-1.2.4.tar.gz
cd xl2tpd-1.2.4
make install
mkdir /etc/xl2tpd
rm -rf /etc/xl2tpd/xl2tpd.conf
touch /etc/xl2tpd/xl2tpd.conf
cat >>/etc/xl2tpd/xl2tpd.conf<<EOF
[global]
ipsec saref = yes
[lns default]
ip range = $iprange.2-$iprange.254
local ip = $iprange.1
refuse chap = yes
refuse pap = yes
require authentication = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
EOF
rm -rf /etc/ppp/options.xl2tpd
touch /etc/ppp/options.xl2tpd
cat >>/etc/ppp/options.xl2tpd<<EOF
require-mschap-v2
ms-dns 8.8.8.8
ms-dns 8.8.4.4
asyncmap 0
auth
crtscts
lock
hide-password
modem
debug
name l2tpd
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
EOF
cat >>/etc/ppp/chap-secrets<<EOF
test l2tpd test123 *
EOF
touch /usr/bin/zl2tpset
echo "#/bin/bash" >>/usr/bin/zl2tpset
echo "for each in /proc/sys/net/ipv4/conf/*" >>/usr/bin/zl2tpset
echo "do" >>/usr/bin/zl2tpset
echo "echo 0 > \$each/accept_redirects" >>/usr/bin/zl2tpset
echo "echo 0 > \$each/send_redirects" >>/usr/bin/zl2tpset
echo "done" >>/usr/bin/zl2tpset
chmod +x /usr/bin/zl2tpset
iptables --table nat --append POSTROUTING --jump MASQUERADE
zl2tpset
xl2tpd
cat >>/etc/rc.local<<EOF
iptables --table nat --append POSTROUTING --jump MASQUERADE
/etc/init.d/ipsec restart
/usr/bin/zl2tpset
/usr/local/sbin/xl2tpd
EOF
clear
ipsec verify
printf "
####################################################
# #
# This is a Shell-Based tool of l2tp installation #
# Version: 1.2 #
# Author: Zed Lau #
# Website: http://zeddicus.com #
# #
####################################################
if there are no [FAILED] above, then you can
connect to your L2TP VPN Server with the default
user/pass below:
ServerIP:$vpsip
username:test
password:test123
PSK:$mypsk
"
---------------------------------------------------------------------------------------------------------------
安装 PPTP 需要 MPPE 和较高版本的 ppp ( > 2.4.3 ) 支持,不过 CentOS 5.0/RHEL 5 的 2.6.18 内核已经集成了 MPPE 和高版本的 ppp 。因此可以跳过安装配置 MPPE 和 ppp 的过程直接安装 PPTP。
如果需要检查 MPPE 是否存在可以使用以下命令:
shell> modprobe ppp-compress-18 && echo ‘MPPE found !’
1 2 3 4 | #确保安装了ppp 和 iptables yum install -y ppp iptables wget http: //acelnmp .googlecode.com /files/pptpd-1 .3.4-1.rhel5.1.i386.rpm rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm |
Notice:
- 官网http://poptop.sourceforge.net/已经删掉了1.3.4版的pptpd的RPM,所以只好在这个地方下载
- 判断CentOS系统是32位还是64位?
getconf LONG_BIT
①.配置文件/etc/ppp/options.pptpd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | mv /etc/ppp/options .pptpd /etc/ppp/options .pptpd.bak cat >> /etc/ppp/options .pptpd<<EOF name pptpd refuse-pap refuse-chap refuse-mschap require-mschap-v2 require-mppe-128 proxyarp lock nobsdcomp novj novjccomp nologfd idle 2592000 ms-dns 8.8.8.8 ms-dns 8.8.4.4 EOF |
name pptpd : pptpd server 的名称。
refuse-pap : 拒绝 pap 身份验证模式。
refuse-chap : 拒绝 chap 身份验证模式。
refuse-mschap : 拒绝 mschap 身份验证模式。
require-mschap-v2 : 在端点进行连接握手时需要使用微软的 mschap-v2 进行自身验证。
require-mppe-128 : MPPE 模块使用 128 位加密。
ms-dns 8.8.8.8
ms-dns 8.8.4.4 : ppp 为 Windows 客户端提供 DNS 服务器 IP 地址,第一个 ms-dns 为 DNS Master,第二个为 DNS Slave。
proxyarp : 建立 ARP 代理键值。
debug : 开启调试模式,相关信息同样记录在 /var/logs/message 中。
lock : 锁定客户端 PTY 设备文件。
nobsdcomp : 禁用 BSD 压缩模式。
novj
novjccomp : 禁用 Van Jacobson 压缩模式。
nologfd : 禁止将错误信息记录到标准错误输出设备(stderr)。
②.配置文件/etc/ppp/chap-secrets
1 2 | mv /etc/ppp/chap-secrets /etc/ppp/chap-secrets .bak vi /etc/ppp/chap-secrets |
输入以下内容
1 2 3 | # Secrets for authentication using CHAP # client server secret IP addresses myusername pptpd mypassword * |
③.配置文件/etc/pptpd.conf
1 2 3 4 5 6 7 8 | mv /etc/pptpd .conf /etc/pptpd .conf.bak cat >> /etc/pptpd .conf<<EOF #pptpd.conf option /etc/ppp/options .pptpd logwtmp localip 10.82.18.1 remoteip 10.82.18.2-254 EOF |
注:为拨入VPN的用户动态分配10.82.18.2~10.82.18.254之间的IP
④.配置文件/etc/sysctl.conf(修改内核转发参数)
如上一篇博文所述,可以sysctl -w net.ipv4.ip_forward=1
,也可以
1 2 | sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl .conf sysctl -p |
直接替换/etc/sysctl.conf
的内容。这样写的好处在于不必在启动脚本/etc/rc.local
中添加sysctl -w net.ipv4.ip_forward=1
,一劳永逸。
这部分部署方法已经有现成的一键脚本,怕麻烦的用户可以直接拿去跑。但是本着不求甚解的原则还是一步步列出。
L2TP (Layer 2 Tunneling Protocol) 是VPN隧道协议的一种,它使用UDP的1701端口进行通信。L2TP本身并没有任何加密,但是我们可以使用IPSec对L2TP包进行加密。更多关于L2TP的理论知识可以访问这个Wiki
因为联通和移动陆续封掉了 PPTP 数据包,所以L2TP是移动设备VPN几乎唯一选择(OpenVPN配置稍显麻烦)。
在Linux环境下,有很多方法配置L2TP;一个选项是采用openl2tpd
,但是他对老版本的ppp隧道支持不好。更重要的是在CentOS环境下,它要求内核需要patch,我想没多少人希望没事给内核patch吧。
基于这个原因,本文选择了xl2tpd & rp-l2tpd,xl2tpd 是由 Xelerance Corporation 维护的l2tpd应用。但是xl2tpd 没有l2tp-control,需要从rp-l2tp这个里面提取。
经典的2.6.24这个版本和最新的2.6.32都可以。
1 2 3 4 5 6 | #安装依赖 yum install make gcc gmp-devel bison flex wget http: //www .openswan.org /download/openswan-2 .6.32. tar .gz tar zxvf openswan-2.6.32. tar .gz cd openswan-2.6.32 make programs install |
①.修改配置文件/etc/ipsec.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | mv /etc/ipsec .conf /etc/ipsec .conf.bak cat >> /etc/ipsec .conf<<EOF #ipsec.conf version 2.0 config setup nat_traversal= yes virtual_private=%v4:10.0.0.0 /8 ,%v4:192.168.0.0 /16 ,%v4:172.16.0.0 /12 oe=off protostack=netkey conn L2TP-PSK-NAT rightsubnet=vhost:%priv also=L2TP-PSK-noNAT conn L2TP-PSK-noNAT authby=secret pfs=no auto=add keyingtries=3 rekey=no ikelifetime=8h keylife=1h type =transport left=YOUR.SERVER.IP.ADDRESS leftprotoport=17 /1701 right=%any rightprotoport=17/%any EOF |
②.设置 PSK
1 2 3 4 | rm -r /etc/ipsec .secrets cat >> /etc/ipsec .secrets<<EOF YOUR.SERVER.IP.ADDRESS %any: PSK "YourSharedSecret" EOF |
③.修改包转发设置
1 2 3 4 5 6 7 8 | for each in /proc/sys/net/ipv4/conf/ * do echo 0 > $each /accept_redirects echo 0 > $each /send_redirects done #若PPTP部分设置过,则下面不必在设置 sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl .conf sysctl -p |
重新启动 ipsec,并测试运行效果
1 2 | service ipsec restart ipsec verify |
若无FAIL即为正常。
这个时候 ipsec 部分完成了,可以测试一下,新建一个 ipsec+l2tp 的连接,填好服务器地址和 SharedKey,点连接。在服务端
1 2 3 | tail -f /var/log/secure #若出现以下内容,这代表IPSec一切正常 #pppd[3624]: IPSec connection established |
①.下载编译安装
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #安装依赖 yum install libpcap-devel ppp #rp-l2tp wget http: //downloads .sourceforge.net /project/rp-l2tp/rp-l2tp/0 .4 /rp-l2tp-0 .4. tar .gz tar zxvf rp-l2tp-0.4. tar .gz cd rp-l2tp-0.4 . /configure make cp handlers /l2tp-control /usr/local/sbin/ mkdir /var/run/xl2tpd/ ln -s /usr/local/sbin/l2tp-control /var/run/xl2tpd/l2tp-control #xl2tpd cd .. wget http: //ywko .googlecode.com /files/xl2tpd-1 .2.4. tar .gz tar zxvf xl2tpd-1.2.4. tar .gz cd xl2tpd-1.2.4 make install |
官网的xl2tpd已经404,所以…
②.写配置文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | mkdir /etc/xl2tpd rm -f /etc/xl2tpd/xl2tpd .conf cat >> /etc/xl2tpd/xl2tpd .conf<<EOF #/etc/xl2tpd/xl2tpd.conf [global] ipsec saref = yes [lns default] ip range = 10.82.88.2-10.82.88.254 local ip = 10.82.88.1 refuse chap = yes refuse pap = yes require authentication = yes ppp debug = yes pppoptfile = /etc/ppp/options .xl2tpd length bit = yes EOF rm -f /etc/ppp/options .xl2tpd cat >> /etc/ppp/options .xl2tpd<<EOF #/etc/ppp/options.xl2tpd require-mschap-v2 ms-dns 8.8.8.8 ms-dns 8.8.4.4 asyncmap 0 auth crtscts lock hide-password modem debug name l2tpd proxyarp lcp- echo -interval 30 lcp- echo -failure 4 EOF |
③.设置密码/etc/ppp/chap-secrets
输入以下内容
1 2 3 | # Secrets for authentication using CHAP # client server secret IP addresses myusername l2tpd mypassword * |
1 2 3 4 5 6 | service iptables start #可以考虑 #iptables -t nat -A POSTROUTING -o eth0 -s 10.82.18.0/24 -j MASQUERADE #iptables -t nat -A POSTROUTING -o eth0 -s 10.82.88.0/24 -j MASQUERADE #考虑到之后还要配置L2TP,直接一下倒显得更加简便 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
OpenVZ用户将eth0换成venet0即可。
1 2 3 4 | service pptpd start ipsec verify service ipsec restart xl2tpd |
1 2 3 4 5 6 7 8 | iptables --table nat --append POSTROUTING --jump MASQUERADE for each in /proc/sys/net/ipv4/conf/ * do echo 0 > $each /accept_redirects echo 0 > $each /send_redirects done /etc/init .d /ipsec restart /usr/local/sbin/xl2tpd |
参考资料:
http://space.itpub.net/665930/viewspace-682794
9、设置开机自动运行服务。我们最后一步是将pptp和iptables设置为开机自动运行,这样就不需要每次重启服务器后手动启动服务了。当然你不需要自动启动服务的话可以忽略这一步。输入指令: #chkconfig pptpd on
PPTP 全称为 Point to Point Tunneling Protocol — 点到点隧道协议,是VPN协议中的一种。
安装相关软件
配置文件/etc/ppp/options.pptpd
输入以下内容:
配置文件/etc/ppp/chap-secrets
输入以下内容
用户名vi,密码viyin.net ,*表示任意ip
pptpd要和/etc/ppp/options.pptpd中的name 部分的pptpd匹配
配置文件/etc/pptpd.conf
输入以下内容:
为拨入VPN的用户动态分配IP
打开防火墙端口
1723端口和47端口打开,打开GRE协议
配置文件/etc/sysctl.conf
vi /etc/sysctl.conf
修改以下内容:
net.ipv4.ip_forward = 1
开启NAT转发功能
保存、退出后执行:
/sbin/sysctl -p
启动PPTP VPN 服务器端:
/sbin/service pptpd start
检查PPP是否支持MPPE,用以下命令检查PPP是否支持MPPE:
strings ‘/usr/sbin/pppd’ |grep -i mppe | wc –lines
果以上命令输出为“0”则表示不支持;输出为“30”或更大的数字就表示支持。
注意:
如果一直提示619或者800错误,查看日志
[root@s15428862 ~]# /sbin/sysctl -p
[root@s15428862 ~]# /etc/init.d/ipsec stop
[root@s15428862 ~]# iptables --table nat --append POSTROUTING --jump MASQUERADE
[root@s15428862 ~]# /etc/init.d/ipsec start
[root@s15428862 ~]# /sbin/sysctl -p
[root@s15428862 ~]# /etc/init.d/ipsec stop
[root@s15428862 ~]# iptables --table nat --append POSTROUTING --jump MASQUERADE
[root@s15428862 ~]# /etc/init.d/ipsec start
problem
806 throw new Kohana_Exception('The requested :resource:, :file:, could not be found', array(':resource:' => __($directory), ':file:' =>$filename));
solve
in the end of .htaccec file
add
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^index.php/(.*) $1 [QSA,R,L]
---------------------------重启后运行-------------------------------------------
su ts
cd /home/ts/teamspeak3-server_linux-amd64
./ts3server_startscript.sh start
-------------------------新安装------------------------------------------------
[root@xxxxxxxxx teamspeak3-server_linux-amd64]# useradd -d /home/ts ts
[root@xxxxxxxxx teamspeak3-server_linux-amd64]# su ts
[ts@xxxxxxxxx home]$ cd /home/ts
[ts@xxxxxxxxx ~]$ wget http://teamspeak.gameserver.gamed.de/ts3/releases/rc1/teamspeak3-server_linux-amd64-3.0.0-rc1.tar.gz
--2011-05-01 02:11:56-- http://teamspeak.gameserver.gamed.de/ts3/releases/beta-30/teamspeak3-server_linux-amd64-3.0.0-beta30.tar.gz
Resolving teamspeak.gameserver.gamed.de... 85.114.136.237
Connecting to teamspeak.gameserver.gamed.de|85.114.136.237|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3671039 (3.5M) [application/octet-stream]
Saving to: `teamspeak3-server_linux-amd64-3.0.0-beta30.tar.gz'
100%[=============================================================>] 3,671,039 5.10M/s in 0.7s
2011-05-01 02:11:57 (5.10 MB/s) - `teamspeak3-server_linux-amd64-3.0.0-beta30.tar.gz' saved [3671039/3671039]
[ts@xxxxxxxxx ~]$ tar -zxvf teamspeak3-server_linux-amd64-3.0.0-rc1.tar.gz
teamspeak3-server_linux-amd64/
teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh
teamspeak3-server_linux-amd64/LICENSE
teamspeak3-server_linux-amd64/CHANGELOG
teamspeak3-server_linux-amd64/ts3server_linux_amd64
teamspeak3-server_linux-amd64/ts3server_startscript.sh
teamspeak3-server_linux-amd64/sql/
teamspeak3-server_linux-amd64/sql/server_clear_traffic_stats.sql
teamspeak3-server_linux-amd64/sql/token_get_by_key.sql
teamspeak3-server_linux-amd64/sql/perm_insert.sql
teamspeak3-server_linux-amd64/sql/message_insert.sql
teamspeak3-server_linux-amd64/sql/perm_update_get_groups.sql
teamspeak3-server_linux-amd64/sql/server_update_traffic_stats.sql
teamspeak3-server_linux-amd64/sql/message_list_by_clientid.sql
teamspeak3-server_linux-amd64/sql/update_15.sql
teamspeak3-server_linux-amd64/sql/client_count_by_serverid.sql
teamspeak3-server_linux-amd64/sql/perm_get_by_serverid.sql
teamspeak3-server_linux-amd64/sql/server_delete_get_qa_clients.sql
teamspeak3-server_linux-amd64/sql/update_database_version.sql
teamspeak3-server_linux-amd64/sql/ban_list.sql
teamspeak3-server_linux-amd64/sql/defaults.sql
teamspeak3-server_linux-amd64/sql/properties_list_by_id.sql
teamspeak3-server_linux-amd64/sql/custom_insert.sql
teamspeak3-server_linux-amd64/sql/properties_delete_by_string_id.sql
teamspeak3-server_linux-amd64/sql/channel_delete.sql
teamspeak3-server_linux-amd64/sql/server_snapshot_delete_failed.sql
teamspeak3-server_linux-amd64/sql/bindings_insert.sql
teamspeak3-server_linux-amd64/sql/create_sqlite/
teamspeak3-server_linux-amd64/sql/create_sqlite/drop_tables.sql
teamspeak3-server_linux-amd64/sql/create_sqlite/create_tables.sql
teamspeak3-server_linux-amd64/sql/group_id_get_by_name.sql
teamspeak3-server_linux-amd64/sql/perm_delete_by_serverid.sql
teamspeak3-server_linux-amd64/sql/log_insert.sql
teamspeak3-server_linux-amd64/sql/channel_update_parentid.sql
teamspeak3-server_linux-amd64/sql/client_get_by_serverid_limit.sql
teamspeak3-server_linux-amd64/sql/properties_delete_by_id.sql
teamspeak3-server_linux-amd64/sql/ban_insert.sql
teamspeak3-server_linux-amd64/sql/custom_delete_by_clientid.sql
teamspeak3-server_linux-amd64/sql/custom_get_by_ident.sql
teamspeak3-server_linux-amd64/sql/server_snapshot_delete.sql
teamspeak3-server_linux-amd64/sql/custom_get_by_id.sql
teamspeak3-server_linux-amd64/sql/groups_get.sql
teamspeak3-server_linux-amd64/sql/channel_server_list.sql
teamspeak3-server_linux-amd64/sql/message_delete.sql
teamspeak3-server_linux-amd64/sql/log_delete.sql
teamspeak3-server_linux-amd64/sql/update_16.sql
teamspeak3-server_linux-amd64/sql/client_get_by_uid.sql
teamspeak3-server_linux-amd64/sql/token_list.sql
teamspeak3-server_linux-amd64/sql/group_member_detail_get_by_groupid.sql
teamspeak3-server_linux-amd64/sql/channel_insert.sql
teamspeak3-server_linux-amd64/sql/group_rename.sql
teamspeak3-server_linux-amd64/sql/properties_insert_by_string_id.sql
teamspeak3-server_linux-amd64/sql/client_get_by_name_or_uid.sql
teamspeak3-server_linux-amd64/sql/client_insert.sql
teamspeak3-server_linux-amd64/sql/message_update_flag.sql
teamspeak3-server_linux-amd64/sql/client_delete.sql
teamspeak3-server_linux-amd64/sql/client_get.sql
teamspeak3-server_linux-amd64/sql/message_get_unread_by_clientid.sql
teamspeak3-server_linux-amd64/sql/info_delete.sql
teamspeak3-server_linux-amd64/sql/client_get_by_id.sql
teamspeak3-server_linux-amd64/sql/properties_insert_by_id.sql
teamspeak3-server_linux-amd64/sql/group_member_delete_by_groupid.sql
teamspeak3-server_linux-amd64/sql/message_get_by_clientid.sql
teamspeak3-server_linux-amd64/sql/complain_delete.sql
teamspeak3-server_linux-amd64/sql/token_insert.sql
teamspeak3-server_linux-amd64/sql/properties_list_by_string_id.sql
teamspeak3-server_linux-amd64/sql/update_13.sql
teamspeak3-server_linux-amd64/sql/client_clear_traffic_stats.sql
teamspeak3-server_linux-amd64/sql/client_delete_prune.sql
teamspeak3-server_linux-amd64/sql/group_delete.sql
teamspeak3-server_linux-amd64/sql/groups_get_by_serverid_type.sql
teamspeak3-server_linux-amd64/sql/complain_delete_all.sql
teamspeak3-server_linux-amd64/sql/server_list.sql
teamspeak3-server_linux-amd64/sql/server_insert.sql
teamspeak3-server_linux-amd64/sql/clientid_get_by_name_pw_serverid.sql
teamspeak3-server_linux-amd64/sql/server_update_autostart.sql
teamspeak3-server_linux-amd64/sql/server_get_byid.sql
teamspeak3-server_linux-amd64/sql/info_get_by_ident.sql
teamspeak3-server_linux-amd64/sql/log_list_comparator_ordered.sql
teamspeak3-server_linux-amd64/sql/group_member_get.sql
teamspeak3-server_linux-amd64/sql/ban_delete.sql
teamspeak3-server_linux-amd64/sql/client_update_traffic_stats.sql
teamspeak3-server_linux-amd64/sql/update_14.sql
teamspeak3-server_linux-amd64/sql/clientid_get_by_name_pw.sql
teamspeak3-server_linux-amd64/sql/token_delete_by_key.sql
teamspeak3-server_linux-amd64/sql/log_list.sql
teamspeak3-server_linux-amd64/sql/client_update_login_info.sql
teamspeak3-server_linux-amd64/sql/group_insert.sql
teamspeak3-server_linux-amd64/sql/group_members_get_by_serverid.sql
teamspeak3-server_linux-amd64/sql/server_update_port.sql
teamspeak3-server_linux-amd64/sql/server_update_machine_id.sql
teamspeak3-server_linux-amd64/sql/complain_insert.sql
teamspeak3-server_linux-amd64/sql/groups_get_by_serverid.sql
teamspeak3-server_linux-amd64/sql/info_insert.sql
teamspeak3-server_linux-amd64/sql/server_get_byport.sql
teamspeak3-server_linux-amd64/sql/client_update_stats.sql
teamspeak3-server_linux-amd64/sql/group_member_delete.sql
teamspeak3-server_linux-amd64/sql/client_update_name.sql
teamspeak3-server_linux-amd64/sql/server_delete.sql
teamspeak3-server_linux-amd64/sql/binding_delete.sql
teamspeak3-server_linux-amd64/sql/client_get_by_serverid.sql
teamspeak3-server_linux-amd64/sql/update_12.sql
teamspeak3-server_linux-amd64/sql/perm_get_by_id.sql
teamspeak3-server_linux-amd64/sql/perm_delete_by_permid.sql
teamspeak3-server_linux-amd64/sql/group_member_insert.sql
teamspeak3-server_linux-amd64/sql/complain_get_by_serverid.sql
teamspeak3-server_linux-amd64/sql/group_members_get_by_id.sql
teamspeak3-server_linux-amd64/sql/perm_delete_by_groupid.sql
teamspeak3-server_linux-amd64/sql/bindings_list.sql
teamspeak3-server_linux-amd64/sql/create_mysql/
teamspeak3-server_linux-amd64/sql/create_mysql/drop_tables.sql
teamspeak3-server_linux-amd64/sql/create_mysql/create_tables.sql
teamspeak3-server_linux-amd64/sql/group_members_get_by_groupid.sql
teamspeak3-server_linux-amd64/sql/log_list_comparator.sql
teamspeak3-server_linux-amd64/doc/
teamspeak3-server_linux-amd64/doc/ts3_serverquery_manual.pdf
teamspeak3-server_linux-amd64/doc/permissiondoc.txt
teamspeak3-server_linux-amd64/doc/server_quickstart.txt
teamspeak3-server_linux-amd64/doc/token_guide.txt
teamspeak3-server_linux-amd64/doc/server_upgrade.txt
teamspeak3-server_linux-amd64/serverquerydocs/
teamspeak3-server_linux-amd64/serverquerydocs/serverdelete.txt
teamspeak3-server_linux-amd64/serverquerydocs/sendtextmessage.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientfind.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientdbfind.txt
teamspeak3-server_linux-amd64/serverquerydocs/permfind.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientkick.txt
teamspeak3-server_linux-amd64/serverquerydocs/serveridgetbyport.txt
teamspeak3-server_linux-amd64/serverquerydocs/privilegekeyadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/permidgetbyname.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergrouppermlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelfind.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupclientlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/logout.txt
teamspeak3-server_linux-amd64/serverquerydocs/servercreate.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftdeletefile.txt
teamspeak3-server_linux-amd64/serverquerydocs/whoami.txt
teamspeak3-server_linux-amd64/serverquerydocs/serversnapshotdeploy.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelpermlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/help.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergrouprename.txt
teamspeak3-server_linux-amd64/serverquerydocs/tokenuse.txt
teamspeak3-server_linux-amd64/serverquerydocs/bandelall.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergrouplist.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientaddperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftinitupload.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelcreate.txt
teamspeak3-server_linux-amd64/serverquerydocs/privilegekeyuse.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientmove.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgrouplist.txt
teamspeak3-server_linux-amd64/serverquerydocs/messageadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/serverlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/messageget.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupdelclient.txt
teamspeak3-server_linux-amd64/serverquerydocs/login.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftgetfileinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/tokendelete.txt
teamspeak3-server_linux-amd64/serverquerydocs/permissionlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/servernotifyunregister.txt
teamspeak3-server_linux-amd64/serverquerydocs/serversnapshotcreate.txt
teamspeak3-server_linux-amd64/serverquerydocs/channeladdperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupdel.txt
teamspeak3-server_linux-amd64/serverquerydocs/use.txt
teamspeak3-server_linux-amd64/serverquerydocs/banadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/serverstart.txt
teamspeak3-server_linux-amd64/serverquerydocs/complainlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/serverstop.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupdelperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/hostinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/privilegekeylist.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientdbinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/banlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/channeldelperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupaddclient.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientdelperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupcopy.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientgetnamefromdbid.txt
teamspeak3-server_linux-amd64/serverquerydocs/channeldelete.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelclientpermlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgroupaddperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/customsearch.txt
teamspeak3-server_linux-amd64/serverquerydocs/complaindel.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientgetids.txt
teamspeak3-server_linux-amd64/serverquerydocs/tokenadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/bindinglist.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientupdate.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftrenamefile.txt
teamspeak3-server_linux-amd64/serverquerydocs/complainadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgrouppermlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/tokenlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientpoke.txt
teamspeak3-server_linux-amd64/serverquerydocs/logview.txt
teamspeak3-server_linux-amd64/serverquerydocs/serverinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/serveredit.txt
teamspeak3-server_linux-amd64/serverquerydocs/bandel.txt
teamspeak3-server_linux-amd64/serverquerydocs/channellist.txt
teamspeak3-server_linux-amd64/serverquerydocs/logadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftgetfilelist.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftstop.txt
teamspeak3-server_linux-amd64/serverquerydocs/banclient.txt
teamspeak3-server_linux-amd64/serverquerydocs/serverprocessstop.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgroupadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientsetserverquerylogin.txt
teamspeak3-server_linux-amd64/serverquerydocs/messagedel.txt
teamspeak3-server_linux-amd64/serverquerydocs/privilegekeydelete.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupbyclientid.txt
teamspeak3-server_linux-amd64/serverquerydocs/instanceinfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgrouprename.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientedit.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgroupcopy.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupadd.txt
teamspeak3-server_linux-amd64/serverquerydocs/setclientchannelgroup.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientpermlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupsbyclientid.txt
teamspeak3-server_linux-amd64/serverquerydocs/quit.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientgetnamefromuid.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientdbedit.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientgetdbidfromuid.txt
teamspeak3-server_linux-amd64/serverquerydocs/version.txt
teamspeak3-server_linux-amd64/serverquerydocs/messageupdateflag.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientdbdelete.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelmove.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftcreatedir.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgroupdel.txt
teamspeak3-server_linux-amd64/serverquerydocs/channeledit.txt
teamspeak3-server_linux-amd64/serverquerydocs/serverrequestconnectioninfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgroupdelperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelclientdelperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/custominfo.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelclientaddperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/messagelist.txt
teamspeak3-server_linux-amd64/serverquerydocs/clientdblist.txt
teamspeak3-server_linux-amd64/serverquerydocs/instanceedit.txt
teamspeak3-server_linux-amd64/serverquerydocs/servernotifyregister.txt
teamspeak3-server_linux-amd64/serverquerydocs/permreset.txt
teamspeak3-server_linux-amd64/serverquerydocs/channelgroupclientlist.txt
teamspeak3-server_linux-amd64/serverquerydocs/permget.txt
teamspeak3-server_linux-amd64/serverquerydocs/gm.txt
teamspeak3-server_linux-amd64/serverquerydocs/servergroupaddperm.txt
teamspeak3-server_linux-amd64/serverquerydocs/permoverview.txt
teamspeak3-server_linux-amd64/serverquerydocs/ftinitdownload.txt
teamspeak3-server_linux-amd64/serverquerydocs/complaindelall.txt
teamspeak3-server_linux-amd64/libts3db_sqlite3.so
teamspeak3-server_linux-amd64/libts3db_mysql.so
[ts@xxxxxxxxx ~]$ cd teamspeak3-server_linux-amd64
[ts@xxxxxxxxx teamspeak3-server_linux-amd64]$ wget http://www.alamise.com/images/licensekey.dat
[ts@xxxxxxxxx teamspeak3-server_linux-amd64]$ ./ts3server_startscript.sh start
Starting the TeamSpeak 3 server
TeamSpeak 3 server started, for details please view the log file
[ts@vps10880 teamspeak3-server_linux-amd64]$
------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
Server Query Admin Acccount created
loginname= "serveradmin", password= "xxxxxxxxx"
------------------------------------------------------------------
------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
ServerAdmin privilege key created, please use it to gain
serveradmin rights for your virtualserver. please
also check the doc/privilegekey_guide.txt for details.
token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
------------------------------------------------------------------
get a valide license key from
http://npl.tritoncia.com/ts3npl.php
when finished you will be email the key
copy it to defaut directory
restart serveur from putty
get the token
from clien permission - entre private key
all done now you are admin
find /www_xxx_net -name "*.php"
find /www_xxx_net -name "*.php"
find /www_xxx_net -name "*.asp" | xargs rm -rf | xargs rm -rf