alrcatraz/astra-sre/astra-sre-fix-easytier-martian

Claude Code and agent skill by alrcatraz/astra-sre

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Fix martian packet flood caused by easytier-core self-connecting to its own port (11012) from all network interfaces, leaking 127.0.0.1 packets out the physical interface.

Install

npx vskill@latest install alrcatraz/astra-sre/astra-sre-fix-easytier-martian

SKILL.md

The same SKILL.md was published earlier as alrcatraz/astra-sre/astra-sre-fix-easytier-martian.

astra-sre-fix-easytier-martian

When to Use

When martian destination packets from easytier-core flood the kernel log — caused by easytier-core self-connecting to its own port (11012) from all network interfaces, leaking 127.0.0.1 packets out the physical interface.

Symptom

  • Router kernel log fills with IPv4: martian destination 127.0.0.1 from <LAN_IP>, dev br-lan
  • occurs from multiple machines on the same LAN that run easytier
  • Router's logread buffer fills up, pushing out real events (PPPoE disconnects, DHCP events)
  • dmesg shows the same martian messages repeating every 1-2 seconds
  • The affected machine's netstat -tanp shows SYN_SENT connections from its LAN IP to 127.0.0.1:11012

Root Cause

easytier-core (the EasyTier mesh VPN daemon) enumerates all network interfaces and probes port 11012 (its own listening port) for peer discovery / connectivity checks. When the probe originates from:

  • The physical interface IP (e.g. 192.168.0.30 or 10.x.x.x)
  • A Docker bridge interface (e.g. 172.17.0.1, 172.19.0.1)

...the kernel's routing table sends the packet to 127.0.0.1 through the physical interface instead of staying on loopback. This is caused by:

  1. Policy routing rules (ip rule show) that route traffic from the LAN IP through a specific table (e.g. OVS table)
  2. Open vSwitch bridges (Synology DSM) that alter normal routing behaviour
  3. Any non-standard network stack (Docker bridges, OVS, policy routing) where the loopback route is bypassed

The resulting packet (src=LAN_IP, dst=127.0.0.1) arrives at the router's bridge interface and is logged as a "martian destination" because 127.0.0.0/8 is not reachable via the LAN bridge.

Detection

On the affected machine
bash
# Check for SYN_SENT connections to self
ss -tanp state syn-sent | grep 127.0.0.1
# Verify it's easytier
ss -tanp | grep 11012
# Confirm easytier process
ps aux | grep easytier-core
On the router
bash
# Check if martian flood is active
dmesg | grep "martian destination 127.0.0.1" | tail -5
# Count rate
watch -n 1 'dmesg | grep -c "martian destination 127.0.0.1"'

Fix

Step 1: Add iptables DROP rule

Block outgoing packets to 127.0.0.0/8 from the physical network interface:

bash
# Identify the physical egress interface (the one with the LAN IP)
ip -br addr | grep "<LAN_SUBNET>"
# Add DROP rule
iptables -I OUTPUT -o <physical_iface> -d 127.0.0.0/8 -j DROP

Examples:

  • Synology NAS (OVS bridge): iptables -I OUTPUT -o ovs_eth0 -d 127.0.0.0/8 -j DROP
  • openSUSE (WiFi): iptables -I OUTPUT -o wlo1 -d 127.0.0.0/8 -j DROP
  • openSUSE (Ethernet): iptables -I OUTPUT -o eth0 -d 127.0.0.0/8 -j DROP
Step 2: Verify
bash
# On the affected machine - check rule hit count
iptables -L OUTPUT -n -v | grep DROP
# Wait a few seconds, check if hits incremented
iptables -L OUTPUT -n -v | grep DROP
# On the router - check if new martian packets stopped
dmesg | grep "martian destination" | tail -1

No new entries = fix working.

Step 3: Persist across reboot

On openSUSE Tumbleweed — systemd oneshot service:

bash
cat > /etc/systemd/system/martian-drop.service << 'EOF'
[Unit]
Description=Drop martian packets from easytier self-connect
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/iptables -I OUTPUT -o <physical_iface> -d 127.0.0.0/8 -j DROP
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload && systemctl enable --now martian-drop.service

On Synology DSM — rc.d script:

bash
cat > /usr/local/etc/rc.d/martian-drop.sh << 'EOF'
#!/bin/sh
iptables -I OUTPUT -o ovs_eth0 -d 127.0.0.0/8 -j DROP
EOF
chmod +x /usr/local/etc/rc.d/martian-drop.sh

Pitfalls

  1. The iptables rule goes in the OUTPUT chain, not INPUT. The leak is from the machine's own processes sending packets out the wrong interface.
  2. Do NOT use `route_localnet=1` as an alternative — this allows routing 127.0.0.0/8 through non-loopback interfaces, which has security implications (bypassing loopback-only access controls).
  3. Docker bridge interfaces also trigger the leak. On machines with Docker, easytier also connects from 172.17.0.1 and 172.19.0.1 bridge IPs to 127.0.0.1. The iptables rule on the physical interface catches these because the docker0 bridge routes through the physical interface.
  4. Multiple identical rules can accumulate. Running -I multiple times adds duplicate rules. Clean up with iptables -D OUTPUT -o <iface> -d 127.0.0.0/8 -j DROP before re-adding.

Related

  • cifs-mount-over-sdwan-diagnostics.md — For CIFS mount timing issues over SD-WAN overlays (NetBird, EasyTier, ZeroTier)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alrcatraz/astra-sre/astra-sre-fix-easytier-martian/badge)](https://verified-skill.com/skills/alrcatraz/astra-sre/astra-sre-fix-easytier-martian)

Something wrong with this skill or its page? Tell us.