Create subnet on the fly

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
chechuironman
OpenVpn Newbie
Posts: 4
Joined: Wed Jan 26, 2011 11:28 am

Create subnet on the fly

Post by chechuironman » Wed Jan 26, 2011 11:30 am

Hi guys,

I have an OpenVPN working, It has one subnet, but i want to add some subnets more without restart the service. There is some way to add a subnet without shutdown the subnet is working?

thanks

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Create subnet on the fly

Post by maikcat » Wed Jan 26, 2011 12:00 pm

hi there,

can you please explain in more detail what do you mean by telling "add more subnets"?.

cheers,

michael
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

chechuironman
OpenVpn Newbie
Posts: 4
Joined: Wed Jan 26, 2011 11:28 am

Re: Create subnet on the fly

Post by chechuironman » Wed Jan 26, 2011 12:10 pm

yes i can explain.

I have a virtual net created with OpenVPN, the subnet that I created is 10.10.10.0, and it's working ok...it connect a network with some machines through this network.

Now I want to add dinamically some subnets more for connect other networks and machines...

Can I do without shutdown the service...with some script??

thanks

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Create subnet on the fly

Post by maikcat » Wed Jan 26, 2011 12:40 pm

if you mean that the virtual network is the tun0 interface then
you cant add more subnets...

but you can have 2 or more openvpn configs in the same server
(using different protocol/ports).

cheers,

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply