Claude 1
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<Request>
|
||||
<Login>
|
||||
<Username>{{ sophos_api_username }}</Username>
|
||||
<Password>{{ sophos_api_password }}</Password>
|
||||
</Login>
|
||||
<Set operation="update">
|
||||
<RemoteAccessVPN>
|
||||
<Name>{{ sophos_remote_access_vpn.name | default('Remote-Access-VPN') }}</Name>
|
||||
<Status>{{ 'Enable' if sophos_remote_access_vpn.enabled | default(true) else 'Disable' }}</Status>
|
||||
<Type>{{ sophos_remote_access_vpn.type | upper }}</Type>
|
||||
|
||||
<!-- Connection Settings -->
|
||||
<ListeningPort>{{ sophos_remote_access_vpn.listening_port | default(443) }}</ListeningPort>
|
||||
<ListeningInterface>{{ sophos_remote_access_vpn.listening_interface }}</ListeningInterface>
|
||||
|
||||
<!-- Authentication -->
|
||||
<AuthenticationMethod>{{ sophos_remote_access_vpn.authentication_method | default('local') }}</AuthenticationMethod>
|
||||
<UserGroups>
|
||||
{% for group in sophos_remote_access_vpn.user_groups %}
|
||||
<Group>{{ group }}</Group>
|
||||
{% endfor %}
|
||||
</UserGroups>
|
||||
|
||||
<!-- IP Address Pool -->
|
||||
<AddressPool>
|
||||
<Network>{{ sophos_remote_access_vpn.address_pool.network }}</Network>
|
||||
<Netmask>{{ sophos_remote_access_vpn.address_pool.netmask }}</Netmask>
|
||||
<StartIP>{{ sophos_remote_access_vpn.address_pool.start_ip }}</StartIP>
|
||||
<EndIP>{{ sophos_remote_access_vpn.address_pool.end_ip }}</EndIP>
|
||||
</AddressPool>
|
||||
|
||||
<!-- DNS Settings -->
|
||||
<DNSServers>
|
||||
{% for dns in sophos_remote_access_vpn.dns_servers %}
|
||||
<Server>{{ dns }}</Server>
|
||||
{% endfor %}
|
||||
</DNSServers>
|
||||
|
||||
<!-- Tunnel Mode -->
|
||||
<TunnelMode>{{ sophos_remote_access_vpn.tunnel_mode | default('split') }}</TunnelMode>
|
||||
{% if sophos_remote_access_vpn.tunnel_mode | default('split') == 'split' %}
|
||||
<TunnelNetworks>
|
||||
{% for network in sophos_remote_access_vpn.tunnel_networks | default([]) %}
|
||||
<Network>{{ network }}</Network>
|
||||
{% endfor %}
|
||||
</TunnelNetworks>
|
||||
{% endif %}
|
||||
|
||||
<!-- Encryption -->
|
||||
<Encryption>{{ sophos_remote_access_vpn.encryption | default('aes256') }}</Encryption>
|
||||
<Hash>{{ sophos_remote_access_vpn.hash | default('sha256') }}</Hash>
|
||||
|
||||
<!-- Timeouts -->
|
||||
<IdleTimeout>{{ sophos_remote_access_vpn.idle_timeout | default(1800) }}</IdleTimeout>
|
||||
<SessionTimeout>{{ sophos_remote_access_vpn.session_timeout | default(43200) }}</SessionTimeout>
|
||||
|
||||
<!-- Advanced Settings -->
|
||||
<MaxConnections>{{ sophos_remote_access_vpn.max_concurrent_connections | default(50) }}</MaxConnections>
|
||||
<Compression>{{ 'Enable' if sophos_remote_access_vpn.enable_compression | default(true) else 'Disable' }}</Compression>
|
||||
<BlockLANAccess>{{ 'Enable' if sophos_remote_access_vpn.block_lan_access | default(true) else 'Disable' }}</BlockLANAccess>
|
||||
</RemoteAccessVPN>
|
||||
</Set>
|
||||
</Request>
|
||||
Reference in New Issue
Block a user