10.1.8 ログインバナーの設定
コンフィグレーションコマンドbannerでログインバナーの設定を行うと,consoleから,またはリモート運用端末のtelnetやftpクライアントなどから本装置に接続したとき,ログインする前やログインしたあとにメッセージを表示できます。
- [設定のポイント]
-
リモート運用端末のtelnetやftpクライアントからネットワークを介して本装置のtelnetやftpサーバへ接続するとき,ログインする前に次のメッセージを表示させます。
########################################## Warning!!! Warning!!! Warning!!! This is our system. You should not login. Please close connection. ##########################################
[コマンドによる設定]
-
(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)を入力します。
-
(config)# show banner
banner login encode "IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCldhcm5pbmchISEgV2FybmluZyEhISBXYXJuaW5nISEhClRoaXMgaXMgb3VyIHN5c3RlbS4gWW91IHNob3VsZCBub3QgbG9naW4uClBsZWFzZSBjbG9zZSBjb25uZWN0aW9uLgojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMK"
入力されたメッセージは自動的にエンコードされて設定されます。
-
(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クライアントから本装置へ接続します。接続後,クライアントにメッセージが表示されます。
> 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: |
> 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): |