Operation: | Add L2TP Connection / Edit L2TP Connection
Description: | To Add/Edit L2TP Connection.Edit L2TP Connection.

Sample Configuration
    	<L2TPConnection>
    		<Configuration>
    			<Name>Name</Name>
    			<Description>Text</Description>
    			<Policy>DefaultRemoteAccess</Policy>
    			<ActionOnVPNRestart>RespondOnly/Disable</ActionOnVPNRestart>
    			<AuthenticationType>PresharedKey/DigitalCertificate</AuthenticationType>
    			<!-- If type presharedkey -->
    			<PresharedKey>key</PresharedKey>
    			<!-- if type certificate -->
    			<LocalCertificate>ApplianceCertificate</LocalCertificate>

    			<LocalWANPort>PortB</LocalWANPort>
    			<!-- For alias wan port -->
    			<AliasLocalWANPort>PortB:0</AliasLocalWANPort>
    			<LocalIDType>DNS/IP Address/Email/DER ASN1 DN (X.509)</LocalIDType>
    			<LocalID>localid</LocalID>
    			<RemoteHost>hostname or ipaddress</RemoteHost>
    			<AllowNATTraversal>Enable/Disable</AllowNATTraversal>
    			<RemoteLANNetwork>
    				<Network>Host</Network>
    				:
    			</RemoteLANNetwork>
    			<RemoteIDType>DNS/IP Address/Email/DER ASN1 DN (X.509)</RemoteIDType>
    			<RemoteID>remoteid</RemoteID>
    			<LocalPort>1701</LocalPort>
    			<RemotePort>*</RemotePort>
    			<DisconnectOnIdleInterval>600</DisconnectOnIdleInterval>
    		</Configuration>
    		<Connection><Name>connectionname</Name></Connection>
    		<DisConnection><Name>connectionname</Name></DisConnection>
    		<Active><Name>connectionname</Name></Active>
    		<DeActive><Name>connectionname</Name></DeActive>
    	</L2TPConnection>

Attribute/Parameter Information :

Parameter | Mandatory | Default | Description
--- | --- | --- | ---
Name | Yes |  | Description: Specify a name for L2TP Connection. Name confines to: Type is 'SCALAR'. Datatype is 'STRING'. First character is to be alphabet (a-zA-Z). Alphanumeric (a-zA-Z0-9) and underscore (_) to be allowed for the remaining characters. Maximum characters allowed are 50.
Description | No |  | Description: Specify description for L2TP Connection. Description confines to: Type is 'SCALAR'. Datatype is 'STRING'. Maximum characters allowed are 255.
Policy | Yes |  | Description: Select Policy to use for L2TP Connection from the available options: Default Policy, DefaultHeadOffice, DefaultRemoteAccess, AES128_MD5, DefaultBranchOffice or DefaultL2TP. Policy confines to: Type is 'SCALAR'. Datatype is 'STRING'.
ActionOnVPNRestart | Yes |  | Description: Select an action for the Connection from the available options: Disable or Respond Only. ActionOnVPNRestart confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'ignore', 'add' are allowed.
AuthenticationType | Yes |  | Description: Select Authentication type from the available options: Preshared key or Digital Certificate. AuthenticationType confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'psk', 'cert' are allowed.
LocalCertificate/PresharedKey | Yes |  | Description: If Authentication Type is selected as Preshared Key, specify Preshared Key value. LocalCertificate/PresharedKey confines to: Type is 'SCALAR'. Datatype is 'STRING'. Allowed Characters: (0-9a-zA-Z _@\-\.). Maximum characters allowed are 50. UTF-8 character(s) are allowed.
Local Certificate | Yes |  | Description: If Authentication Type is selected as Local Certificate, select certificate to be used. Local Certificate confines to: Type is 'SCALAR'. Datatype is 'STRING'.
AliasLocalWANPort | Yes |  | Description: Select Local WAN Port for L2TP Connection. AliasLocalWANPort confines to: Type is 'SCALAR'. Datatype is 'STRING'.
LocalIDType | No |  | Description: Select Local ID type for Preshared Key. LocalIDType confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'fqdn', 'ip', 'email', 'x509' are allowed.
LocalID | Yes |  | Description: Specify the Local ID value for L2TP Connection. LocalID confines to: Type is 'SCALAR'. Datatype is 'STRING'.
RemoteHost | Yes |  | Description: Specify IP Address of remote Host. RemoteHost confines to: Type is 'SCALAR'. Datatype is 'STRING'. Allowed: IPV4 Address between (0-255.0-255.0-255.0-255) or any IPV4 address with Character (*).
AllowNATTraversal | No | Enable | Description: Enable NAT Traversal if remote host has Private IP Address. AllowNATTraversal confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'y', 'n' are allowed.
Network | Yes |  | Description: Select Remote LAN Network. Network confines to: Type is 'ARRAY'. Datatype is 'STRING'. First character is to be hash(#) or comma(,). Maximum characters allowed are 60. Multiple values are allowed.
RemoteIDType | No |  | Description: Select Remote ID type for Preshared Key. RemoteIDType confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'fqdn', 'ip', 'email', 'x509' are allowed.
RemoteID | Yes |  | Description: Specify the Remote ID value. RemoteID confines to: Type is 'SCALAR'. Datatype is 'STRING'.
LocalPort | Yes |  | Description: Specify Local Port number. LocalPort confines to: Type is 'SCALAR'. Datatype is 'STRING'. Allowed: Number between 1 to 65535 or any port with Character (*). Maximum characters allowed are 5.
RemotePort | Yes |  | Description: Specify Remote Port number. RemotePort confines to: Type is 'SCALAR'. Datatype is 'STRING'. Allowed: Number between 1 to 65535 or any port with Character (*). Maximum characters allowed are 5.
DisconnectOnIdleInterval | No | 0 | Description: Disconnect on idle interval. DisconnectOnIdleInterval confines to: Type is 'SCALAR'. Datatype is 'INTEGER'. Range 120 to 999 is allowed. Maximum digits allowed are 3.

Status Message Information :

Operation | Status | Message
--- | --- | ---
Edit L2TP Connection | 200 |
Edit L2TP Connection | 201 |
Edit L2TP Connection | 500 |
Edit L2TP Connection | 502 |
Edit L2TP Connection | 503 |
Edit L2TP Connection | 505 |
Edit L2TP Connection | 541 |
Add L2TP Connection | 200 |
Add L2TP Connection | 201 |
Add L2TP Connection | 500 |
Add L2TP Connection | 502 |
Add L2TP Connection | 505 |
Add L2TP Connection | 541 |

) Copyright 2017 Sophos Limited. All rights reserved.
Sophos is registered trademarks of Sophos Limited and Sophos Group. All other product and company names mentioned are trademarks or registered trademarks of their respective owners.No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise unless you are either a valid licensee where the documentation can be reproduced in accordance with the license terms or you otherwise have the prior permission in writing of the copyright owner.