Network setup with the same settings on one site.

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
maselhappy
OpenVpn Newbie
Posts: 2
Joined: Thu May 30, 2013 6:21 pm
Location: Hamburg

Network setup with the same settings on one site.

Post by maselhappy » Fri May 31, 2013 1:17 pm

Hi,

I have the following to do but i am not sure how to configure this with openVPN.
I have 20 measuring devices which are located in different networks. All this networks have the same ip structure.
Network A: Device 172.16.0.200
Router 172.16.0.1
Network B: Device 172.16.0.200
Router 172.16.0.1
Network C: Device 172.16.0.200
Router 172.16.0.1

Each of this router accept OpenVPN calls and I want to connect over an internal transfer network all devices on the same time.
The software for theses devices requires a direct ftp access.
I think we need a NAT router or similar for this situation:
Example Network A
Server Internal – Gateway – Router to the OpenVPNNetwork – Tunnel to Network A – connecting to device NW A
192.168.0.2 – 192.168.0.1 – 192.168.0.(1) – mapping IP Device Network A to IP w.x.y.z – 172.16.0.200
Example Network B
Server Internal – Gateway – Router to the OpenVPNNetwork – Tunnel to Network A – connecting to device NW A
192.168.0.2 – 192.168.0.1 – 192.168.0.(1) – mapping IP Device Network A to IP w.x.y.z+1 – 172.16.0.200

Could you understand my problem?

I can explain more if it is required.

Br
Marcel

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Network setup with the same settings on one site.

Post by janjust » Tue Jun 04, 2013 12:24 pm

this is more a NATting issue than an openvpn issue; if you can set up an OpenVPN connection to each router and assign a unique (VPN-space) IP Address then with the right NATting rules you can address each device.

maselhappy
OpenVpn Newbie
Posts: 2
Joined: Thu May 30, 2013 6:21 pm
Location: Hamburg

Re: Network setup with the same settings on one site.

Post by maselhappy » Wed Jul 03, 2013 5:49 pm

Sorry for my late answer, i thought, that i get an email if someone answers on my question. I don't have clicked "notify me".

First this sounds good, but how can i setup a unique VPN-Space inside the config file. If i google VPN-Space i got no good information.

Today my config file on the client which i use for dialing looks like this:

Code: Select all

dev tun
proto tcp-client
port 1500
client
pkcs12 certs/xx.p12
persist-tun
persist-key
tls-client
tls-remote device2
keepalive 10 120
connect-retry 120
connect-retry-max 5
script-security 1
auth-nocache
verb 2
remote 123.456.123.456
If i will let a server to handle all connections i will use a Linux system but i have to make sure that 192.168.10.1 is very time Site001.
or have i add many virtual lan adapters and use a small script which says eth0.1 is site001, eth0.2 is site002.?

Br
Marcel

Post Reply