![VyOS: NAT ソース ルール [eth0] が無効です。設定に失敗しました](https://rvso.com/image/792191/VyOS%3A%20NAT%20%E3%82%BD%E3%83%BC%E3%82%B9%20%E3%83%AB%E3%83%BC%E3%83%AB%20%5Beth0%5D%20%E3%81%8C%E7%84%A1%E5%8A%B9%E3%81%A7%E3%81%99%E3%80%82%E8%A8%AD%E5%AE%9A%E3%81%AB%E5%A4%B1%E6%95%97%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F.png)
私は「NAT ソース ルール [eth0] は有効ではありません。設定に失敗しました「私の vyos cli でエラーが発生しました。この投稿にはラボのネットワーク図も含まれています。私は vyos をルーターとして使用し、NAT を実行したいと考えていました。このセットアップは Proxmox サーバーで行われ、dmz に Web サーバーを配置し、LAN 上の他のデバイスを WAN に接続できるようにしたいと考えていました。
初期 vyos セットアップのために行った手順:
---------- for eth0 (WAN) -------------
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description 'WAN-INTERFACE'
---------- for eth1 (LAN) -------------
set interfaces ethernet eth1 address '192.168.1.1/24'
set interfaces ethernet eth1 description 'LAN-INTERFACE'
**for the nat- in the same console**
set nat source rule 100 source address '192.168.1.0/24'
set nat source rule 100 outbound-interface 'eth0'
set nat source rule 100 translation address masquerade
---------- for eth2 (DMZ) -------------
set interfaces ethernet eth2 address '192.168.2.1/29'
set interfaces ethernet eth2 description 'DMZ'
set nat source rule 200 source address '192.168.2.0/24'
set nat source rule 200 outbound-interface 'eth0'
set nat source rule 200 translation address masquerade
問題: しかし、eth1 または eth2 の両方に対してアウトバウンド インターフェイス ルール「eth0」を設定すると、上記のエラーが発生します。「show nat」をチェックしても、ルールにアウトバウンド インターフェイスが実装されていないことがわかります。
私が試した手順: 私が知っていて実行したことは、イーサネット インターフェイス名が eth0 以外のものではないことを確認することだけでした。実際、それは 'eth0' です。
どうすればこれを解決できますか??? よろしくお願いします!!!!