References: <11098166-9909-4011-83F9-C5BC3FEA769D@...260...> <20181122092047.GS962@...1296...> From: Jan Just Keijser Message-ID: Date: Thu, 22 Nov 2018 16:09:40 +0100 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [Openvpn-devel] foreign_option_2 not set in 2.4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit To: Arne Schwabe , Cyril Scetbon , Gert Doering Cc: openvpn-devel@lists.sourceforge.net Hi, On 22/11/18 15:43, Arne Schwabe wrote: > Am 22.11.18 um 14:46 schrieb Cyril Scetbon: >> OpenVPN 2.4.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] >> [EPOLL] [MH/PKTINFO] [AEAD] built on Jul  8 2018 >> >> Output with —verb 4 https://pastebin.com/huQmnGaU >> > Read your log closer. This is not a bug in OpenVPN but rather a broken > config what we accepted in 2.3: > > Thu Nov 22 13:34:56 2018 us=235164 PUSH: Received control message: > 'PUSH_REPLY,route 10.0.0.0 255.0.0.0,route 192.168.174.0 > 255.255.255.0,route 193.252.149.32 255.255.255.224,route 193.252.121.96 > 255.255.255.224,dhcp-option DNS 10.201.67.120,dhcp-option DOMAIN > cyril.net cyril2.net,route 10.252.12.150,topology net30,ping > 5,ping-restart 30,ifconfig 10.252.12.158 10.252.12.157' > > Thu Nov 22 13:34:56 2018 us=235314 Options error: Unrecognized option or > missing or extra parameter(s) in [PUSH-OPTIONS]:6: dhcp-option (2.4.6) > > OpenVPN gets 'dhcp-option DOMAIN cyril.net cyril2.net' via push and > using two arguments after DOMAIN is wrong but OpenVPN 2.3 ignored the > second argument while 2.4 gives you an error and ignores the whole option. so what Arne is trying to say is: with 2.4, do not use   push "dhcp-option DOMAIN cyril.net cyril2net" but use   push 'dhcp-option "DOMAIN cyril.net cyril2net"' instead. Having said, that, pushing two DOMAINS does not make sense, AFAIK: Windows will only pick up one of them... HTH, JJK