Reveal client ip

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Mikhail777
OpenVpn Newbie
Posts: 1
Joined: Sat Jun 25, 2022 7:56 am

Reveal client ip

Post by Mikhail777 » Sat Jun 25, 2022 7:57 am

Hi. I have some problem with iptables or openvpn settings maybe. openvpn client connect to openvpn server and after that connect to another server i see ip address of openvpn server. Need client ip

Now:

OpenVPN client -> openvpn.server ( register and obtain 10.8.8.2 ip )
OpenVPN client ( client ip 10.8.8.2 ) -> anotherserver (server ip 10.5.5.2) = in anotherserver logs i see : login from openvpn.server
I want:

OpenVPN client -> openvpn.server ( register and obtain 10.8.8.2 ip )
OpenVPN client (client ip 10.8.8.2) -> anotherserver (server ip 10.5.5.2) = in anotherserver logs i see : login from 10.8.8.2

How i can do this ? Thx ! :cry:

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 787
Joined: Tue Feb 16, 2021 10:41 am

Re: Reveal client ip

Post by openvpn_inc » Wed Jul 06, 2022 10:48 pm

Hi Mikhail,

It sounds like you are using source NAT on the openvpn.server. In iptables terms that would be SNAT or MASQUERADE.

regards, rob0
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply