Unrecognized option or missing or extra parameter

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
arjhay
OpenVpn Newbie
Posts: 4
Joined: Fri Mar 16, 2018 2:39 pm

Unrecognized option or missing or extra parameter

Post by arjhay » Fri Mar 16, 2018 3:00 pm

could someone help me fix this problem
runner a portable 2.4.3 / tap window 9.21.2

log
Options error: Unrecognized option or missing or extra parameter(s) in sg-mct3.tcpvpn.com-443.ovpn:2: Dev (2.4.3)
Use --help for more information.

config
client
Dev tun
proto tcp
remote sg3-mct.tcpvpn.com
topology subnet
server 10.8.0.0 255.255.255.0
route 52.74.0.0/16;121.1.48.0/21;125.5.87.0/24;125.60.248.0/22;203.84.184.0/21
route-method exe
route-delay 2
keepalive 10 180
redirect-gateway def1
connect-retry-max 5
http-proxy-option CUSTOM-HEADER Host clients3.google.com
http-proxy-option CUSTOM-HEADER X-Online-Host clients3.google.com
http-proxy “Remote_Proxy/Squid_Proxy_Here” 188.166.249.52 3128
http-proxy-retry
http-proxy-timeout 2
redirect-gateway def1
dhcp-option DNS 209.244.0.3
dhcp-option DNS 209.244.0.4
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
setenv CLIENT_CERT 0
resolv-retry infinite
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
key-direction 1
nobind
cipher BF-CBC
persist-tun
comp-lzo
reneg-sec 0
verb 3

<auth-user-pass>
barjhay
dikoalam
</auth-user-pass>

<ca>
-----BEGIN CERTIFICATE-----

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4293
Joined: Fri Jun 03, 2016 1:17 pm

Re: Unrecognized option or missing or extra parameter

Post by TinCanTech » Fri Mar 16, 2018 3:11 pm

arjhay wrote:
Fri Mar 16, 2018 3:00 pm
Options error: Unrecognized option or missing or extra parameter(s) in sg-mct3.tcpvpn.com-443.ovpn:2: Dev (2.4.3)
arjhay wrote:
Fri Mar 16, 2018 3:00 pm
config
client
Dev tun
:geek:

arjhay
OpenVpn Newbie
Posts: 4
Joined: Fri Mar 16, 2018 2:39 pm

Re: Unrecognized option or missing or extra parameter

Post by arjhay » Fri Mar 16, 2018 3:13 pm

TinCanTech wrote:
Fri Mar 16, 2018 3:11 pm
arjhay wrote:
Fri Mar 16, 2018 3:00 pm
Options error: Unrecognized option or missing or extra parameter(s) in sg-mct3.tcpvpn.com-443.ovpn:2: Dev (2.4.3)
arjhay wrote:
Fri Mar 16, 2018 3:00 pm
config
client
Dev tun
:geek:
forgot to put some space on the config.

[oconf]client
Dev tun
proto tcp
remote sg3-mct.tcpvpn.com
topology subnet
server 10.8.0.0 255.255.255.0
route 52.74.0.0/16;121.1.48.0/21;125.5.87.0/24;125.60.248.0/22;203.84.184.0/21
route-method exe
route-delay 2
keepalive 10 180
redirect-gateway def1
connect-retry-max 5
http-proxy-option CUSTOM-HEADER Host clients3.google.com
http-proxy-option CUSTOM-HEADER X-Online-Host clients3.google.com
http-proxy “Remote_Proxy/Squid_Proxy_Here” 188.166.249.52 3128
http-proxy-retry
http-proxy-timeout 2
redirect-gateway def1
dhcp-option DNS 209.244.0.3
dhcp-option DNS 209.244.0.4
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
setenv CLIENT_CERT 0
resolv-retry infinite
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
key-direction 1
nobind
cipher BF-CBC
persist-tun
comp-lzo
reneg-sec 0
verb 3

<auth-user-pass>
barjhay
dikoalam
</auth-user-pass>

<ca>
[/oconf]

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4293
Joined: Fri Jun 03, 2016 1:17 pm

Re: Unrecognized option or missing or extra parameter

Post by TinCanTech » Fri Mar 16, 2018 3:31 pm

arjhay wrote:
Fri Mar 16, 2018 3:13 pm
client
D ev tun
:roll:

arjhay
OpenVpn Newbie
Posts: 4
Joined: Fri Mar 16, 2018 2:39 pm

Unrecognized option or missing or extra parameter

Post by arjhay » Fri Mar 16, 2018 3:39 pm

could someone help me fix this problem.
runner a portable 2.4.3 / tap 9.21.2

CLIENT CONFIG

Code: Select all

client
dev tun
proto tcp
remote sg3-mct.tcpvpn.com
topology subnet
server 10.8.0.0 255.255.255.0
route 52.74.0.0/16;121.1.48.0/21;125.5.87.0/24;125.60.248.0/22;203.84.184.0/21
route-method exe
route-delay 2
keepalive 10 180
redirect-gateway def1
connect-retry-max 5

SERVER CONFIG

Code: Select all

http-proxy-option CUSTOM-HEADER Host clients3.google.com
http-proxy-option CUSTOM-HEADER X-Online-Host clients3.google.com
http-proxy “Remote_Proxy/Squid_Proxy_Here” 188.166.249.52 3128
http-proxy-retry
http-proxy-timeout 2
redirect-gateway def1
dhcp-option DNS 209.244.0.3
dhcp-option DNS 209.244.0.4
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
setenv CLIENT_CERT 0
resolv-retry infinite
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
key-direction 1
nobind
cipher BF-CBC
persist-tun
comp-lzo
reneg-sec 0
verb 3

<auth-user-pass>
barjhay
dikoalam
</auth-user-pass>

<ca>
VIEW LOG

Code: Select all

Fri Mar 16 23:40:52 2018 DEPRECATED OPTION: http-proxy-retry and socks-proxy-retry: In OpenVPN 2.4 proxy connection retries are handled like regular connections. Use connect-retry-max 1 to get a similar behavior as before.
Fri Mar 16 23:40:52 2018 DEPRECATED OPTION: http-proxy-timeout: In OpenVPN 2.4 the timeout until a connection to a server is established is managed with a single timeout set by connect-timeout
Options error: Unrecognized option or missing or extra parameter(s) in sg-mct3.tcpvpn.com-443.ovpn:38: auth-user-pass (2.4.3)
Use --help for more information.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4293
Joined: Fri Jun 03, 2016 1:17 pm

Re: Unrecognized option or missing or extra parameter

Post by TinCanTech » Fri Mar 16, 2018 4:16 pm

https://community.openvpn.net/openvpn/w ... nPage#lbAW

Start here:
HOWTO: For OpenVPN Community Edition

Please do not SPAM the forum with questions until you have read the HOWTO :!:

spydrome
OpenVpn Newbie
Posts: 1
Joined: Sun Jun 10, 2018 10:29 pm

Re: Unrecognized option or missing or extra parameter

Post by spydrome » Sun Jun 10, 2018 10:39 pm

###############################################################################
# The encryption and authentication algorithm.
#
# Default setting is good. Modify it as you prefer.
# When you specify an unsupported algorithm, the error will occur.
#
# The supported algorithms are as follows:
# cipher: [NULL-CIPHER] NULL AES-128-CBC AES-192-CBC AES-256-CBC BF-CBC
# CAST-CBC CAST5-CBC DES-CBC DES-EDE-CBC DES-EDE3-CBC DESX-CBC
# RC2-40-CBC RC2-64-CBC RC2-CBC
# auth: SHA SHA1 MD5 MD4 RMD160


auth SHA1


