OpenBSD 4.9のファイアウォールラインをOpenBSD 4.7に変換

OpenBSD 4.9のファイアウォールラインをOpenBSD 4.7に変換

OpenBSD 4.9でpfで使用されるこの行と同等のOpenBSD 4.7は何ですか?

no nat on egress proto udp from 192.168.1.10 port 4672 to any

ベストアンサー1

前のルールが次のとおりであるとします。

nat on egress from 192.168.1.0/24 -> (egress)
no nat on egress proto udp from 192.168.1.10 port 4672 to any

新しいルールを使用してこれを実行する例は次のとおりです。

match out on egress proto udp from 192.168.1.10 port 4672 tag NONAT
match out on egress from 192.168.1.0/24 !tagged NONAT nat-to (egress)

おすすめ記事