net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directive
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
os-haproxy プラグインのコードで、実サーバーの「Source address」フィールドを検証し、HAProxy のサーバーディレクティブを生成する箇所から始めます。issue では具体的なファイルが指定されていないため、このフィールドと source ディレクティブを検索してください。IPv6 リテラルがどのように認識されるか、生成される値が角括弧で囲まれるかを確認します。IPv6 のソースアドレスが検証を通過し、HAProxy 用の角括弧付き形式で出力され、設定テストが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Setting an IPv6 address in the "Source address" field of a real server produces a source directive that HAProxy rejects, so the configuration test fails and the service cannot be reloaded.
The plugin writes the address expanded and without brackets. HAProxy treats everything after the last colon as the port.
To Reproduce
- Services → HAProxy → Real Servers: create a server with an IPv6 address (e.g.
fd00:445d:0:4f::eb1, port 443). - Enable advanced mode and set "Source address" to
fd00:445d:0:4f::fe. - Add the server to a backend pool and run the config test.
Generated line:
server hu-web1_HTTPS6 fd00:445d:0:4f::eb1:443 source fd00:445d:0000:004f:0000:0000:0000:00fe send-proxy-v2 check-send-proxy
Result:
[ALERT] config : [/usr/local/etc/haproxy.conf.staging:453] : 'server wp.hmu.com.ar_HTTPS/hu-web1_HTTPS6' : 'source fd00:445d:0000:004f:0000:0000:0000:00fe' : invalid character 'f' in port number '00fe' in 'fd00:445d:0000:004f:0000:0000:0000:00fe'.
[ALERT] config : Fatal errors found in configuration.
Entering the address with brackets ([fd00:445d:0:4f::fe]) is rejected by the form validation ("Please specify a valid source address, i.e. 10.0.0.1 or loadbalancer.example.com:50000…").
Expected behavior
An IPv6 source address should be written in bracketed form, which HAProxy accepts:
source [fd00:445d:0:4f::fe]
Either the template could add the brackets for IPv6 literals, or the field validation could accept bracketed input.
Workaround
Leave "Source address" empty and put source [fd00:445d:0:4f::fe] in the server's "Option pass-through" field. The config test passes with that.
Environment
- OPNsense 26.7.8_2-amd64
- os-haproxy 5.1
- HAProxy 3.2.26-3e0f11a
- 主要言語
- PHP
- スター
- 1.2k
- フォーク
- 926
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
opnsense/plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
opnsense/plugins#5976 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)対応中かも @bringha1 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
q-feeds-connector: "error in configd communication" every update when the Unbound DNSBL rebuild takes longer than 120s対応中かも @mhatipog が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
opnsense/plugins の issue をすべて見る
似ている issue
-
15.0
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
open-telemetry/opentelemetry-php-distro#176 ·
メンテナーはふだん 2 日以内に返信
-
No Code Attached Yet
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
joomla/joomla-cms#48941 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug new
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
メンテナーはふだん 1 日以内に返信