Skip to content
IROSG.
Articles

WireGuard site-to-site: AllowedIPs, routes, MTU and packet troubleshooting

An original source-backed IROSG IT guide.

WireGuard site-to-site: AllowedIPs, routes, MTU and packet troubleshooting

Scope

This original IROSG guide covers طراحی و عیب‌یابی تونل WireGuard site-to-site using the cited primary documentation.

Core model

WireGuard routing و cryptokey routing را نزدیک می‌کند. AllowedIPs هم برای انتخاب peer در ارسال و هم برای پذیرش source در دریافت نقش دارد. اما route سیستم، forwarding و firewall هنوز باید درست باشند.

Practical workflow

wg show، ip route، ip rule و tcpdump را از هر دو سمت هم‌زمان استفاده کنید. برای MTU از ping با DF و tracepath کمک بگیرید. handshake زمان آخرین تبادل کلید را می‌گوید، نه سلامت همهٔ subnetها را.

Failure modes

NAT بی‌دلیل، overlap subnet و route برگشت گمشده سه خطای پرتکرارند. تغییر هم‌زمان MTU، firewall و AllowedIPs evidence را خراب می‌کند.

Lab

دو namespace یا دو VM بسازید، تونل را بالا بیاورید و دو LAN پشت آن‌ها قرار دهید. ابتدا route برگشت را عمداً حذف کنید، سپس با capture نشان دهید packet کجا متوقف می‌شود.

Production method

Capture a baseline, change one variable at a time, test positive and negative paths, keep evidence, and rehearse rollback before broad rollout.

TRACEABLE KNOWLEDGE

Sources & further reading

01
WireGuard — مرجع فنیhttps://www.wireguard.com/quickstart/

Editorial review date:

IROSG / EDITORIAL

News and pioneer profiles use original writing with source attribution. Image credits and licenses are kept in each page’s sources section instead of beneath the images. CVE reference data credits its primary sources.

Editorial and image policy ↗

Keep exploring.

Articles ↗
VyOS network operating systemArticles
Networking

VyOS network operating system

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
Routinator RPKI validatorArticles
Networking

Routinator RPKI validator

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
ISC Kea DHCP High AvailabilityArticles
Networking

ISC Kea DHCP High Availability

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story