Need help urgently, thank you
# netmaker
h
Need help urgently, thank you
b
yes
h
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
can you describe your setup... where is PC that you are trying to ping with.
h
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
ok, following so far
h
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
are the openwrt routers the default gateways for their respective lans?
h
But PC 192.168.30.141 under router a Unable to Ping 192.168.31.141 under B route
b
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
Both router A and router B have made export gateways,
b
can you provide the routing tables from the two routers and from a PC on the lan
h
好的
I think I may lack an iptables command or a route command
b
on the second router why is the default gateway 10.255.255.1?
h
10.255.255.1 is the gateway of Wan
b
your PC get their ip address/routes/dns from the routers via dhcp?
h
192.168.30. X is the network address range of LAN
yes
b
need to see routing table from PC on lan
is ip forwarding enabled on both routers
h
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
you need to turn forwarding on
h
Is the default option in openwrt
b
if you don't have forwarding on, packets will not traverse interfaces.
h
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
???
h
(***** netclient pull)
b
I do not understand
h
Netclient pull will cause VPN network interruption. Can it only be performed manually?
b
a netclient pull is done at startup and then only if the mq broker cannot be reached.
h
The latest version of openwrt uses firewall 4. Is netmaker considering upgrading?
b
it has been discussed but no decision yet
h
Thank you again
b
your welcome