
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This program listens for packets on a specified UDP broadcast port. When a packet is received, it sends that packet to all specified interfaces but the one it came from as though it originated from the original sender.
The primary purpose of this is to allow devices or game servers on separated local networks (Ethernet, WLAN, VLAN) that use udp broadcasts to find each other to do so.
make cp udp-broadcast-relay-redux /some/where
./udp-broadcast-relay-redux \ -id id \ --port <udp-port> \ --dev eth0 \ [--dev eth1...] \ [--multicast 224.0.0.251] \ [-s <spoof_source_ip>] \ [-t <overridden_target_ip>]
id must be unique number between instances. This is used to set the TTL of
outgoing packets to determine if a packet is an echo and should be discarded.--multicast <group address>.-s <ip>. This
is unusual.-s 1.1.1.1 can be used to set the source ip
to the address of the outgoing interface.-t 255.255.255.255 can be used to set the
overriden target ip to the broadcast address of the outgoing interface.-f will fork the application to the background.version: '3.7' networks: ################################################################### # # this is just my network example. This builds a bridge to a normal linux network bridge. # Effect of this is, i can use subnets from outside the host (aka the networks which directly come into my server from the lan port). # # ATTENTION: This builds a true OSI Layer-2 network bridge to the docker container. # # Use your own network if you dont use this special setup. # # # docker-vmbr14: name: docker-vmbr14 driver: ipvlan driver_opts: ipvlan_mode: l2 parent: vmbr14 ipam: config: - subnet: 10.0.14.0/24 services: broadcast_relay: container_name: broadcast_relay image: hasechris92/udp-broadcast-relay:latest environment: UBR_PORTS: "7 9 1900 27031 27032 27033 27034 27035 27036 60128" <<<<<< YOUR LIST OF PORTS, seperated with space character # # OPTIONAL (here the defaults) UBR_DEBUG: 0 UBR_SERVICEUSER: 1 UBR_ENABLE_MDNS: 1 UBR_ENABLE_SSDP: 0 UBR_ENABLE_LIFX_BULB: 0 UBR_ENABLE_HDHOMERUN: 0 restart: always networks: # network names are sorted "dumbly" # eth0 docker-vmbr14: ipv4_address: 10.0.14.3 # eth1 docker-vmbr2: ipv4_address: 10.0.2.3 # eth2 docker-vmbr210: ipv4_address: 10.253.42.4 # eth3 docker-vmbr5: ipv4_address: 10.0.5.3 # eth4 docker-vmbr7: ipv4_address: 10.0.7.2 # eth5 docker-vmbr8: ipv4_address: 10.0.8.3
mDNS / Multicast DNS (Chromecast Discovery + Bonjour + More)
./udp-broadcast-relay-redux --id 1 --port 5353 --dev eth0 --dev eth1 --multicast 224.0.0.251 -s 1.1.1.1
(Chromecast requires broadcasts to originate from an address on its subnet)
SSDP (Roku Discovery + More)
./udp-broadcast-relay-redux --id 1 --port 1900 --dev eth0 --dev eth1 --multicast 239.255.255.250
Lifx Bulb Discovery
./udp-broadcast-relay-redux --id 1 --port 56700 --dev eth0 --dev eth1
Broadlink IR Emitter Discovery
./udp-broadcast-relay-redux --id 1 --port 80 --dev eth0 --dev eth1
Warcraft 3 Server Discovery
./udp-broadcast-relay-redux --id 1 --port 6112 --dev eth0 --dev eth1
Relaying broadcasts between two LANs joined by tun-based ***
This example is from OpenWRT. Tun-based devices don't forward broadcast packets so temporarily rewriting the destination address (and then re-writing it back) is necessary.
Router 1 (source):
./udp-broadcast-relay-redux --id 1 --port 6112 --dev br-lan --dev tun0 -t 10.66.2.13
(where 10.66.2.13 is the IP of router 2 over the tun0 link)
Router 2 (target):
./udp-broadcast-relay-redux --id 2 --port 6112 --dev br-lan --dev tun0 -t 255.255.255.255
HDHomerun Discovery
./udp-broadcast-relay-redux --id 1 --port 65001 --dev eth0 --dev eth1
If you are running udp-broadcast-relay-redux on a router, it can be an easy way to relay broadcasts between VLANs. However, beware that these broadcasts will not establish a RELATED firewall relationship between the source and destination addresses.
This means if you have strict firewall rules, the recipient may not be able to respond to the broadcaster. For instance, the SSDP protocol involves sending a broadcast packet to port 1900 to discover devices on the network. The devices then respond to the broadcast with a unicast packet back to the original sender. You will need to make sure that your firewall rules allow these response packets to make it back to the original sender.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务