A story about almost being locked out by a firewall. ファイアウォールから締め出されそうになったよくある話

2023-09-06 04:09:35

Daily-Development

System Development IT Poem

I was working on building a Django application on Ubuntu.
I configured the firewall at the end

sudo ufw enable
and typed

sudo ufw status
and was checking the contents with
Terminal timeout hit
I couldn't help but let out an 'ah-hum'.

I reconnected, complaining that only the free version of ZOOM (time-limited) should always interrupt me at the best of times...

I can't connect...

Why? Yeah...
I was slowly recalling the setting....

Output
Status: active
To Action From
-- ------ ----
Nginx Full ALLOW Anywhere
Nginx Full (v6) ALLOW Anywhere (v6)

With only two
OpenSSH (v6) ALLOW Anywhere (v6)
OpenSSH ALLOW Anywhere
I notice that there is no upper guy to connect via SSH.
I can't believe it.  

Even the pseudo-Kansai dialect comes out.

After swimming around in the sea of the net for a long time, I started to melt...
I remember a fact.

I thought I could go to through the Vs code terminal.Because the Vs code terminal was still open, so maybe we can go there?
Yes, I could!
sudo ufw disable

Be careful about timeouts and firewalls, and if you use AWS Ec2, take snapshots to avoid near-misses.



~Japanese~

Ubuntu上でDjangoアプリの構築に勤しんでいた。
最後のファイアウォールの設定で
sudo ufw enable
を打ち
sudo ufw status
で内容の確認をしていたら
ターミナルタイムアウトの会心の一撃
計らずしも'あふん'と声が出たぜ。

良い所で何時も邪魔を入れるのは無料版ZOOM(時間制限)だけにしとけと愚痴を吐きつつ再接続..

繋がらぬえぇぇん

なぜだ?..ああ
設定が走馬灯のように蘇る

Output
Status: active
To Action From
-- ------ ----
Nginx Full ALLOW Anywhere
Nginx Full (v6) ALLOW Anywhere (v6)

の二つだけで
OpenSSH (v6) ALLOW Anywhere (v6)
OpenSSH ALLOW Anywhere
SSHでつなぐ為の上の野郎が居ないという事に気づく。
信じられへん どないしよ  

似非関西弁も出てくる始末

ネットの海を散々泳ぎ回って溶け始めた頃に
ある事実を思い出す。

Vs codeのターミナルひらっきぱなしやったけん行けるのでは?
行けた!
sudo ufw disable

タイムアウトとファイアウォールに気を付けてAWS Ec2だったらスナップショット取るなどして避けようねヒヤリハット (完)