科技生活動態:開源堡壘機GateOne的安裝配置筆記(詳細步驟)

導讀跟大家講解下有關開源堡壘機GateOne的安裝配置筆記(詳細步驟),相信小伙伴們對這個話題應該也很關注吧,現在就為小伙伴們說說開源堡壘機Gat

跟大家講解下有關開源堡壘機GateOne的安裝配置筆記(詳細步驟),相信小伙伴們對這個話題應該也很關注吧,現在就為小伙伴們說說開源堡壘機GateOne的安裝配置筆記(詳細步驟),小編也收集到了有關開源堡壘機GateOne的安裝配置筆記(詳細步驟)的相關資料,希望大家看到了會喜歡。

GateOne簡介

GateOne是一款基于HTML5的開源終端模擬器/SSH客戶端,同時內置強大的插件功能。它自帶的插件使其成為一款令人驚艷的SSH客戶端,但是,它可以用于運行任何終端應用。用戶可以將GateOne嵌入其他應用程序從而提供各類終端訪問界面,它也支持各類基于Web的管理界面……后面的大家自己看吧~~

因為內部臨時需要這么一套系統,所以搜搜查查,搞定了系統部署,使用pam認證的配置,做了個簡單的管理界面。

GateOne部署

系統初始化是使用CentOS 6.5 Mini x64版本 + 默認配置。

首先exports http_proxy和https_proxy,做好上網準備。

其次查看下安裝需求。

http://liftoff.github.io/GateOne/About/index.html#prerequisites

這里有相關的包下載:

https://github.com/liftoff/GateOne/downloads

yum install -y http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum update -y

yum install -y python-devel gcc dtach python-pip python-imaging python-kerberos

yum install -y https://github.com/downloads/liftoff/GateOne/tornado-2.4-1.noarch.rpm

cd /usr/local/src

git clone https://github.com/liftoff/GateOne.git

cd GateOne

python setup.py isntall

service gateone start

service gateone stop

GateOne配置

vi /etc/gateone/conf.d/10server.conf

origins = ["x.x.x.x"]

address ="x.x.x.x"

https_redirect = True

vi /etc/gateone/conf.d/20authentication.conf

auth ="pam"

pam_realm ="AccessGateway1"

pam_service ="gateone"

vi /etc/sysconfig/iptables

增加80和443端口

service iptables reload

nohup python gateone.py &

在Safari下無法使用,報錯如下:

The WebSocket connection was closed. Will attempt to reconnect every 5 seconds...

NOTE: Some web proxies do not work properly with WebSockets.

PC和Android中的Chrome正常。

vi /etc/pam.d/gateone

#%PAM-1.0

# Login using a htpasswd file

#@include common-sessionauth

required pam_pwdfile.so pwdfile=/etc/gateone/passwd

required pam_permit.so

auth ="pam"

pam_realm ="AccessGateway1"

pam_service ="gateone"

https://github.com/liftoff/GateOne/issues/118

這里提到是PyPAM,別安裝錯了。

yum install git pam-devel pam PyPAM pam-devel

git https://github.com/tiwe-de/libpam-pwdfile.git

make && make install

ln /lib/security/pam_pwdfile.so /lib64/security/pam_pwdfile.so

密碼生成用在線工具就行,記得選擇Crypt方式:http://tool.oschina.net/htpasswd

將生成的信息加入密碼文件就行。

vi /etc/gateone/passwd

[Go]

cry:Wk463N25YHOqs

[Esc]

[:wq]

關于GateOne中Log的管理

時間比較緊,查看GateOne的文檔中也未發現有統一管理的配置。所以讓新員工臨時用Bootstrap+web.py寫了個管理界面。

來源:卡飯網

免責聲明:本文由用戶上傳,如有侵權請聯系刪除!