https://netmaker.org logo
#netmaker
Title
# netmaker
h

hallowed-finland-99691

07/18/2022, 5:02 PM
Need help urgently, thank you
b

bored-island-21407

07/18/2022, 5:03 PM
yes
h

hallowed-finland-99691

07/18/2022, 5:16 PM
I can ping the LAN IP of the other router (ping in the router), but I can't Ping with PC. I think I may lack an iptables command or a route command
Who has built a site to site network with openwrt and how site to set it up?
b

bored-island-21407

07/18/2022, 5:17 PM
can you describe your setup... where is PC that you are trying to ping with.
h

hallowed-finland-99691

07/18/2022, 5:21 PM
The two sites use openwrt respectively. In openwrt, you can ping the LAN IP of each other, a: vpn ip 1.1.1.1 lan ip: 192.168.30.1 b: vpn ip 1.1.1.2 lan ip: 192.168.31.1
b

bored-island-21407

07/18/2022, 5:22 PM
ok, following so far
h

hallowed-finland-99691

07/18/2022, 5:23 PM
In router a, Ping 1.1.1.2 is normal, and Ping 192.168.31.1 is normal In router B, Ping 1.1.1.1 is normal, and Ping 192.168.30.1 is normal
b

bored-island-21407

07/18/2022, 5:24 PM
are the openwrt routers the default gateways for their respective lans?
h

hallowed-finland-99691

07/18/2022, 5:25 PM
But PC 192.168.30.141 under router a Unable to Ping 192.168.31.141 under B route
b

bored-island-21407

07/18/2022, 5:25 PM
i assume you set up a netmaker network with the two routers and the netmaker server as nodes.
did you make the routers egress gateways?
does PC 192.168.30.141 have a route for 192.168.31.0/24?
h

hallowed-finland-99691

07/18/2022, 5:28 PM
Both router A and router B have made export gateways,
b

bored-island-21407

07/18/2022, 5:28 PM
can you provide the routing tables from the two routers and from a PC on the lan
h

hallowed-finland-99691

07/18/2022, 5:29 PM
好的
I think I may lack an iptables command or a route command
b

bored-island-21407

07/18/2022, 5:34 PM
on the second router why is the default gateway 10.255.255.1?
h

hallowed-finland-99691

07/18/2022, 5:35 PM
10.255.255.1 is the gateway of Wan
b

bored-island-21407

07/18/2022, 5:35 PM
your PC get their ip address/routes/dns from the routers via dhcp?
h

hallowed-finland-99691

07/18/2022, 5:36 PM
192.168.30. X is the network address range of LAN
yes
b

bored-island-21407

07/18/2022, 5:38 PM
need to see routing table from PC on lan
is ip forwarding enabled on both routers
h

hallowed-finland-99691

07/18/2022, 5:41 PM
IPv4 路由表 =========================================================================== 活动路由: 网络目标 网络掩码 网关 接口 跃点数 0.0.0.0 0.0.0.0 192.168.31.1 192.168.31.141 281 127.0.0.0 255.0.0.0 在链路上 127.0.0.1 331 127.0.0.1 255.255.255.255 在链路上 127.0.0.1 331 127.255.255.255 255.255.255.255 在链路上 127.0.0.1 331 192.168.31.0 255.255.255.0 在链路上 192.168.31.141 281 192.168.31.141 255.255.255.255 在链路上 192.168.31.141 281 192.168.31.255 255.255.255.255 在链路上 192.168.31.141 281 224.0.0.0 240.0.0.0 在链路上 127.0.0.1 331 224.0.0.0 240.0.0.0 在链路上 192.168.31.141 281 255.255.255.255 255.255.255.255 在链路上 127.0.0.1 331 255.255.255.255 255.255.255.255 在链路上 192.168.31.141 281 =========================================================================== 永久路由: 网络地址 网络掩码 网关地址 跃点数 0.0.0.0 0.0.0.0 192.168.31.1 默认 ===========================================================================
b

bored-island-21407

07/18/2022, 5:43 PM
you need to turn forwarding on
h

hallowed-finland-99691

07/18/2022, 5:44 PM
Is the default option in openwrt
b

bored-island-21407

07/18/2022, 5:45 PM
if you don't have forwarding on, packets will not traverse interfaces.
h

hallowed-finland-99691

07/18/2022, 5:51 PM
Thank you very much. The test has been successful. You can ping it. I'll restart the router and try again
There is another problem. I try to add: * netclient pull The router pulls the latest configuration information from the server every minute, but Ping will have a great delay or interruption,
netclient pull It has a great impact on the normal VPN network,
I restarted the router. It works normally. It's great
b

bored-island-21407

07/18/2022, 6:06 PM
???
h

hallowed-finland-99691

07/18/2022, 6:06 PM
(***** netclient pull)
b

bored-island-21407

07/18/2022, 6:07 PM
I do not understand
h

hallowed-finland-99691

07/18/2022, 6:09 PM
Netclient pull will cause VPN network interruption. Can it only be performed manually?
b

bored-island-21407

07/18/2022, 6:09 PM
a netclient pull is done at startup and then only if the mq broker cannot be reached.
h

hallowed-finland-99691

07/18/2022, 6:12 PM
The latest version of openwrt uses firewall 4. Is netmaker considering upgrading?
b

bored-island-21407

07/18/2022, 6:13 PM
it has been discussed but no decision yet
h

hallowed-finland-99691

07/18/2022, 6:13 PM
Thank you again
b

bored-island-21407

07/18/2022, 6:14 PM
your welcome