From 85ebba5e392c81890036429a1f3eefc3786e4b29 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Wed, 7 Nov 2018 00:07:01 +0100 Subject: [PATCH] Cedar/Proto_PPP.c: push 192.0.0.8 instead of 1.0.0.1 as gateway IP address 1.0.0.1 is a real IP address, owned by CloudFlare and used for their DNS service. This commit changes the IP address we push to 192.0.0.8, which is defined in RFC7600 as dummy IPv4 address. --- src/Cedar/Proto_PPP.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Cedar/Proto_PPP.c b/src/Cedar/Proto_PPP.c index d18db762..d9b0787a 100644 --- a/src/Cedar/Proto_PPP.c +++ b/src/Cedar/Proto_PPP.c @@ -390,7 +390,9 @@ void PPPThread(THREAD *thread, void *param) // Notify the IP address of the PPP server c = NewPPPLCP(PPP_LCP_CODE_REQ, 0); - ui = Endian32(0x01000001); // 1.0.0.1 + // SoftEther VPN is L2-based VPN, so there is no concept of gateway IP address. + // We always push 192.0.0.8, which is defined in RFC7600 as dummy IPv4 address. + ui = Endian32(0xc0000008); Add(c->OptionList, NewPPPOption(PPP_IPCP_OPTION_IP, &ui, sizeof(UINT))); ret = PPPSendRequest(p, PPP_PROTOCOL_IPCP, c); FreePPPLCP(c);