Operation: | Add Service / Update Service
Description: | To Create/Update Service. Services are used to determine the type of traffic allowed or denied by the firewall.

Sample Configuration
    	<Services>
    		<Name>Name</Name>
    		<Type>TCPorUDP/IP/ICMP/ICMPv6</Type>
    		<ServiceDetails>
    			<ServiceDetail>
    				<!-- for TCPUDP type -->
    				<Protocol>TCP/UDP</Protocol>
    				<SourcePort>port</SourcePort>
    				<DestinationPort>port</DestinationPort>

    				<!-- for IP type -->
    				<ProtocolName>

    							  IPProto222/IPProto223/IPProto224/IPProto225/IPProto226/IPProto227/IPProto228/IPProto229/IPProto230/IPProto231/IPProto232/IPProto233/IPProto234/IPProto235/IPProto236/IPProto237/IPProto238/IPProto239/IPProto240/IPProto241/IPProto242/IPProto243/IPProto244/IPProto245/IPProto246/IPProto247/IPProto248/IPProto249/IPProto250/IPProto251/IPProto252/IPProto253/IPProto254/IPProto255</ProtocolName>

    				<!-- for ICMP Type -->
    				<ICMPType>Echo Reply/Destination Unreachable/Source Quench/Redirect/Alternate Host Address/Echo/Router Advertisement/Router Selection/Time Exceeded/Parameter Problem/Timestamp/Timestamp Reply/Information Request/Information Reply/Address Mask Request/Address Mask Reply/Traceroute/Datagram Conversion Error/Mobile Host Redirect/IPv6 Where-Are-You/IPv6 I-Am-Here/Mobile Registration Request/Mobile Registration Reply/Domain Name Request/Domain Name Reply/SKIP/Photuris/Any Type</ICMPType>
    				<ICMPCode>any code</ICMPCode>

    				<!-- for ICMP Type -->
    				<ICMPv6Type>Destination Unreachable/Packet Too Big/Time Exceeded/Parameter Problem/Private experimentation/Private experimentation/Echo Request/Echo Reply/Multicast Listener Query/Multicast Listener Report/Multicast Listener Done/Router Solicitation/Router Advertisement/Neighbor Solicitation/Neighbor Advertisement/Redirect Message/Router Renumbering/ICMP Node Information Query/ICMP Node Information Response/Inverse Neighbor Discovery Solicitation Message/Inverse Neighbor Discovery Advertisement Message/Version 2 Multicast Listener Report/Home Agent Address Discovery Request Message/Home Agent Address Discovery Reply Message/Mobile Prefix Solicitation/Mobile Prefix Advertisement/Certification Path Solicitation Message/Certification Path Advertisement Message/ICMP messages utilized by experimental mobility protocols such as Seamoby/Multicast Router Advertisement/Multicast Router Solicitation/Multicast Router Termination/FMIPv6 Messages/RPL Control Message/ILNPv6 Locator Update Message/Duplicate Address Request/Duplicate Address Confirmation/Private experimentation/Private experimentation/Any Type</ICMPv6Type>
    				<ICMPv6Code>any code</ICMPv6Code>
    			</ServiceDetail>
    			:
    			:
    		</ServiceDetails>
    	</Services>

Attribute/Parameter Information :

Parameter | Mandatory | Default | Description
--- | --- | --- | ---
Name | Yes |  | Description: Specify a name to identify the Service. Name confines to: Type is 'SCALAR'. Datatype is 'STRING'. First character is to be hash(#) or comma(,). Maximum characters allowed are 50.
Type | No |  | Description: Select Type of Service: TCP/UDP, IP, ICMP or ICMPv6. Type confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only '1', '2', '3', '7' are allowed.
Protocol, ProtocolNumber | Yes |  | Description: Select Protocol and Protocol number for the service. Protocol,ProtocolNumber confines to: Type is 'ARRAY'. Datatype is 'INTEGER'. Range 0 to 255 is allowed. Maximum digits allowed are 5. Multiple values are allowed. Duplicate values will not be ignored.
SourcePort | Yes |  | Description: Specify source port number if protocol selected is TCP/UDP. SourcePort confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 11. Multiple values are allowed. Duplicate values will not be ignored.
DestinationPort | Yes |  | Description: Specify destination port number if protocol selected is TCP/UDP. DestinationPort confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 11. Multiple values are allowed. Duplicate values will not be ignored.
ICMPType | No |  | Description: Select ICMP type. ICMPType confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 2. Only '-1', '0', '3', '4', '5', '6', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40' are allowed. Multiple values are allowed. Duplicate values will not be ignored.
ICMPCode | No |  | Description: Select ICMP Code. ICMPCode confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 2. Only '0', '-1', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15' are allowed. Multiple values are allowed. Duplicate values will not be ignored.
ICMPv6Type | No |  | Description: Select ICMPv6 type. ICMPv6Type confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 3. Only '0', '-1', '1', '2', '3', '4', '100', '101', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '142', '143', '144', '145', '146', '147', '148', '149', '150', '151', '152', '153', '154', '155', '156', '157', '158', '200', '201' are allowed. Multiple values are allowed. Duplicate values will not be ignored.
ICMPv6Code | No |  | Description: Select ICMPv6 code. ICMPv6Code confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 2. Only '-1', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15' are allowed. Multiple values are allowed. Duplicate values will not be ignored.

Status Message Information :

Operation | Status | Message
--- | --- | ---
Update Service | 200 |
Update Service | 202 |
Update Service | 500 |
Update Service | 502 |
Add Service | 200 |
Add Service | 500 |
Add Service | 502 |

) Copyright 2015 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.