How to configure tunnel ip address?

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
carbotex
OpenVpn Newbie
Posts: 2
Joined: Mon Jun 08, 2015 10:13 am

How to configure tunnel ip address?

Post by carbotex » Mon Jun 08, 2015 10:17 am

Hi,

I'm new to openvpn, I'm trying to figure out how to run multiple OpenVPN instances on a single machine.

When the first client connect to the server, it will create a tun0 device interface and set the IP to 10.200.4.0. For the second client, it will create a tun1 device with IP 10.200.4.0 also. How do I specify a different IP for each tun device?

-wa

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

Re: How to configure tunnel ip address?

Post by Traffic » Fri Jun 12, 2015 11:04 am

Why do you need more than one OpenVPN instance ?
carbotex wrote:How do I specify a different IP for each tun device?
In your server configs use:
  • Server #1: --server 10.100.0.0 255.255.255.0
  • Server #2: --server 10.200.0.0 255.255.255.0

Post Reply