Hi dear Community,
I am struggeling now for quite a while. I have some applications which are running in a VM and have to get bind to a specific, static IP Address. I am Using OPENVPN to get my Clients connected to the OPENVPN Server with the public IP 222.217.224.79.
Now I have to setup the clients somehow so all of them are going to get the same ip 222.217.224.79 configured as there own ones at the tun0 interface. How can I achieve that?
Thank you.
Forcing same IP as Server to all Clients
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Oct 12, 2020 4:36 pm
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Oct 12, 2020 4:36 pm
Re: Forcing same IP as Server to all Clients
Anyone?
Thank you
Thank you
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Oct 12, 2020 4:36 pm
Re: Forcing same IP as Server to all Clients
Thank you for you anwser. Does that mean, that my client gets the external IP from the Server assigend to his tun0 interface?TinCanTech wrote: ↑Fri Oct 16, 2020 1:01 pmI can only presume you mean "Redirect the client gateway" .. please see the howto.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Oct 12, 2020 4:36 pm
Re: Forcing same IP as Server to all Clients
From my interface tun0: my inet IP is 10.8.0.2. But i have to here the same IP as the external IP from my Openvpn Server is -> 222.217.224.79
-
- OpenVPN User
- Posts: 24
- Joined: Mon Jan 04, 2021 2:26 am
Re: Forcing same IP as Server to all Clients
This is exactly what a Virtual Private Net do. Now your vpn server and all its clients are in net 10.8.0.0/24. One machine can have multiple IP's simultaneously and that is how VPN works.