Skip to content

Instantly share code, notes, and snippets.

@binarykore
Created August 28, 2026 14:37
Show Gist options
  • Select an option

  • Save binarykore/273225392fbba6dc2f0d912b7e95ce52 to your computer and use it in GitHub Desktop.

Select an option

Save binarykore/273225392fbba6dc2f0d912b7e95ce52 to your computer and use it in GitHub Desktop.
Mikrotik DMZ (De-Militarized Zone)..
  • /routing table add name=to-vpn fib

  • /ip route add dst-address=0.0.0.0/0 gateway=vpn-interface-name routing-table=to-vpn

  • /ip firewall mangle add chain=prerouting src-address=192.168.88.50 action=mark-routing new-routing-mark=to-vpn passthrough=yes

  • /ip firewall nat add chain=srcnat out-interface=vpn-interface-name action=masquerade

  • VPN Interface Name = Wireguard Client

  • Routing Table = to-vpn

  • SRC Address: 192.168.88.50 (Device Subnet IP)

  • FIB (Forwarding Information Base)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment