server setup

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Dazcomputers
OpenVpn Newbie
Posts: 7
Joined: Sat Jul 13, 2019 10:36 am

server setup

Post by Dazcomputers » Mon May 18, 2020 9:01 pm

Im getting this error and can't figure out what I'm doing wrong. Tried from scratch 3 times. Just trying to get the server configured and started up for the first time. I've been reading for hours trying to figure this out with no luck. Please point me in the right direction so I can work through this. Thanks

I just can't find where this error is pulling from.

Code: Select all

Options error: Unrecognized option or missing or extra parameter(s) in Server.ovpn:3: Port (2.4.9)
Use --help for more information.
Server config

dev-node "ServerVPN"
mode server
Port 1194

proto tcp4-server
dev tun

tls-server
tls-auth "C:\\Program Files\\OpenVPN\\config\\easy-rsa\\keys\\ta.key" 0

tun-mtu 1500
tun-mtu-extra 32
mssfix 1450

ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.key"
dh "C:\\Progam Files\\OpenVPN\\easy-rsa\\keys\\dh2048.pem"

server 10.10.10.0 255.255.255.0

client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo

persist-key
persist-tun

client-config-dir "C:\\Program Files\\OpenVPN\config"

verb 3

route-delay 5
route-method exe

push "route 192.168.0.0 255.255.255.0"
route 192.168.182.0 255.255.255.0
Last edited by Pippin on Tue May 19, 2020 11:54 am, edited 3 times in total.
Reason: Formatting

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: server setup

Post by TinCanTech » Mon May 18, 2020 9:17 pm

Dazcomputers wrote:
Mon May 18, 2020 9:01 pm
Port 12345
--port ;)

Dazcomputers
OpenVpn Newbie
Posts: 7
Joined: Sat Jul 13, 2019 10:36 am

Re: server setup

Post by Dazcomputers » Mon May 18, 2020 11:11 pm

I set the port to 1194 but get the same error.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: server setup

Post by TinCanTech » Mon May 18, 2020 11:15 pm

port not Port ... :roll:

Dazcomputers
OpenVpn Newbie
Posts: 7
Joined: Sat Jul 13, 2019 10:36 am

Re: server setup

Post by Dazcomputers » Tue May 19, 2020 8:22 am

Thank you TinCAnTech that got me passed the error and on to the next. I really appreciate the help. One darn capital letter! Gave me hours of great learning and researching time though.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: server setup

Post by TinCanTech » Tue May 19, 2020 10:00 am

I did the same thing with --Dev once, had me scratching my head for sooome time 8-)

Dazcomputers
OpenVpn Newbie
Posts: 7
Joined: Sat Jul 13, 2019 10:36 am

Re: server setup

Post by Dazcomputers » Thu May 21, 2020 10:28 pm

Just wanted to let you know I finally got the server up and a client connected. Been working on it on and off for about a year banging my head. I feel like a million bucks now. Also feel like I have a much better understanding of the process now as well. I think Ill leave it setup for a bit before I tear it down to do over again to be sure I know what I'm doing but I wanted to thank you for your help TinCanTech. Very Much appreciated.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: server setup

Post by TinCanTech » Thu May 21, 2020 11:15 pm

Thank you for the positive feedback 8-)

I have said it before and I will say it again: If you want to know about openvpn.

Post Reply