###############################################################################
# Other parameters necessary to connect to the VPN Server.
#
# It is not recommended to modify it unless you have a particular need.
client
dev tun3
proto tcp
remote 0.0.0.0
resolv-retry infinite
nobind
persist-key
persist-tun
ping 5
verb 3
cipher AES-128-CBC
fast-io
pull
socks-proxy-retry
http-proxy-retry
http-proxy 0.0.0.0 80
redirect-gateway

you need to fix it remote HTTP proxy returned: 'HTTP/1.0 200 OK' remote needs the 200 if you get 307 you need to remote it right and proxy

Sun Jun 10 17:54:41 2018 DEPRECATED OPTION: http-proxy-retry and socks-proxy-retry: In OpenVPN 2.4 proxy connection retries are handled like regular connections. Use connect-retry-max 1 to get a similar behavior as before.
Sun Jun 10 17:54:41 2018 DEPRECATED OPTION: http-proxy-retry and socks-proxy-retry: In OpenVPN 2.4 proxy connection retries are handled like regular connections. Use connect-retry-max 1 to get a similar behavior as before.
Sun Jun 10 17:54:41 2018 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Sun Jun 10 17:54:41 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Sun Jun 10 17:54:41 2018 library versions: OpenSSL 1.1.0h 27 Mar 2018, LZO 2.10
Enter Management Password:
Sun Jun 10 17:54:41 2018 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341
Sun Jun 10 17:54:41 2018 Need hold release from management interface, waiting...
Sun Jun 10 17:54:42 2018 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341
Sun Jun 10 17:54:42 2018 MANAGEMENT: CMD 'state on'
Sun Jun 10 17:54:42 2018 MANAGEMENT: CMD 'log all on'
Sun Jun 10 17:54:42 2018 MANAGEMENT: CMD 'echo all on'
Sun Jun 10 17:54:42 2018 MANAGEMENT: CMD 'bytecount 5'
Sun Jun 10 17:54:42 2018 MANAGEMENT: CMD 'hold off'
Sun Jun 10 17:54:42 2018 MANAGEMENT: CMD 'hold release'
Sun Jun 10 17:54:42 2018 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sun Jun 10 17:54:42 2018 NOTE: --fast-io is disabled since we are running on Windows
Sun Jun 10 17:54:42 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]76.89.178.32:1291
Sun Jun 10 17:54:42 2018 Socket Buffers: R=[65536->65536] S=[65536->65536]
Sun Jun 10 17:54:42 2018 Attempting to establish TCP connection with [AF_INET]76.89.178.32:1291 [nonblock]
Sun Jun 10 17:54:42 2018 MANAGEMENT: >STATE:1528667682,TCP_CONNECT,,,,,,
Sun Jun 10 17:54:43 2018 TCP connection established with [AF_INET]76.89.178.32:1291
Sun Jun 10 17:54:43 2018 Send to HTTP proxy: 'CONNECT ******.76.89.178.32:1194 HTTP/1.0'
Sun Jun 10 17:54:43 2018 Send to HTTP proxy: 'Host:*******.76.89.178.32'
Sun Jun 10 17:54:44 2018 HTTP proxy returned: 'HTTP/1.0 200 OK'
Sun Jun 10 17:54:46 2018 TCP_CLIENT link local: (not bound)
Sun Jun 10 17:54:46 2018 TCP_CLIENT link remote: [AF_INET]76.89.178.32:1291
Sun Jun 10 17:54:46 2018 MANAGEMENT: >STATE:1528667686,WAIT,,,,,,
Sun Jun 10 17:54:46 2018 MANAGEMENT: >STATE:1528667686,AUTH,,,,,,
Sun Jun 10 17:54:46 2018 TLS: Initial packet from [AF_INET]76.89.178.32:1291, sid=1***********
Sun Jun 10 17:54:47 2018 VERIFY OK: depth=2, C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Certification Authority
Sun Jun 10 17:54:47 2018 VERIFY OK: depth=1, C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Domain Validation Secure Server CA
Sun Jun 10 17:54:47 2018 VERIFY OK: depth=0, OU=Domain Control Validated, OU=PositiveSSL Wildcard, CN=*.opengw.net
Sun Jun 10 17:54:49 2018 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Sun Jun 10 17:54:49 2018 [*.opengw.net] Peer Connection Initiated with [AF_INET]76.89.178.32:1291
Sun Jun 10 17:54:50 2018 MANAGEMENT: >STATE:1528667690,GET_CONFIG,,,,,,
Sun Jun 10 17:54:50 2018 SENT CONTROL [*.opengw.net]: 'PUSH_REQUEST' (status=1)
Sun Jun 10 17:54:51 2018 PUSH: Received control message: 'PUSH_REPLY,ping 3,ping-restart 10,ifconfig 10.211.1.169 10.211.1.170,dhcp-option DNS 10.211.254.254,dhcp-option DNS 8.8.8.8,route-gateway 10.211.1.170,redirect-gateway def1'
Sun Jun 10 17:54:51 2018 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jun 10 17:54:51 2018 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jun 10 17:54:51 2018 OPTIONS IMPORT: route options modified
Sun Jun 10 17:54:51 2018 OPTIONS IMPORT: route-related options modified
Sun Jun 10 17:54:51 2018 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Jun 10 17:54:51 2018 Outgoing Data Channel: Cipher 'AES-128-CBC' initialized with 128 bit key
Sun Jun 10 17:54:51 2018 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 10 17:54:51 2018 Incoming Data Channel: Cipher 'AES-128-CBC' initialized with 128 bit key
Sun Jun 10 17:54:51 2018 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 10 17:54:51 2018 interactive service msg_channel=0
Sun Jun 10 17:54:51 2018 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 I=8 HWADDR=*************
Sun Jun 10 17:54:51 2018 open_tun
Sun Jun 10 17:54:51 2018 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{FF******7-AAC5-4324-B948-2A080AEF636D}.tap
Sun Jun 10 17:54:51 2018 TAP-Windows Driver Version 9.21
Sun Jun 10 17:54:51 2018 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.211.1.169/255.255.255.252 on interface {FF822217-AAC5-4324-B948-2A080AEF636D} [DHCP-serv: 10.211.1.170, lease-time: 31536000]
Sun Jun 10 17:54:51 2018 Successful ARP Flush on interface [19] {FF*******AC5-4324-B948-2A080AEF636D}
Sun Jun 10 17:54:51 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Sun Jun 10 17:54:51 2018 MANAGEMENT: >STATE:1528667691,ASSIGN_IP,,10.211.1.169,,,,
Sun Jun 10 17:54:56 2018 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up
Sun Jun 10 17:54:56 2018 C:\WINDOWS\system32\route.exe ADD 76.89.178.32 MASK 255.255.255.255 192.168.1.1
Sun Jun 10 17:54:56 2018 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=50 and dwForwardType=4
Sun Jun 10 17:54:56 2018 Route addition via IPAPI succeeded [adaptive]
Sun Jun 10 17:54:56 2018 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.211.1.170
Sun Jun 10 17:54:56 2018 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=35 and dwForwardType=4
Sun Jun 10 17:54:56 2018 Route addition via IPAPI succeeded [adaptive]
Sun Jun 10 17:54:56 2018 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.211.1.170
Sun Jun 10 17:54:56 2018 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=35 and dwForwardType=4
Sun Jun 10 17:54:56 2018 Route addition via IPAPI succeeded [adaptive]
Sun Jun 10 17:54:56 2018 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Jun 10 17:54:56 2018 Initialization Sequence Completed
Sun Jun 10 17:54:56 2018 MANAGEMENT: >STATE:1528667696,CONNECTED,SUCCESS,10.211.1.169,76.89.178.32,1291,192.168.1.28,55602

Post Reply