VyOSにポートフォワーディングを設定する
VyOSにポートフォワーディングを設定します。
WANから入ってきた2222番のアクセスをLAN側の22番にフォワードする設定です。
#set nat destination rule 20 inbound-interface eth0
#set nat destination rule 20 destination port 2222
#set nat destination rule 20 protocol tcp
#set nat destination rule 20 translation port 22
#set nat destination rule 20 translation address 192.168.1.100
#commit
#save
沢山実験サーバを立てると、わけが分からなくなってきますので、
適宜整頓するといいと思います。(自戒をこめて)