A
A
Anton2020-06-05 03:49:51
linux
Anton, 2020-06-05 03:49:51

Sending post requests via vpn - will my scheme work?

There is an nginx server on debian on the Internet with a white ip on the vps where the sites are spinning.
There is a Kinetic router at home, which includes a modem and which responds to the home local network at 192.168.8.1.
The task is to send post-requests from the site to the home modem, which, having received a request, will send SMS.
In the local network at home, everything works, but you need to send from Outside.
I wanted to get a white ip from the provider and forward ports, and then I started thinking about vpn.
-
If I raise the built-in Client on Kinetics, and the OpenVpn Server on vps, will I be able to implement my plan?
How will the modem be accessed? Do I need to specify the ip of the modem in the post request or what? Are there any security pitfalls?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Barbolin, 2020-06-05
@anton99zel

>> If I raise the built-in Client on Kinetics, and the OpenVpn Server on vps, will I be able to implement my plan?
Yes. By the way keenect supports wireGuard.
>> How will the modem be accessed? Do I need to specify the ip of the modem in the post request or what?
On the server (VPS) you will have one more virtual network interface interface, you will need to register a route to the modem through this interface, the address of the modem will be the same as now.
>> Are there any security pitfalls?
Keep your server secure, if it gets hacked they will get access to your home network.
In practice, hacking is usually done by bots, and their goal is to search for soldiers in the DDOS army)

K
Korben5E, 2020-06-05
@Korben5E

Do the opposite, let the home server send requests, say every 30 minutes and check whether something needs to be sent or not.

P
PeeX, 2020-06-05
@PeeX

Some routers are capable of ssh tunneling. If yours can, then even vpn is not needed for these purposes. In this case, it is necessary to send to the local vps address to the port specified when raising
. If vpn, then to the modem address

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question