This provides an example for configuring L2TP client access on macOS.
To configure L2TP clients on macOS
On the System Preferences window, click on Network icon. The Network page is displayed.
Click on the + icon to create L2TP VPN Connection.
Select the VPN option for the Interface field.
Select L2TP over IPSec for the VPN Type option.
Add the name in the Service Name field.
Specify the User Authentication details in the next window. Select Password from the User Authentication options and specify your account password that was created on SonicWall.
Select Shared Secret from the Machine Authentication options.
Click OK.