Hello. I think this has already several answers but I’m kinda stuck.
I set up an OpenVpn server on a windows server. I can successfully connect my RUT241 to the vpn (TUN).
The RUT241 has a machine attached (e.g. 123.456.78.9) which I’d like to connect from the windows server.
I can successfully ping the router (10.8.0.1) but i cannot ping the machine connected to it.
Can someone point me to a guide? I think I’m missing the part of the RUT241 forwarding.
I tried forwarding from openvpn zone to LAN but with no success.
It would be ok to access the device behind the RUT only with port forwarding (e.g. being able to telnet it forwarding port 15000 to 123.456.78.9:23). I tried it but i cant get it to work.
The website doesn’t let me upload the troubleshooting zip.
Firstly, could you please check if the OpenVPN server has a route to the LAN network of RUT241 via OpenVPN?
Also, are LAN networks on the RUT241 and the Server different? Make sure those do not overlap. For example, if both are on the 192.168.1.0/24 network, please change one of those networks to something different, like 192.168.2.0/24.
The windows server’s routing table (server on which i have the openvpn server running) has this row in the routing table:
Destination Netmask Gateway Interface Metric
192.168.1.0 255.255.255.0 10.8.0.3 10.8.0.1 26
The server’s LAN network is different (195.others) so there is no overlap.
I can successfully ping from server to router (10.8.0.3).
The OpenVPN network may not appear in the covered networks for Firewall zone on the older firmwares, but it should work. Perhaps you updated the device to the latest firmware with ‘keep settings’ option? If so, could you please try resetting the device to factory defaults and reconfigure it?
If the issue persists, could you check if the router receives pings on the tunnel interface when you ping the LAN devices? To do so, access the RUT via CLI/SSH with username ‘root’ , install tcpdump and run it on the tunnel interface:
# install tcpdump
opkg update
opkg install tcpdump
# check the name of the tunnel interface
ifconfig
# run tcp dump on that interface (replace tun_clntvp with your interface)
tcpdump -i tun_clntvp icmp
Do you see ICMP packets going into LAN when pinging from the server? Are there any replies?
Ok there were some misconfigurations on the LAN machine, the default route was always modified by another software so the ping arrived but it didn’t know where to go next.
But on my side, I checked the client and server side routes and everything looks good. On the other hand, when I do a tcpdump on the OpenVPN interface on the Teltonika router, I see pings when I ping the IP address from tunnel network, but I do not see a ping request when I ping to the LAN.
Apparently, no. When i reset to factory settings all my forwardings were removed. All default. In network>firewall>rules i have an “Allow-Ping” turned on, but you should have it too.
The only thing that comes to mind is the routing table but you said you checked.
Have you double checked?
I (for lack of better knowledge of OpenVPN configuration files) ended to manually add the route to my device on the other windows machines where I tried to ping. (route add 192.168.1.186 MASK 255.255.255.0 10.8.0.3)
I found useful to “tcpdump” on each machine involved in the ping test.