Skip to content

IpsecServerProps

Properties for defining a IpsecServer.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-ipsecserver

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc"
&alicloudroscdkvpc.IpsecServerProps {
    ClientIpPool: interface{},
    LocalSubnet: interface{},
    VpnGatewayId: interface{},
    EffectImmediately: interface{},
    IkeConfig: interface{},
    IpsecConfig: interface{},
    IpsecServerName: interface{},
    Psk: interface{},
    PskEnabled: interface{},
}

Properties

Name Type Description
ClientIpPool interface{} Property clientIpPool: Client network segment refers to the address segment that assigns access addresses to the virtual network card of the client.
LocalSubnet interface{} Property localSubnet: The local network segment refers to the network segment on the VPC side that needs to be interconnected with the client network segment.
VpnGatewayId interface{} Property vpnGatewayId: VPN gateway instance ID.
EffectImmediately interface{} Property effectImmediately: true: Apply the new configuration and trigger a reconnection immediately.
IkeConfig interface{} Property ikeConfig: Negotiation parameter configuration in the first phase.
IpsecConfig interface{} Property ipsecConfig: Negotiation parameter configuration in the second phase.
IpsecServerName interface{} Property ipsecServerName: The value must be 2 to 128 characters in length and start with a letter or Chinese character.
Psk interface{} Property psk: Pre-Shared key.
PskEnabled interface{} Property pskEnabled: Whether to enable the pre-shared key authentication method.

ClientIpPoolRequired

ClientIpPool interface{}
  • Type: interface{}

Property clientIpPool: Client network segment refers to the address segment that assigns access addresses to the virtual network card of the client.

Note: The client network segment cannot conflict with the VPC side network segment.


LocalSubnetRequired

LocalSubnet interface{}
  • Type: interface{}

Property localSubnet: The local network segment refers to the network segment on the VPC side that needs to be interconnected with the client network segment.

Use half-width commas (,) to separate multiple network segments, for example: 192.168.1.0/24,192.168.2.0/24.


VpnGatewayIdRequired

VpnGatewayId interface{}
  • Type: interface{}

Property vpnGatewayId: VPN gateway instance ID.


EffectImmediatelyOptional

EffectImmediately interface{}
  • Type: interface{}

Property effectImmediately: true: Apply the new configuration and trigger a reconnection immediately.

false: Trigger a reconnection only when network traffic occurs. (The reconnection may cause the network to be unavailable for a brief moment)


IkeConfigOptional

IkeConfig interface{}
  • Type: interface{}

Property ikeConfig: Negotiation parameter configuration in the first phase.


IpsecConfigOptional

IpsecConfig interface{}
  • Type: interface{}

Property ipsecConfig: Negotiation parameter configuration in the second phase.


IpsecServerNameOptional

IpsecServerName interface{}
  • Type: interface{}

Property ipsecServerName: The value must be 2 to 128 characters in length and start with a letter or Chinese character.

It can contain digits, underscores (_), and hyphens (-).


PskOptional

Psk interface{}
  • Type: interface{}

Property psk: Pre-Shared key.

Used for identity authentication between the VPN gateway and the client. A 16-bit random string is randomly generated by default, or you can manually specify the key. The length is limited to 100 characters.


PskEnabledOptional

PskEnabled interface{}
  • Type: interface{}

Property pskEnabled: Whether to enable the pre-shared key authentication method.

Only the value is true, which means that the pre-shared key authentication mode is enabled.