webmain vpn wont start

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
darklord
OpenVpn Newbie
Posts: 5
Joined: Sun Nov 27, 2011 3:17 pm

webmain vpn wont start

Post by darklord » Sun Nov 27, 2011 3:23 pm

server directive network/netmask combination is invalid
Use --help for more information

i tryed the

Code: Select all

http://michigantelephone.wordpress.com/2009/06/22/setting-up-an-openvpn-tunnel-using-a-centos-based-system-as-the-server-and-a-router-flashed-with-tomato-firmware-as-the-client-part-3/
and

Code: Select all

http://www.frontiernet.net/~beakmyn/vpn%20howto/Complete%20Home%20VPN%20Howto%20Guide.html#mozTocId301771
but still having alot of problems.. can you help?

FeileX
OpenVpn Newbie
Posts: 11
Joined: Sun Nov 27, 2011 3:37 pm

Re: webmain vpn wont start

Post by FeileX » Sun Nov 27, 2011 3:43 pm

Hmmm, without any config files, it's hard to read exactly what is encoded on your server's harddrives. :)

I'd recommend using PasteBin http://pastebin.com/for your config files.
Posting your exact IP address on paste bin probably isn't the best idea, I recommend removing the last digits and replacing them with x's...
IE, my IP address is 50.135.217.xxx

Other than that, look through your config files before you paste them, and edit anything that you don't want the world to see. If you do remove something, make sure you explicitly call it out.

darklord
OpenVpn Newbie
Posts: 5
Joined: Sun Nov 27, 2011 3:17 pm

Re: webmain vpn wont start

Post by darklord » Sun Nov 27, 2011 3:58 pm

how can i get the system info.. from SSH?

FeileX
OpenVpn Newbie
Posts: 11
Joined: Sun Nov 27, 2011 3:37 pm

Re: webmain vpn wont start

Post by FeileX » Sun Nov 27, 2011 4:00 pm

Yea, or your console, if you have direct access...
The config files we are looking for are your server.conf file, and your client.conf file.

darklord
OpenVpn Newbie
Posts: 5
Joined: Sun Nov 27, 2011 3:17 pm

Re: webmain vpn wont start

Post by darklord » Sun Nov 27, 2011 5:27 pm

Code: Select all

http://pastebin.com/W65jzypZ
there you go

FeileX
OpenVpn Newbie
Posts: 11
Joined: Sun Nov 27, 2011 3:37 pm

Re: webmain vpn wont start

Post by FeileX » Sun Nov 27, 2011 5:52 pm

Ok....
http://openvpn.net/index.php/open-sourc ... howto.html
Read through this, it will give you lots of insights....

For starters, dev tun0 is wrong... I believe it should be just dev tun
As for no keys...
Have you created your keys for the server and created keys for the client?

darklord
OpenVpn Newbie
Posts: 5
Joined: Sun Nov 27, 2011 3:17 pm

Re: webmain vpn wont start

Post by darklord » Sun Nov 27, 2011 6:03 pm

FeileX wrote:Ok....
http://openvpn.net/index.php/open-sourc ... howto.html
Read through this, it will give you lots of insights....

For starters, dev tun0 is wrong... I believe it should be just dev tun
As for no keys...
Have you created your keys for the server and created keys for the client?
ok i got that to work.. but i cant not still get it turn on

FeileX
OpenVpn Newbie
Posts: 11
Joined: Sun Nov 27, 2011 3:37 pm

Re: webmain vpn wont start

Post by FeileX » Sun Nov 27, 2011 7:13 pm

What do you mean it wont start?
Can you share the log files?

darklord
OpenVpn Newbie
Posts: 5
Joined: Sun Nov 27, 2011 3:17 pm

Re: webmain vpn wont start

Post by darklord » Sun Nov 27, 2011 8:30 pm

Options error: --server directive network/netmask combination is invalid
Use --help for more information.
Options error: --server directive netmask is invalid
Use --help for more information.
Options error: --server directive network/netmask combination is invalid
Use --help for more information.
Options error: --server directive network/netmask combination is invalid
Use --help for more information.

FeileX
OpenVpn Newbie
Posts: 11
Joined: Sun Nov 27, 2011 3:37 pm

Re: webmain vpn wont start

Post by FeileX » Mon Nov 28, 2011 7:50 am

Well, looking again at your config files, you list the server as 174.59.147.xx
Server should be the ip address that you are trying to expose...
Such as 10.8.0.0 /255.255.255.0
Try changing that, set "verb 5",
and then restart the service.

Then use pastebin to dump the output of servers/serv/logs/openvpn.log.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: webmain vpn wont start

Post by Mimiko » Mon Nov 28, 2011 1:49 pm

In the server.conf replace with:

Code: Select all

server 10.8.0.0 255.255.255.0
and dont use your public ip.

Post Reply