Why i can't access computers in LAN behind OpenVPN server?

113

You didn't post your openvpn config, but I'm guessing you're missing the route to the rest of the LAN:

push "route 192.168.182.0 255.255.255.240"

This will add the necessary route on the client when they connect. Also, make sure that the other clients on your LAN know to use the OpenVPN server as their gateway for the OpenVPN network.

Share:
113

Related videos on Youtube

Jurby
Author by

Jurby

Updated on September 18, 2022

Comments

  • Jurby
    Jurby over 1 year

    For instance, I have an animation, I play it with setInterval. When an event that I previously set on the webpage happens I want a callback function to be fired to call clearInterval. Curious if there is any way to setup such callback function for all events existing in the webpage. Because otherwise I will have to go over every event I set previously. In form of code I am interested in something like that:

    const i = setInterval(function() {
        //do something
    }, 50);
    
    AdditionalCallbackForEveryEventSet(function() {
        clearInterval(i);
    });
    
    • Doon
      Doon almost 9 years
      unless yoru open vpn server is your default GW. or your OPENVPN server is doing NAT, you will need to either add a route on your GW, or add routes to all your servers so that packets for your open vpn client IPS wind up at the openvpn server
    • avasin
      avasin almost 9 years
      I tried to add OVPN Server as gateway to 192.168 subnet on OVPN Client via command route add -net 192.168.0.0/24 gw 46.4.120.218, but this leads to SIOCADDRT: No such process error.
  • avasin
    avasin almost 9 years
    By other clients on you LAN do you mean VMs in VLAN behind OpenVPN server, or OpenVPN clients? I've copied server.conf from examples to /etc/openvpn/server.conf and enabled push as you said.. but nothing changed, i can't still access VLAN VMs :(
  • Jim G.
    Jim G. almost 9 years
    I mean the VMs behind the server. Please post sanitized server and client conf files, that will eliminate any confusion.