gate one_开源堡垒机GateOne的安装、配

编辑: admin           2017-16-01         

    逆火下载站软件教程是编辑精选的关于gate one的教程,包括出国旅行必会英语对话的相关软件教程,通过对本教程的学习能够对您关于gate one方面的相关知识能够有所帮助。

    GateOne简介

    GateOne是一款基于HTML5的开源终端模拟器/SSH客户端,同时内置强大的插件功能。它自带的插件使其成为一款令人惊艳的SSH客户端,但是,它可以用于运行任何终端应用。用户可以将GateOne嵌入其他应用程序从而提供各类终端访问界面,它也支持各类基于Web的管理界面……后面的大家自己看吧~~

    因为内部临时需要这么一套系统,所以搜搜查查,搞定了系统部署,使用pam认证的配置,做了个简单的管理界面。

    GateOne部署

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

    首先exports http_proxy和https_proxy,做好上网准备。

    其次查看下安装需求。

    这里有相关的包下载:

    yum install -y 

    yum update -y

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

    yum install -y 

    cd /usr/local/src

    git clone 

    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"

    这里提到是PyPAM,别安装错了。

    yum install git pam-devel pam PyPAM pam-devel

    git 

    make && make install

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

    密码生成用在线工具就行,记得选择Crypt方式:

    将生成的信息加入密码文件就行。

    vi /etc/gateone/passwd

    [Go]

    cry:Wk463N25YHOqs

    [Esc]

    [:wq] 

    关于GateOne中Log的管理

    时间比较紧,查看GateOne的文档中也未发现有统一管理的配置。所以让新员工临时用Bootstrap+web.py写了个管理界面。


    与“gate one”的相关教程

    出国旅行必会英语对话

    出国旅行,必备的50句英语

    详细操作

    登机篇

    1.请问1号登机口在哪?

    Excuse me, where is boarding gate one? 

    2.请问航班CZ623(航班号)在哪换登机牌?

    Hi, where can I get the boarding pass for flight CZ623?

    3.我在何处可取得行李?

    Where can I get my baggage/luggage?

     

    4.这些是我私人使用的东西。

    These are for personal use

     

    5.旅游咨询中心在那里?

    Where is tourist information?

     

    6.是否可建议一间较为廉价的旅馆?

    Can you recommend an economical hotel?

     

    7.是否有机场巴士可到市区?

    Is there a bus to the city?

     

    8.是否有每晚花费在50美元以下的饭店?

    Is there a hotel that costs under 50 dollars a night?

     

    9.巴士站牌(出租车招呼站)在那里?

    Where is the bus stop(taxi stand)?

     

    10.是否可建议一家位于市中心的旅馆?

    Could you recommend a hotel in center city?

    住宿篇

    1.我要早上8:00设定电话叫醒。

    I would like to have a morning call at 8:00 in the morning.

     

    2.我要食物送到房间的服务。

    I'd like to order room service, please.

     

    3.我要单人房。

    I'd like a single room.

     

    4.我要两张床的房间。

    I'd like a double room.

     

    5.我要在702房多加一张床。

    I'd like an extra bed for room 702.

    6.退房的适合时间?

    What is the time for check-out?

     

    7.我想订房。

    I would like to book a room.

     

    8.我要订一间双人房从(日期)到(日期)

    I’d like to book a double room for 3 nights from ...(日期)..to(日期).

    9.双人床一晚多少呢?

    How much is a double room for one night?

     

    10.你的房间已经预定成功。

    Your booking is confirmed.

    11.有饭店的巴士在机场接送吗?

    Do you have a bus service to and from the airport?

     

    12.你可以带我到我的房间吗?

    Could you show me my room?

    13.紧急出口和楼梯在那里?

    Where is the emergency exit and staircase?

     

    14.床单很脏。

    The sheets are dirty.

     

    15.我房间没有热水。

    There's no hot water in my room.

    16.我会晚一点到达,请保留所预订的房间。

    I’m going to be arriving late, but please keep my reservation.

     

    17.我想要一间视野好(有阳台)的房间。

    I'd like a room with a nice view (a balcony).

     

    18.餐厅几点开始营业?

    When does the dining room open?

    19.早餐几点开始供应?

    When is breakfast served?

     

    20.是否可代为保管贵重物品?

    Could you keep my valuables?

     

    21.我要退房。

    I'd like to check out.

     

    22.请送给我一些冰块和水。

    Please bring me some ice and water.

     

    23.冷气(电视、灯)无法开启。

    The air-conditioner (TV、light) doesn't work.

     

    24.这附近有青年旅社吗?

    Is there a hostel around here?

    觅食篇

    1.你好,我们有2位。

    Hi, a table for two, please.

     

    2.我们想坐在靠窗的位子。

    We prefer to sit by the window.

     

    3.我可以坐这个位子吗?

    Can I take this seat?

     

    4.我可以要冰水吗?

    May I have some ice water?

     

    5.请给我菜单。

    May I have a menu?

     

    6.是否有中文菜单?

    Do you have a menu in chinese?

     

    7.这里最受欢迎的餐点是什么呢﹖

    What is the most popular dish here?

     

    8.不要辣椒

    Not spicy.

     

    9.可以再帮我加点水吗?

    Can I have some more water?

     

    9.买单

    Check, please?

    交通篇

     

    1.这里有从机场去市中心的巴士吗?

    Is there an airport bus to center city?

     

    2.巴士车站在哪里?

    Where is the bus stop?

     

    3.乘计程车到市中心需要多少钱?

    How much does it cost to take a taxi to center city?

     

    4.不用找钱了。

    Keep the change.

     

    5.请拉我去这个地址。

    Take me to this address, please.

     

    6.到市中心需要多长时间?

    How long does it take to go to center city?

     

    7.请停在这里。

    stop here, please.

     

    8.几点发车?

    What time is the departure?

     

    9.在哪里买票?

    Where can I get a ticket?

     

    10.我想到(地名),请问要多少钱?

    How much is it to (地名)?

    购物篇

    1.我可以试穿这个吗?

    May I try this on?

     

    2.这免税吗?

    Is this tax free?

     

    3.我可不可以用信用卡付帐(银联卡)?

    Can I pay by credit card(UnionPay)?

     

    4.太贵了,打个折吧?

    It’s too expensive. How about a discount?

     

    5.你能卖便宜一点吗?

    Can you come down a little bit?

     

    6.不能再便宜了吗?

    Is this your final price?

     

    7.我要大一点的。

    I’d like one size up.

     

    8.我要买这个。

    I’ll take this one.

     

    9.我要在哪里换钱?

    Where can I change money?

     

    10.收银台在哪里?

    Where is the cashier?

     

    11.哪里有自助取款机?

    Where is the ATM?

  •   4
  • 相关文章

    电脑教程:教你如何选择浏览器快速上网
    javac不是内部或外部命令
    kotlin能取代java吗?
    protel dxp 2004软件无法打开PCB文件(图也是用DXP2004画的)
    protel dxp使用教程详细解读【下篇】
    protel dxp使用教程详细解读【中篇】
    protel dxp使用教程详细解读【上篇】
    水星路由器设置密码_水星路由器怎么改密码 水星路由器
    打印机无法打印全部_打印机无法打印的原因与解决办法
    cf赤焰尼泊尔活动_cf跑男归来活动网址 cf跑男归
Copyright ©2009-2021 逆火网训All Rights Reserved.     滇ICP备2023009294号-57