質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
iptables

iptablesは、一般的なLinuxに備わっているパケットフィルタリング型のファイアウォール機能。パケットフィルタリングルールおよびネットワークアドレス変換ルールを適用することが可能です。

Q&A

解決済

1回答

1824閲覧

ufwでiptables: Operation not supported エラーが発生する

renge

総合スコア18

iptables

iptablesは、一般的なLinuxに備わっているパケットフィルタリング型のファイアウォール機能。パケットフィルタリングルールおよびネットワークアドレス変換ルールを適用することが可能です。

0グッド

0クリップ

投稿2020/05/18 09:09

#環境
OS: Raspbian Buster Lite (10.4)
#コードと実行結果
###sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
ERROR: problem running ufw-init
iptables-restore: line 6 failed
iptables-restore: line 22 failed
iptables-restore v1.8.2 (nf_tables): Couldn't load match `conntrack':No such file or directory

Error occurred at line: 2
Try iptables-restore -h' or 'iptables-restore --help' for more information. iptables-restore: line 4 failed iptables-restore: line 5 failed iptables-restore: line 21 failed iptables-restore v1.8.2 (nf_tables): unknown option "--dport" Error occurred at line: 19 Try iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore: line 10 failed
iptables-restore v1.8.2 (nf_tables): unknown option "--dport"
Error occurred at line: 21
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.8.2 (nf_tables): Chain 'ufw-before-input' does not exist

Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/after.rules'
Problem running '/etc/ufw/user.rules'

###sudo iptables-restore -h
Usage: xtables-restore [-c] [-v] [-V] [-t] [-h] [-n] [-T table] [-M command] [-4] [-6]
[ --counters ]
[ --verbose ]
[ --version]
[ --test ]
[ --help ]
[ --noflush ]
[ --table=<TABLE> ]
[ --modprobe=<command> ]
[ --ipv4 ]
[ --ipv6 ]

###sudo ufw allow 22
WARN: initcaps
[Errno 2] iptables: Operation not supported.

Skipping adding existing rule
###sudo ufw status
Status: inactive

#補足
コードをこの順で回して結局ufwをアクティブにすることができませんでした。Skipping adding existing rule と出てますが、これは自分が何度も試しているからかなと思います。ただ、何度ufw statusを打ってもactiveと表示されることはありませんでした。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

OSをUbuntuに差し替えて同様の操作をしたところ正常に動作しました

投稿2020/10/06 08:00

renge

総合スコア18

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問