One Public IP for every users

Samples of working configurations.
Locked
yourdom
OpenVpn Newbie
Posts: 1
Joined: Sat Nov 14, 2015 12:24 am

One Public IP for every users

Post by yourdom » Sat Nov 14, 2015 12:55 am

Hi,

it is to give its own public IP every possible user?

My server has several public IP's and these should be provided fixed users about OpenVPN with ingoing and outgoing traffic.

Public IP's for Users:
xxx.22.49.58
xxx.22.49.59
xxx.22.49.60
xxx.103.16.11
xxx.103.8.7
xxx.103.8.9

Internal IP's:
User 1: 10.0.8.2
User 2: 10.0.8.3
User 3: 10.0.8.4
User 4: 10.0.8.5

How do I provide users with a public IP?
User 1: xxx.22.49.58 , User 2: 22.49.59 , ......

My server is a Debian Jessie.
IPv4 Net Forward is active.

Thanks for your answer.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: One Public IP for every users

Post by Traffic » Fri Nov 20, 2015 12:52 am

This can be done using --client-connect script and iptables

This was discussed on the OpenVPN Mailing list.

http://thread.gmane.org/gmane.network.o ... ocus=36139

You are so lucky I remember :mrgreen:

Locked