I
I
iLockMore2021-12-05 16:10:22
openvpn
iLockMore, 2021-12-05 16:10:22

How to reach the camera through OPENVPN?

Good day to all!
I would like to understand how to deploy a remote local network using OpenVpn.
Essence of the question:
1) Combine 2 local networks for example (Apartment - 192.168.0.1, Dacha - 192.168.1.1)
2) Get access to the camera located in the country house from the apartment (There is a registrar in the apartment and writes the cameras that are on the network - 192.168. 0.1, here you also need to add a couple of cameras from the subnet 192.168.1.1)
3) Get pings from 1 locale to another.

What do I have?
- A server on Debian, ubuntu, etc. (any one can be installed) it has Open Vpn,
- An apartment router with support for Open Vpn Asus (RT-AC1300GPLUS
)
-In the apartment and in the country gray IP! How to combine them using the server? Which one has a static IP?

Thanks a lot everyone!)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Barbolin, 2021-12-05
@dronmaxman

Do you need a server to link two locations with gray addresses? You can try to build a VPN using ZeroTier, all participants can be with gray addresses.
If all the same OpenVPN, then let's say
Server white IP 81.33.44.10
Server VPN address 10.10.1.1 The
router apartment has a VPN address. 10.10.1.2 The
router has a VPN address of 10.10.1.3.
Then the following routes are needed
To the server
route add 192.168.0.0 mask 255.255.255.0 10.10.1.2
route add 192.168.1.0 mask 255.255.255.0 10.10.1.3
On the router apartment
route add 192.168.1.0 mask 255.255.255.0
10.10.1
On the server itself, you need to enable ip_forward (sudo sysctl -w net.ipv4.ip_forward=1)

D
Dimonchik, 2021-12-05
@dimonchik2013

the easiest way is a server and a connection to it from two networks - this will give independence from IP providers
, and then configure routes

M
meDveD_spb, 2021-12-05
@meDveD_spb

If you don’t really understand, as they wrote above, use ZeroTier, it’s like two fingers there.
Although, I would use this option anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question