Subnets

This forum is for general conversation and user-user networking.
Post Reply
GPaseto
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 15, 2011 10:12 pm

Subnets

Post by GPaseto » Thu Sep 15, 2011 10:57 pm

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

User avatar
ecrist
Forum Team
Posts: 265
Joined: Wed Nov 26, 2008 10:33 pm
Location: Minneapolis, MN
Contact:

Re: Subnets

Post by ecrist » Fri Sep 16, 2011 4:31 am

Both of your first and second subnets suck. Try something less common. See RFC1918.

Sent from my HTC Glacier using Tapatalk
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel Twitter: @ecrist
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN

GPaseto
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 15, 2011 10:12 pm

Re: Subnets

Post by GPaseto » Mon Sep 19, 2011 2:13 pm

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?

Post Reply