V2ray Mikrotik 2021
/container add remote-image=v2fly/v2fly-core:latest interface=veth1 root-dir=usb1/v2ray /container start 0
Internet ←→ MikroTik (Gateway) ←→ V2Ray Proxy Box (192.168.88.10) ←→ LAN Clients v2ray mikrotik
Simpler alternative for most users:
| Scenario | Recommended Method | | :--- | :--- | | with RB5009 | Native Container (Method 1) | | Small office with old RouterBoard | External Gateway + TPROXY (Method 4) | | Quick test / temporary setup | Socks Client (Method 2) | | Censorship circumvention (China, Iran, Russia) | Domain-based PBR + DNS trick (Method 3) | MikroTik does Policy Based Routing (PBR) to this gateway
: No more individual app setups; manage all your proxy rules in one place. v2ray mikrotik
This is the gold standard for corporate or prosumer networks. You run V2Ray on a separate device (e.g., an old PC or NanoPi R4S) in mode. MikroTik does Policy Based Routing (PBR) to this gateway.
# Step A: Mark connections from LAN /ip firewall mangle add chain=prerouting src-address=192.168.1.0/24 dst-address-type=!local action=mark-connection new-connection-mark=v2ray-conn