mbruel Hello, I'm not sure this is possible but here is what I'd like to do. From home, I connect with my laptop to my work network using openvpn. I'm then able to reach any of the stations there using whatever protocol. What I need to do would be that some of those stations could reach my laptop home. Is that possible? In fact I'm running a server on my laptop (so at home), Im launching some apps on some stations at work, and those are supposed to send me reports (on the server running on my laptop at home) to indicate the progress of their tasks. At the moment they're not able to reach me... What I've done is: My home laptop ip is 192.168.22.10. The tap0 IP is 10.23.12.10. My work network is 192.168.1.0/24, the openvpn server is on 192.168.1.31, the interface it uses for openvpn clients is 10.23.12.1 I'm communicating my home IP (192.168.22.10) to the stations. I've added to routes on the stations: - first one to know how to reach the Openvpn server : route add 10.23.12.0/24 gw 192.168.1.31 - second ont to know how to reach my home network: route add 192.168.22.0/24 gw 10.23.12.1 Shouldn't I be able to reach my laptop with that routes? (The stations are not able to reach 192.168.22.10 ) Thanks in advance for your help 🙂
TinCanTech mbruel wrote From home, I connect with my laptop to my work network using openvpn Do you administer the server side (work) network ?
mbruel No but I'm doing some tests with the administrator right now. Is there anything special to do on openvpn or is it allowed and so it's just a matter of routing rules we need to set properly?
mbruel ok it's working, it's the server hosting openvpn that needs to have the route to my home network using the IP the openvpn client gets when I connect. with my exemple: route add 192.168.22.0/24 gw 10.23.12.10 Then on the stations only the route to join my home network via the openvpn server : route add 192.168.22.0/24 gw 192.168.1.31 So the server hosting openvpn needs to activate the IP forwarding. Question: As the IP of the client is used on the server for the routing, would it be possible to set up the server so my laptop get all the time the same IP on the tap0 when I connect to the vpn? Maybe using a mac address or something?
TinCanTech I suggest you start here: https://openvpn.net/index.php/open-source/documentation/howto.html