0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

YAMAHA RTX840のLBO機能をただのパケットフィルタとして使う

0
Posted at

まえがき

YAMAHA RTX840を入手しました。
RTX830からメモリが増えただけ1のように見えますが、ローカルブレイクアウト(LBO)の機能が追加されています。2

実装例を見るとフィルタに適合したパケットの経路を書いています。
そしてフィルタには外部ソースを適用しています。
つまりコア部分はフィルタの一部を外部ソースに記載できる部分だと感じました。

次のような設定です。

ip route default gateway pp 1 filter 1 gateway tunnel 1
ip filter 1 pass * @example * *

LBOとして紹介されていますが、パケットフィルタ単独でしょ?
ということでフィルタ機能も動作するか試してみました。

試してみる

ルーターの設定。外部(LAN2側) から、TELNETやSSHで侵入できるかどうかのテストです。
リストのURLはダミーですが、S3使って実験しました。

ip route default gateway dhcp lan2
ip lan1 address 192.168.98.1/24
ip lan2 address dhcp
ip lan2 secure filter in 11 9999
ip lan2 secure filter out 10 dynamic 1
ip lan2 nat descriptor 1
ip filter 1 pass @lbo-test * * * *
ip filter 10 pass * * * * *
ip filter 11 reject * * * * *
ip filter dynamic 1 * * tcp syslog=off
nat descriptor type 1 masquerade
nat descriptor address outer 1 primary
nat descriptor masquerade static 1 1 192.168.98.1 tcp 22,telnet
dns server 1.1.1.1
lbo use on
lbo list secondary https://xxxxx.s3.amazonaws.com/lbo.xml
sshd service on
sshd host key generate *

OKパターン

無事に侵入できました。
リスト外の通信は弾くことも確認しました。

lbo.xml
<?xml version="1.0" encoding="UTF-8"?>
<products updated="2026020901">
  <product name="lbo-test">
    <addresslist type="IPv4">
      <address">192.168.100.0/24</address>
    </addresslist>
  </product>
</products>

NGパターン1

XMLタグに description属性を入れたところ、リストの取り込みに失敗します。

lbo.xml
<?xml version="1.0" encoding="UTF-8"?>
<products updated="2026020902">
  <product name="lbo-test">
    <addresslist type="IPv4">
      <address description="オプション書いたらファイル取り込めない">192.168.100.0/24</address>
    </addresslist>
  </product>
</products>

NGパターン2

コメントを入れてみましたが、こちらもリストの取り込みに失敗します。

lbo.xml
<?xml version="1.0" encoding="UTF-8"?>
<products updated="2026020903">
  <product name="lbo-test">
    <addresslist type="IPv4">
      <address>192.168.100.0/24</address>  <!--コメント書いたらファイル取り込めない-->
    </addresslist>
  </product>
</products>

結果

想定通りパケットフィルターを外部リストから取り込んで動作させることができました。
多数のルーターのフィルタを一元管理する、ということも出来そうです。
XMLにコメントも記載できれば良かったんですが。惜しいなぁ。

  1. CPUとメモリの一覧 - https://www.rtpro.yamaha.co.jp/RT/hardware/cpu.html

  2. ローカルブレイクアウト - https://www.rtpro.yamaha.co.jp/RT/docs/lbo/

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?