Answer the question
In order to leave comments, you need to log in
How to set up routing in openwrt?
Hello colleagues!
There is a router with openwrt, there are lan, wan and tun interfaces (client openvpn).
lan - 192.168.1.0/24,
wan - external static,
tun - 10.11.0.0/16
Route:
[email protected]:~# route
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.87.87.87 0.0.0.0 UG 0 0 0 pppoe- WAN 10.11.0.0
0.11.0.5 255.255.0 UG 0 0 Tun0
10.11.0.5 * 255.255.255.255 UH 0 0 Tun0
10.87.87.87 * 255.255.255.255 UH 0 0 PPEe-Wan
192.168.1.0 * 255.255.0 U 0 U 0 U 0 U 0 U 0 U 0 U 0 U 0 U 0 0 0
From the router, the ping to the openvpn server 10.11.0.1, as expected, passes. But the ping to 10.11.0.1 from any machine from the local network does not go.
Attention to the question: in which direction should I dig so that packets from the local network go to the network 10.11.0.0/16?
Answer the question
In order to leave comments, you need to log in
in the openvpn server settings. When you ping from your local network, the server needs to know where to reply to. Those. it should have routing for your local network through the tunnel.
Well, or dig into the firewall settings - set up a masquerade towards the tunnel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question