OpenVPN configuration to access local clients?

  • So I installed the OpenVPN plugin (not AS), like so;

    But when logged inn successfully to the OpenVPN server I'm unable to connect to local clients. Internet works fine, and some local stuff like GW (192.168.1.1) and OMV host works fine. Just normal Windows clients I can't access.


    Anything I forgot?


    PS: yes I need port 443 and TCP as they're blocking the standard VPN port here

  • You need to add
    push "route 192.168.1.0 255.255.255.0"


    In extra options.


    Also you'll need a masquerade rule in iptables so the source address of the vpn Clients gets translated into the server lan ip


    Thanks, did it with (and it works, I can now browse the internet from the client with VPN)

    Code
    iptables -t nat -I POSTROUTING -o eth0 -s 10.8.0.0/24 -j MASQUERADE


    But how can I forward discovery traffic like DLNA (which is on another server) or NVIDIA Gamestream (another PC)?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!