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
Subnets
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- ecrist
- Forum Team
- Posts: 237
- Joined: Wed Nov 26, 2008 10:33 pm
- Location: Northern Minnesota, USA
- Contact:
Re: Subnets
Both of your first and second subnets suck. Try something less common. See RFC1918.
Sent from my HTC Glacier using Tapatalk
Sent from my HTC Glacier using Tapatalk
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Sep 15, 2011 10:12 pm
Re: Subnets
Hi,ecrist wrote:Both of your first and second subnets suck. Try something less common. See RFC1918.
Sent from my HTC Glacier using Tapatalk
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?