Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: leonp on April 01, 2020, 09:58:19 PM
-
Hello, all.
In my office I run SME v9.2 in the subnet 192.168.50.X. But there in the office is a special embedded device which has 192.168.1.1 address. It is accessed from within the office simply by computers having the second IP address in this 192.168.1.X subnet.
Now, because of the corona virus I am forced to work from home.
I built the VPN using openvpn-bridge and it works fine - I can fully access the 192.168.50.X subnet.
But all my attempts to access 192.168.1.1 fails.
I will be very thankful for a hint how is it possible to implement.
-
I don't know if there's a way to do this inside the openvpn-bridge config, but this should also work:
Configure 192.168.1.1/24 as a new 'local' network on your home SME server, with the Router set to the 192.168.50.X ip address of the office SME server.
In /server-manager -
- select 'Local networks' on the left
- click 'Add Network'
- Network address: 192.168.1.0
- Subnet mask: 255.255.255.0
- Router address: 192.168.50.1 (assuming this is the LAN IP of the office SME server)
caveats -
* This won't work if you have 192.168.1.0/24 defined at home, too
* This assumes that the SME servers are the default gateways for both offices
-
Thank you, mmccarn.
Sorry for my stupidity...:-)
My first error is that I missed that my office SME (the only one here, I don't have another at home) has no address in 192.168.1.X subnet! Therefore it can't reach the device by itself.
And I can't find a way to add it from the server-manager. Should I do this manually?
-
Go to your remote server manager, Security, Local Networks
Add your 192.168.1.x network in there
It should be OK.
-
Thanks a lot for the help!
It works!!!
Although I can't understand how - the 'ifconfig" output does not contain anyone of 192.168.1.X addresses at all.
But again, everything work really fine.
I wish the corona virus could be overcome as fast as my problem! :-)
Be healthy all of you!
-
Good news then!
You haven't added an interface, just a route.
Check:
route