tiddlers: 打开防火墙
This data as json
title | meta | text | revision |
---|---|---|---|
打开防火墙 | {"created": "20230406103438050", "creator": "root", "tags": ["Linux"], "title": "\u6253\u5f00\u9632\u706b\u5899", "modified": "20230406103631558", "modifier": "root", "type": "text/vnd.tiddlywiki"} | 服务器安装好操作系统后,需要开启防火墙。 ```bash $ ufw status Status: inactive $ ufw allow 22/tcp $ ufw enable Command may disrupt existing ssh connections. Proceed with operation (y|n)? y Firewall is active and enabled on system startup $ ufw default deny Default incoming policy changed to 'deny' (be sure to update your rules accordingly) $ ufw status Status: active To Action From -- ------ ---- 22/tcp ALLOW Anywhere 22/tcp (v6) ALLOW Anywhere (v6) ``` | 1 |