F
F
fastboot2022-04-14 20:17:17
VPN
fastboot, 2022-04-14 20:17:17

OpenWRT to specify traffic routing for a specific interface?

OpenWRT :
WAN => 217.19.XX (white IP)
WireGuard.Server => WAN => 62.221.XX (white IP)
LAN connected to it WLAN1 192.168.1.0/24 (AP1)
LAN2 is WireGuard Client 172.16.100.4/32 ( gateway 172.16.100.1/24)
LAN2 is up DHCP.SERVER 172.16.101.0/24 and WLAN2 (AP2) is connected to it

[email protected]:~# route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.100.1 0.0.0.0 UG 0 0 0 eth0.2
172.16.100.0 * 255.255.255.0 U 0 0 0 WG0
172.16.101.0 * 255.255.255.0 U 0 0 0 br-LAN2
192.168.1.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.100.0 * 255.255.255.0 U 0 0 0 eth0.2
[email protected]:~# ping
172.16.100.100 172.16.100.1 (172.16.100.1): 56 data bytes
64 bytes from 172.16.100.1: seq=0 ttl=64 time=6.602 ms
64 bytes from 172.16.100.1: seq=1 ttl=64 time = 6.520
ms , 3 packets received, 0% packet loss round-trip min/avg/max = 6.520/6.551/6.602 ms [email protected]:~#


On WLAN2 (AP2) traffic goes through the WAN (aka LAN), how is routing configured correctly for a separate interface? made 1 attempt and got a connection drop.

I connect to WLAN2 (AP2) by phone, but the traffic goes through 217.19.XX (white IP), but I want to achieve it through 62.221.XX (white IP)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fastboot, 2022-04-14
@fastboot

6258737d62ae9386596456.png
But why is the gateway on the phone 172.16.101.1
625873ead16fa044851720.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question