LoginSignup
7
6

More than 5 years have passed since last update.

Ubuntuのufwコマンドメモ

Posted at

Ubuntuのufwコマンドメモ

gufwだと上手く設定しきれなかったのでコマンドで設定。
多分他でも使うので備忘録的にメモ。

DropboxのLAN同期の通信を許可

ローカルネットワーク(192.168.xxx.0/24)内のホストから17500/tcpへの接続を許可。

$ sudo ufw allow in proto tcp from 192.168.xxx.0/24 to any port 17500

Sambaの通信を許可

$ sudo ufw allow Samba

あるいは

$ sudo ufw allow in proto udp from 192.168.xxx.0/24 port 137 to any port 137
$ sudo ufw allow in proto udp from 192.168.xxx.0/24 port 138 to any port 138
$ sudo ufw allow in proto tcp from 192.168.xxx.0/24 to any port 139
$ sudo ufw allow in proto tcp from 192.168.xxx.0/24 to any port 445

適宜追加

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6