Hello Community,
is it possible to configure the xfrm Interfaces via API calls? I need to setup Nane, IP-Address and Netmask.
Thanks,
Ben
This thread was automatically locked due to age.
Hello Community,
is it possible to configure the xfrm Interfaces via API calls? I need to setup Nane, IP-Address and Netmask.
Thanks,
Ben
Hi Ben@Network,
Thank you for reaching out to Sophos Community.
Here is an XML to configure xfrm interface.
===========================================
<Request>
<Login>
<Username>admin</Username>
<Password>APIadmin</Password>
</Login>
<Set>
<XFRMInterface>
<Hardware>xfrm3</Hardware>
<Name>InterfaceName</Name>
<Connectionname>TunnelName</Connectionname>
<IPv4Configuration>Enable</IPv4Configuration>
<MTU>1400</MTU>
<MSS>
<OverrideMSS>Enable</OverrideMSS>
<MSSValue>1360</MSSValue>
</MSS>
<IPv4Address>IPAddress</IPv4Address>
<Netmask>255.x.x.x</Netmask>
</XFRMInterface>
</Set>
</Request>
===========================================
API string:
https://xx.xx.xx.xx:4444/webconsole/APIController?reqxml=<Request><Login><Username>admin</Username><Password>APIadmin</Password></Login><Set><XFRMInterface><Hardware>xfrm3</Hardware><Name>InterfaceName</Name><Connectionname>TunnelName</Connectionname><IPv4Configuration>Enable</IPv4Configuration><MTU>1400</MTU><MSS><OverrideMSS>Enable</OverrideMSS><MSSValue>1360</MSSValue></MSS><IPv4Address>IPAddress</IPv4Address><Netmask>255.x.x.x</Netmask></XFRMInterface></Set></Request>
===========================================
However, it's always recommended to configure xfrm interface through web admin.