Help cannot configure connect FROM 10.0.0.0/8

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
Abnorman
OpenVpn Newbie
Posts: 1
Joined: Tue Jan 13, 2015 10:19 pm

Help cannot configure connect FROM 10.0.0.0/8

Post by Abnorman » Tue Jan 13, 2015 10:32 pm

Hi. Apologies if this is a silly question, but I have not been able to configure OpenVPN.

The problem: Every example I can find of OpenVPN config assumes that it can distribute the 10.8.0.0/24 addresses as its own.

I may not do this. This is our head office network. 10.0.0.0/8 is not available to be used by OpenVPN.

All attempts I have made to change the OpenVPN network to 172 or 192.168 private network addresses I can use have failed. I can find no documentation at all for anything but the damned 10.8.0.0 setup.

How do I simply modify the network to a different one?

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

Re: Help cannot configure connect FROM 10.0.0.0/8

Post by maikcat » Wed Jan 14, 2015 7:02 am

All attempts I have made to change the OpenVPN network to 172 or 192.168 private network addresses I can use have failed. I can find no documentation at all for anything but the damned 10.8.0.0 setup.
you are joking right? :D

post your configs please, usually you need to change the server directive...

Michael.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Help cannot configure connect FROM 10.0.0.0/8

Post by Traffic » Wed Jan 14, 2015 12:30 pm

maikcat wrote:usually you need to change the server directive...
Using the example server and client configs the only change you have to make is the server directive ..

EG:

Code: Select all

server 192.168.110.0 255.255.255.0
Later, you will probably need to change your iptables NAT rule ..

EG:

Code: Select all

iptables -t nat -A POSTROUTING -s 192.168.110.0/24 -o ethX -j MASQUERADE
Abnorman wrote: This is our head office network. 10.0.0.0/8 is not available to be used by OpenVPN
Does your head office really require 16,777,216 hosts or is this just a poorly configured network ..

Have you read this:
http://en.wikipedia.org/wiki/Private_network

Post Reply