5zymon wroteI would like my router to connect to the VPS, not receive any address, and when I connect with other machine to VPS I would like my router to give that machine IP address from DHCP pool
I don't think your approach is going to work .. However, openvpn can allow you to connect to your Pi from outside your home with the VPS server.
5zymon wroteThe openvpn config is set to this server-bridge 192.168.1.0 255.255.255.0
Unless you have a specific requirement you probably do not need a bridge. And setting your VPN subnet to 192.168.1.0/24 is a terrible idea ..
- NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
:arrow:
Never use 192.168.0.0/24 or 192.168.1.0/24 (or other common subnets) for your OpenVPN Server :!:
While I do not understand your approach you should read this, which explains how to route your client network over the VPN:
HOWTO: Expanding the scope of the VPN to include additional machines