Koozali.org formerly Contribs.org

Required access 2 subnets via openvpn-bridge due to corona home work

Offline leonp

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.

Offline mmccarn

  • *
  • 2,568
Re: Required access 2 subnets via openvpn-bridge due to corona home work
« Reply #1 on: April 02, 2020, 12:00:11 PM »
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

Offline leonp

Re: Required access 2 subnets via openvpn-bridge due to corona home work
« Reply #2 on: April 02, 2020, 08:15:42 PM »
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?

Offline ReetP

  • *
  • 3,021
Re: Required access 2 subnets via openvpn-bridge due to corona home work
« Reply #3 on: April 02, 2020, 09:38:34 PM »
Go to your remote server manager, Security, Local Networks

Add your 192.168.1.x network in there

It should be OK.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline leonp

Re: Required access 2 subnets via openvpn-bridge due to corona home work
« Reply #4 on: April 03, 2020, 12:06:42 PM »
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!

Offline ReetP

  • *
  • 3,021
Re: Required access 2 subnets via openvpn-bridge due to corona home work
« Reply #5 on: April 03, 2020, 04:50:01 PM »
Good news then!

You haven't added an interface, just a route.

Check:

Code: [Select]
route
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation