部署环境

centos 6.5 x64 mini

导入第三方软件源

rpm -Uvh http://mirrors.ispros.com.bd/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

安装依赖包

yum install -y python python-pip gcc python-devel setuptool python-pam openssl openssl-devel wget make gcc-c++ patch pam_radius dtach pyopenssl

使用pip安装软件

pip install tornado kerberos

安装tornado

https://github.com/downloads/liftoff/GateOne/tornado-2.4-1.noarch.rpm (下载时可能提示SSL证书错误,手动下载后安装即可)
rpm -ivh tornado-2.4-1.noarch.rpm

安装Imaging

wget http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
tar -zxvf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
python setup.py install

安装ordereddict

https://pypi.python.org/packages/source/o/ordereddict/ordereddict-1.1.tar.gz
tar -zxvf ordereddict-1.1.tar.gz
cd ordereddict-1.1
python setup.py install

安装gateone

https://github.com/downloads/liftoff/GateOne/gateone-1.1-1.noarch.rpm
rpm -ivh gateone-1.1-1.noarch.rpm

配置

运行gateone: /opt/gateone/gateone.py ctrl+c 关闭gateone进程
首次运行gateone 会在/opt/gateone 下生成 server.conf 配置文件
修改server.conf
session_timeout = “1d”
origins = "http://localhost;https://localhost;http://127.0.0.1;https://127.0.0.1” 后面加上 https://本机ip地址

访问

https://ip

2 个评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据