macOS The L2TP-VPN server did not respond
Hello everyone,
Here is my embarrassment:
1.Network Environment: The WiFi of my company
I have an IPSec VPN server, and the connection to VPN by my iPhone iOS11 (L2TP) goes well. But when I tried with the same settings on my macOS "L2TP over IPSec" VPN, it failed as my title shows. (the L2TP/IPSec mode on my android phone failed too).
and my /private/var/log/ppp.log is :
Fri May 11 10:07:34 2018 : publish_entry SCDSet() failed: Success!
Fri May 11 10:07:34 2018 : publish_entry SCDSet() failed: Success!
Fri May 11 10:07:34 2018 : l2tp_get_router_address
Fri May 11 10:07:34 2018 : l2tp_get_router_address 172.16.xxx.xxx from dict 1
Fri May 11 10:07:34 2018 : L2TP connecting to server '139.xxx.xxx.xxx' (139.xxx.xxx.xxx)...
Fri May 11 10:07:34 2018 : IPSec connection started
Fri May 11 10:07:34 2018 : IPSec phase 1 client started
Fri May 11 10:07:44 2018 : IPSec connection failed
2.Network Env: The 4G mobile data of my phone + hotspot / The WiFi of my home from ISP
All my devices works well.
ppp.log shows the following log:
Thu May 10 20:46:02 2018 : publish_entry SCDSet() failed: Success!
Thu May 10 20:46:02 2018 : publish_entry SCDSet() failed: Success!
Thu May 10 20:46:02 2018 : l2tp_get_router_address
Thu May 10 20:46:02 2018 : l2tp_get_router_address 192.168.xxx.xxx from dict 1
Thu May 10 20:46:02 2018 : L2TP connecting to server '139.xxx.xxx.xxx' (139.xxx.xxx.xxx)...
Thu May 10 20:46:02 2018 : IPSec connection started
Thu May 10 20:46:02 2018 : IPSec phase 1 client started
Thu May 10 20:46:02 2018 : IPSec phase 1 server replied
Thu May 10 20:46:03 2018 : IPSec phase 2 started
Thu May 10 20:46:03 2018 : IPSec phase 2 established
Thu May 10 20:46:03 2018 : IPSec connection established
Thu May 10 20:46:03 2018 : L2TP sent SCCRQ
Thu May 10 20:46:03 2018 : L2TP received SCCRP
Thu May 10 20:46:03 2018 : L2TP sent SCCCN
Thu May 10 20:46:03 2018 : L2TP sent ICRQ
Thu May 10 20:46:04 2018 : L2TP received ICRP
Thu May 10 20:46:04 2018 : L2TP sent ICCN
Thu May 10 20:46:04 2018 : L2TP connection established.
Thu May 10 20:46:04 2018 : L2TP set port-mapping for en0, interface: 4, protocol: 0, privatePort: 0
Thu May 10 20:46:04 2018 : using link 0
Thu May 10 20:46:04 2018 : Using interface ppp0
...
So,
What is the difference between L2TP on iOS, IPSec(shows "cisco" logo) on iOS and "L2TP over IPSec" on MacBook Pro Retina 2015 (macOS Sierra 10.12.6) ?
Is there anyway to solve the problem ( make the "L2TP over IPSec" work in my company )?