How to configure OpenVPN as described?

Need help configuring your VPN? Just post here and you'll get that help.

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.
Post Reply
User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

How to configure OpenVPN as described?

Post by Holmes.Sherlock » Thu Oct 20, 2011 2:17 am

I want to prepare OpenVPN as follows:
  • It will allocate 10.8.0.1/24 to itself
  • There will be three different client configuration files, viz. clientA, clientB, clientC
  • On connection, a specific network will be assigned to a specific client, e.g. clientA will be handed over a pool of 10.8.1.1/24, clientB will be allocated 10.8.0.2.1/24 & clientC will be allotted 10.8.0.3.1/24.
How should the config files look like?

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: How to configure OpenVPN as described?

Post by Mimiko » Thu Oct 20, 2011 5:41 am

Create 3 instances of OpenVPN server with different IP pools. You can't use one instance for different ip masks.

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Thu Oct 20, 2011 5:56 am

Mimiko wrote:Create 3 instances of OpenVPN server with different IP pools. You can't use one instance for different ip masks.
I think this can be done with single VPN server instances. Look at the diagram.

Image

The box referred to as 10.0.0.1 - Main Router runs an OpenVPN server which distributes different IP pools to connecting clients. Clients are given different config files based on their Team#.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: How to configure OpenVPN as described?

Post by Mimiko » Thu Oct 20, 2011 6:10 am

You may give ip's to clients using ccd files, but clients with IP 10.n.0.0, where n is not 1, will never have access to 10.1.0.0, because the gw for them will be in different mask. You still don't understand the IP tehnology.

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Thu Oct 20, 2011 8:31 am

Mimiko wrote:You may give ip's to clients using ccd files, but clients with IP 10.n.0.0, where n is not 1, will never have access to 10.1.0.0, because the gw for them will be in different mask.
Means the diagram is incorrect?

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Thu Oct 20, 2011 11:05 am

Basically I'm trying to simulate a setup similar to this. May be it'll help you to answer to my questions.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: How to configure OpenVPN as described?

Post by Mimiko » Thu Oct 20, 2011 4:34 pm

You didn't understood the requirements on that link. Not the tun interfaces will be in different mask, but every team will create an interface (eth) with the given ip mask for them.

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Thu Oct 20, 2011 5:48 pm

Mimiko wrote:You didn't understood the requirements on that link. Not the tun interfaces will be in different mask, but every team will create an interface (eth) with the given ip mask for them.
Can you please guide me on creating the required client & server config files for the setup referred above?

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: How to configure OpenVPN as described?

Post by Mimiko » Thu Oct 20, 2011 6:07 pm

Do you whant to make that game? Please state clearly what you whant to accomplish.

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Thu Oct 20, 2011 6:14 pm

Mimiko wrote:Do you whant to make that game? Please state clearly what you whant to accomplish.
See, what happened is, we have a CTF team. We participated in a series of CF games out of which, two required OpenVPN based network setup. We couldn't do the setup as the instructions assumed that we are within a physical LAN where, in reality, we are scattered across the world. I'm trying to implement another layer of OpenVPN to create a network among us. Then, using the config files provided by CTF organizers, we'll do the setup accordingly. We have a couple of CTFs next month. That's why, I'm hurrying up to create a test environment so that the next game also do not turn into a mess.

Image

One more example is this

Image

Hope I'm a bit clearer now.
Last edited by Holmes.Sherlock on Fri Oct 21, 2011 2:15 am, edited 2 times in total.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: How to configure OpenVPN as described?

Post by Mimiko » Fri Oct 21, 2011 8:02 am

Sorry, the CTF game involves people that are familiar with networking and administering systems to battle and find vulnerabilities. In order to have chances - you have to have a lot of knowledge. I will not help in defeat others.

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Fri Oct 21, 2011 8:12 am

Mimiko wrote:I will not help in defeat others.
Not at all a good logic. Sorry if I sound harsh. Did you born with all your knowledge pre-fabricted in your brain?
Last edited by Holmes.Sherlock on Tue Oct 25, 2011 1:06 pm, edited 1 time in total.

User avatar
Holmes.Sherlock
OpenVPN User
Posts: 40
Joined: Wed Jul 06, 2011 4:51 am

Re: How to configure OpenVPN as described?

Post by Holmes.Sherlock » Tue Oct 25, 2011 1:05 pm

I tried to delete the post above just now & discovered that I can't. Mimiko, I earnestly apologize for being rude. Hope you'll forget it. :)

Post Reply