Page 1 of 1

Subnets

Posted: Thu Sep 15, 2011 10:57 pm
by GPaseto
Hi,

I'm testing:
One network with two subnets.

First subnet - 192.168.1.0/25
Second subnet - 192.168.1.128/25

And I would like to put OpenVPN(Point-to-Point) to connect these subnets.

The tunnel is: 10.1.1.1 10.1.1.2

My ask is:
- Is possible to create?
- What's the route configuration?

PS: I'm using linux

Regards

Re: Subnets

Posted: Fri Sep 16, 2011 4:31 am
by ecrist
Both of your first and second subnets suck. Try something less common. See RFC1918.

Sent from my HTC Glacier using Tapatalk

Re: Subnets

Posted: Mon Sep 19, 2011 2:13 pm
by GPaseto
ecrist wrote:Both of your first and second subnets suck. Try something less common. See RFC1918.

Sent from my HTC Glacier using Tapatalk
Hi,

I tried this:

Server:
dev tun
ifconfig 10.1.1.1 10.1.1.2
proto udp
port 1194
secret /etc/openvpn/pass.key
keepalive 10 60
comp-lzo
persist-tun
persist-key
route 192.168.1.128 255.255.255.128


Client:
remote 192.168.1.80 # IP SERVER
dev tun
ifconfig 10.1.1.2 10.1.1.1
proto udp
port 1194
secret /etc/openvpn/pass.key
keepalive 10 60
comp-lzo
persist-tun
persist-key
route 192.168.1.0 255.255.255.128

But doesn't work.
Something wrong?