コンフィグレーションガイド Vol.1

[目次][索引][前へ][次へ]


8.1.8 ログインバナーの設定

コンフィグレーションコマンドbannerでログインバナーの設定を行うと,consoleから,またはリモート運用端末のtelnetやftpクライアントなどから本装置に接続したとき,ログインする前やログインしたあとにメッセージを表示できます。

[設定のポイント]
リモート運用端末のtelnetやftpクライアントからネットワークを介して本装置のtelnetやftpサーバへ接続するとき,ログインする前に次のメッセージを表示させます。
##########################################
Warning!!! Warning!!! Warning!!!
This is our system. You should not login.
Please close connection.
##########################################
 

[コマンドによる設定]
  1. (config)# banner login plain-text
    --- Press CTRL+D or only '.' line to end ---
    ##########################################
    Warning!!! Warning!!! Warning!!!
    This is our system. You should not login.
    Please close connection.
    ##########################################
    .
    ログイン前メッセージのスクリーンイメージを入力します。
    入力が終わったら,"."(ピリオド)だけの行(またはCTRL+D)を入力します。
     
  2. (config)# show banner
    banner login encode "IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCldhcm5pbmchISEgV2FybmluZyEhISBXYXJuaW5nISEhClRoaXMgaXMgb3VyIHN5c3RlbS4gWW91IHNob3VsZCBub3QgbG9naW4uClBsZWFzZSBjbG9zZSBjb25uZWN0aW9uLgojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMK"
    入力されたメッセージは自動的にエンコードされて設定されます。
     
  3. (config)# show banner login plain-text
    ##########################################
    Warning!!! Warning!!! Warning!!!
    This is our system. You should not login.
    Please close connection.
    ##########################################
    (config)#
    showの際にplain- textパラメータを指定すると,テキスト形式で確認できます。
     

設定が完了したら,リモート運用端末のtelnetまたはftpクライアントから本装置へ接続します。接続後,クライアントにメッセージが表示されます。

図8-6 リモート運用端末から本装置へ接続した例(telnetで接続した場合)

> telnet 10.10.10.10
Trying 10.10.10.10...
Connected to 10.10.10.10.
Escape character is '^]'.
 
##########################################
Warning!!! Warning!!! Warning!!!
This is our system. You should not login.
Please close connection.
##########################################
login:
 

図8-7 リモート運用端末から本装置へ接続した例(ftpで接続した場合)

> ftp 10.10.10.10
Connected to 10.10.10.10.
220-
##########################################
Warning!!! Warning!!! Warning!!!
This is our system. You should not login.
Please close connection.
##########################################
220 10.10.10.10 FTP server (NetBSD-ftpd) ready.
Name (10.10.10.10:staff):
 

[目次][前へ][次へ]


[他社商品名称に関する表示]

All Rights Reserved, Copyright(C), 2006, 2018, ALAXALA Networks, Corp.