maikcat wrotehi there,
Ping from VPN client to other machines are correctly transmitted and arrive on the LAN (captured by wireshark - so I assume forwarding works), but other machines never answer - huh ?
next step,run wireshark on other machines and see what is going on...
do "other machines" have firewall enabled?
Michael.
Hi Michael - Thank for helping. Obviously I'm stacking a few different issues here.
- My Windows box had a firewall issue that prevented it from accepting incoming non-local traffic (from 192.168.4.x). Adding the right rules solved that, it is now answering to ICMP packets, although this still does not work (see below), but at least it DOES answer now
- My Linux boxes did not have firewall and did answer the ICMP request but nothing returns back to the VPN client. All boxes are "equal" now
(just for memory, my config is : local network is 192.168.2.x, 192.168.2.1 is default GW, 192.168.2.203 is a NAS acting as the OpenVPN server and 192.168.4.x is the VPN network)
(for recollection, an ICMP request FROM the Windows box reaches correcty the VPN clients and receives and answer - only the other way around was/is a problem)
- So, as expected, when receiving a ICMP from 192.168.4.x, the Windows box now answers and (as expected) sends the packet to 192.168.2.1 that is supposed to forward it back to 192.168.2.203.
- What seems to happen is that the default GW answers by an "ICMP redirect" telling to the Windows box that there is a better route to 192.168.2.203 than going through the GW. This makes sense but what seems to happen is that not only the default GW answers with the "redirect" but also does NOT do the job of forwarding
- Adding manually a route in the Windows box that says that 192.168.4.x must be reached through 192.168.2.203 is a solution that I tested successfully, but I don't want to do that on all my boxes on my local network
So I guess my question to network gurus is "am I doing something wrong with my config where the default GW on 192.168.2.1 is supposed to forward 192.168.4.x to 192.168.2.203 or is this a bug in the routing of the default GW (a DIR655) regarding handling of "better route" option"
Thanks