尾張西枇杷島まつり、花火大会があり家族でお出かけ。寒いですが、今年も盛況でした。





今年のゴールデンウィークは、家族旅行で信州へ行きました。
車名古屋から中央高速で3時間程です。

大河ドラマ、真田丸で話題の上田城址。さすがにたくさんの観光客。近くにある刀屋さん、3時まで続く行列とざる蕎麦の量は半端なかった。宿は別所温泉 上松屋旅館さんにお世話になりました。お湯がいい。温泉旅の疲れを癒して…

2日目は午前中いっぱい旅館近くの安楽寺、車移動し、真田町を散策しました。
真田の郷は鶯の鳴く長閑なところです。ハイビスカス
午後はさらに南へ車を走らせ宿は山梨県甲府市の石和温泉 、ホテル古柏園にお世話になりました。
キンキンに冷えた生中生ビール

最終日はホテル近くのワイナリーと桔梗屋、信玄餅でお土産を買って
甲府市内の武田信玄公の武田神社へ。神社

家族みんなに歴史好きの私に付き合ってもらったGW家族旅行富士山でした。










CentOS7.0へTELNETサーバーのインストール

# yum -y install telnet-server

TELNETサーバーの起動

# systemctl start telnet.socket


TELNETサーバーへアクセスするPC登録
[user@localhost ~]$
[user@localhost ~]$ cat /etc/hosts.allow
#
# hosts.allow This file contains access rules which are used to
# allow or deny connections to network services that
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#
in.telnetd : 192.168.0. 127.0.0.1 ←許可するローカルアドレス、自分の端末
# vi /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
in.telnetd : ALL ←それ以外は拒否


*******************************
# 許可されているサービスやポートの一覧を表示
firewall-cmd --list-all --zone=public
firewall-cmd --list-services --zone=public
firewall-cmd --list-ports --zone=public

# 許可するサービスの追加と削除
firewall-cmd --add-service=ssh --zone=public --permanent
firewall-cmd --remove-service=ssh --zone=public --permanent

# 許可するポートの追加と削除
firewall-cmd --add-port=22/tcp --zone=public --permanent
firewall-cmd --remove-port=22/tcp --zone=public --permanent

# 利用可能なサービス一覧
firewall-cmd --get-services

# firewalldのリロード
firewall-cmd --reload
*******************************


[user@localhost ~]$ firewall-cmd --list-services --zone=public
dhcpv6-client ssh telnet
[user@localhost ~]$ firewall-cmd --list-ports --zone=public
23/tcp 5901/tcp
[user@localhost ~]$