1. Packages
  2. Routeros Provider
  3. API Docs
  4. InterfaceL2tpClient
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

routeros.InterfaceL2tpClient

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";

const test = new routeros.InterfaceL2tpClient("test", {
    connectTo: "127.0.0.1",
    password: "bbb",
    user: "aaa",
});
Copy
import pulumi
import pulumi_routeros as routeros

test = routeros.InterfaceL2tpClient("test",
    connect_to="127.0.0.1",
    password="bbb",
    user="aaa")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := routeros.NewInterfaceL2tpClient(ctx, "test", &routeros.InterfaceL2tpClientArgs{
			ConnectTo: pulumi.String("127.0.0.1"),
			Password:  pulumi.String("bbb"),
			User:      pulumi.String("aaa"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;

return await Deployment.RunAsync(() => 
{
    var test = new Routeros.InterfaceL2tpClient("test", new()
    {
        ConnectTo = "127.0.0.1",
        Password = "bbb",
        User = "aaa",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.InterfaceL2tpClient;
import com.pulumi.routeros.InterfaceL2tpClientArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new InterfaceL2tpClient("test", InterfaceL2tpClientArgs.builder()
            .connectTo("127.0.0.1")
            .password("bbb")
            .user("aaa")
            .build());

    }
}
Copy
resources:
  test:
    type: routeros:InterfaceL2tpClient
    properties:
      connectTo: 127.0.0.1
      password: bbb
      user: aaa
Copy

Create InterfaceL2tpClient Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InterfaceL2tpClient(name: string, args?: InterfaceL2tpClientArgs, opts?: CustomResourceOptions);
@overload
def InterfaceL2tpClient(resource_name: str,
                        args: Optional[InterfaceL2tpClientArgs] = None,
                        opts: Optional[ResourceOptions] = None)

@overload
def InterfaceL2tpClient(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ___id_: Optional[float] = None,
                        ___path_: Optional[str] = None,
                        add_default_route: Optional[bool] = None,
                        allow_fast_path: Optional[bool] = None,
                        allows: Optional[Sequence[str]] = None,
                        comment: Optional[str] = None,
                        connect_to: Optional[str] = None,
                        default_route_distance: Optional[float] = None,
                        dial_on_demand: Optional[bool] = None,
                        disabled: Optional[bool] = None,
                        interface_l2tp_client_id: Optional[str] = None,
                        ipsec_secret: Optional[str] = None,
                        keepalive_timeout: Optional[float] = None,
                        l2tp_proto_version: Optional[str] = None,
                        l2tpv3_circuit_id: Optional[str] = None,
                        l2tpv3_cookie_length: Optional[float] = None,
                        l2tpv3_digest_hash: Optional[str] = None,
                        max_mru: Optional[float] = None,
                        max_mtu: Optional[float] = None,
                        mrru: Optional[str] = None,
                        name: Optional[str] = None,
                        password: Optional[str] = None,
                        profile: Optional[str] = None,
                        src_address: Optional[str] = None,
                        use_ipsec: Optional[bool] = None,
                        use_peer_dns: Optional[str] = None,
                        user: Optional[str] = None)
func NewInterfaceL2tpClient(ctx *Context, name string, args *InterfaceL2tpClientArgs, opts ...ResourceOption) (*InterfaceL2tpClient, error)
public InterfaceL2tpClient(string name, InterfaceL2tpClientArgs? args = null, CustomResourceOptions? opts = null)
public InterfaceL2tpClient(String name, InterfaceL2tpClientArgs args)
public InterfaceL2tpClient(String name, InterfaceL2tpClientArgs args, CustomResourceOptions options)
type: routeros:InterfaceL2tpClient
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args InterfaceL2tpClientArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args InterfaceL2tpClientArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args InterfaceL2tpClientArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args InterfaceL2tpClientArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InterfaceL2tpClientArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

InterfaceL2tpClient Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The InterfaceL2tpClient resource accepts the following input properties:

AddDefaultRoute bool
Whether to add L2TP remote address as a default route.
AllowFastPath bool
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
Allows List<string>
Allowed authentication methods.
Comment string
ConnectTo string
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
DefaultRouteDistance double
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
DialOnDemand bool
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
Disabled bool
InterfaceL2tpClientId string
The ID of this resource.
IpsecSecret string
Preshared key used when use-ipsec is enabled.
KeepaliveTimeout double
Since v6.0rc13, tunnel keepalive timeout in seconds.
L2tpProtoVersion string
Specify protocol version.
L2tpv3CircuitId string
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
L2tpv3CookieLength double
Configures an L2TPv3 pseudowire static session cookie.
L2tpv3DigestHash string
Specifies which hash function to be used.
MaxMru double
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
MaxMtu double
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
Mrru string
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
Name string
Descriptive name of the interface.
Password string
Password used for authentication.
Profile string
Specifies which PPP profile configuration will be used when establishing the tunnel.
SrcAddress string
Specify source address.
UseIpsec bool
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
UsePeerDns string
To use peer dns.
User string
User name used for authentication.
___id_ double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
AddDefaultRoute bool
Whether to add L2TP remote address as a default route.
AllowFastPath bool
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
Allows []string
Allowed authentication methods.
Comment string
ConnectTo string
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
DefaultRouteDistance float64
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
DialOnDemand bool
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
Disabled bool
InterfaceL2tpClientId string
The ID of this resource.
IpsecSecret string
Preshared key used when use-ipsec is enabled.
KeepaliveTimeout float64
Since v6.0rc13, tunnel keepalive timeout in seconds.
L2tpProtoVersion string
Specify protocol version.
L2tpv3CircuitId string
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
L2tpv3CookieLength float64
Configures an L2TPv3 pseudowire static session cookie.
L2tpv3DigestHash string
Specifies which hash function to be used.
MaxMru float64
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
MaxMtu float64
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
Mrru string
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
Name string
Descriptive name of the interface.
Password string
Password used for authentication.
Profile string
Specifies which PPP profile configuration will be used when establishing the tunnel.
SrcAddress string
Specify source address.
UseIpsec bool
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
UsePeerDns string
To use peer dns.
User string
User name used for authentication.
___id_ float64
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
___id_ Double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
addDefaultRoute Boolean
Whether to add L2TP remote address as a default route.
allowFastPath Boolean
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows List<String>
Allowed authentication methods.
comment String
connectTo String
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
defaultRouteDistance Double
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dialOnDemand Boolean
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled Boolean
interfaceL2tpClientId String
The ID of this resource.
ipsecSecret String
Preshared key used when use-ipsec is enabled.
keepaliveTimeout Double
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tpProtoVersion String
Specify protocol version.
l2tpv3CircuitId String
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3CookieLength Double
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3DigestHash String
Specifies which hash function to be used.
maxMru Double
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
maxMtu Double
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru String
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name String
Descriptive name of the interface.
password String
Password used for authentication.
profile String
Specifies which PPP profile configuration will be used when establishing the tunnel.
srcAddress String
Specify source address.
useIpsec Boolean
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
usePeerDns String
To use peer dns.
user String
User name used for authentication.
___id_ number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
addDefaultRoute boolean
Whether to add L2TP remote address as a default route.
allowFastPath boolean
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows string[]
Allowed authentication methods.
comment string
connectTo string
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
defaultRouteDistance number
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dialOnDemand boolean
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled boolean
interfaceL2tpClientId string
The ID of this resource.
ipsecSecret string
Preshared key used when use-ipsec is enabled.
keepaliveTimeout number
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tpProtoVersion string
Specify protocol version.
l2tpv3CircuitId string
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3CookieLength number
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3DigestHash string
Specifies which hash function to be used.
maxMru number
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
maxMtu number
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru string
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name string
Descriptive name of the interface.
password string
Password used for authentication.
profile string
Specifies which PPP profile configuration will be used when establishing the tunnel.
srcAddress string
Specify source address.
useIpsec boolean
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
usePeerDns string
To use peer dns.
user string
User name used for authentication.
___id_ float
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ str
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
add_default_route bool
Whether to add L2TP remote address as a default route.
allow_fast_path bool
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows Sequence[str]
Allowed authentication methods.
comment str
connect_to str
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
default_route_distance float
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dial_on_demand bool
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled bool
interface_l2tp_client_id str
The ID of this resource.
ipsec_secret str
Preshared key used when use-ipsec is enabled.
keepalive_timeout float
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tp_proto_version str
Specify protocol version.
l2tpv3_circuit_id str
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3_cookie_length float
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3_digest_hash str
Specifies which hash function to be used.
max_mru float
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
max_mtu float
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru str
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name str
Descriptive name of the interface.
password str
Password used for authentication.
profile str
Specifies which PPP profile configuration will be used when establishing the tunnel.
src_address str
Specify source address.
use_ipsec bool
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
use_peer_dns str
To use peer dns.
user str
User name used for authentication.
___id_ Number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
addDefaultRoute Boolean
Whether to add L2TP remote address as a default route.
allowFastPath Boolean
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows List<String>
Allowed authentication methods.
comment String
connectTo String
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
defaultRouteDistance Number
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dialOnDemand Boolean
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled Boolean
interfaceL2tpClientId String
The ID of this resource.
ipsecSecret String
Preshared key used when use-ipsec is enabled.
keepaliveTimeout Number
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tpProtoVersion String
Specify protocol version.
l2tpv3CircuitId String
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3CookieLength Number
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3DigestHash String
Specifies which hash function to be used.
maxMru Number
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
maxMtu Number
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru String
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name String
Descriptive name of the interface.
password String
Password used for authentication.
profile String
Specifies which PPP profile configuration will be used when establishing the tunnel.
srcAddress String
Specify source address.
useIpsec Boolean
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
usePeerDns String
To use peer dns.
user String
User name used for authentication.

Outputs

All input properties are implicitly available as output properties. Additionally, the InterfaceL2tpClient resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Running bool
Id string
The provider-assigned unique ID for this managed resource.
Running bool
id String
The provider-assigned unique ID for this managed resource.
running Boolean
id string
The provider-assigned unique ID for this managed resource.
running boolean
id str
The provider-assigned unique ID for this managed resource.
running bool
id String
The provider-assigned unique ID for this managed resource.
running Boolean

Look up Existing InterfaceL2tpClient Resource

Get an existing InterfaceL2tpClient resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: InterfaceL2tpClientState, opts?: CustomResourceOptions): InterfaceL2tpClient
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        add_default_route: Optional[bool] = None,
        allow_fast_path: Optional[bool] = None,
        allows: Optional[Sequence[str]] = None,
        comment: Optional[str] = None,
        connect_to: Optional[str] = None,
        default_route_distance: Optional[float] = None,
        dial_on_demand: Optional[bool] = None,
        disabled: Optional[bool] = None,
        interface_l2tp_client_id: Optional[str] = None,
        ipsec_secret: Optional[str] = None,
        keepalive_timeout: Optional[float] = None,
        l2tp_proto_version: Optional[str] = None,
        l2tpv3_circuit_id: Optional[str] = None,
        l2tpv3_cookie_length: Optional[float] = None,
        l2tpv3_digest_hash: Optional[str] = None,
        max_mru: Optional[float] = None,
        max_mtu: Optional[float] = None,
        mrru: Optional[str] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        profile: Optional[str] = None,
        running: Optional[bool] = None,
        src_address: Optional[str] = None,
        use_ipsec: Optional[bool] = None,
        use_peer_dns: Optional[str] = None,
        user: Optional[str] = None) -> InterfaceL2tpClient
func GetInterfaceL2tpClient(ctx *Context, name string, id IDInput, state *InterfaceL2tpClientState, opts ...ResourceOption) (*InterfaceL2tpClient, error)
public static InterfaceL2tpClient Get(string name, Input<string> id, InterfaceL2tpClientState? state, CustomResourceOptions? opts = null)
public static InterfaceL2tpClient get(String name, Output<String> id, InterfaceL2tpClientState state, CustomResourceOptions options)
resources:  _:    type: routeros:InterfaceL2tpClient    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AddDefaultRoute bool
Whether to add L2TP remote address as a default route.
AllowFastPath bool
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
Allows List<string>
Allowed authentication methods.
Comment string
ConnectTo string
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
DefaultRouteDistance double
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
DialOnDemand bool
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
Disabled bool
InterfaceL2tpClientId string
The ID of this resource.
IpsecSecret string
Preshared key used when use-ipsec is enabled.
KeepaliveTimeout double
Since v6.0rc13, tunnel keepalive timeout in seconds.
L2tpProtoVersion string
Specify protocol version.
L2tpv3CircuitId string
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
L2tpv3CookieLength double
Configures an L2TPv3 pseudowire static session cookie.
L2tpv3DigestHash string
Specifies which hash function to be used.
MaxMru double
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
MaxMtu double
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
Mrru string
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
Name string
Descriptive name of the interface.
Password string
Password used for authentication.
Profile string
Specifies which PPP profile configuration will be used when establishing the tunnel.
Running bool
SrcAddress string
Specify source address.
UseIpsec bool
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
UsePeerDns string
To use peer dns.
User string
User name used for authentication.
___id_ double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
AddDefaultRoute bool
Whether to add L2TP remote address as a default route.
AllowFastPath bool
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
Allows []string
Allowed authentication methods.
Comment string
ConnectTo string
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
DefaultRouteDistance float64
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
DialOnDemand bool
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
Disabled bool
InterfaceL2tpClientId string
The ID of this resource.
IpsecSecret string
Preshared key used when use-ipsec is enabled.
KeepaliveTimeout float64
Since v6.0rc13, tunnel keepalive timeout in seconds.
L2tpProtoVersion string
Specify protocol version.
L2tpv3CircuitId string
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
L2tpv3CookieLength float64
Configures an L2TPv3 pseudowire static session cookie.
L2tpv3DigestHash string
Specifies which hash function to be used.
MaxMru float64
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
MaxMtu float64
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
Mrru string
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
Name string
Descriptive name of the interface.
Password string
Password used for authentication.
Profile string
Specifies which PPP profile configuration will be used when establishing the tunnel.
Running bool
SrcAddress string
Specify source address.
UseIpsec bool
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
UsePeerDns string
To use peer dns.
User string
User name used for authentication.
___id_ float64
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
___id_ Double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
addDefaultRoute Boolean
Whether to add L2TP remote address as a default route.
allowFastPath Boolean
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows List<String>
Allowed authentication methods.
comment String
connectTo String
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
defaultRouteDistance Double
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dialOnDemand Boolean
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled Boolean
interfaceL2tpClientId String
The ID of this resource.
ipsecSecret String
Preshared key used when use-ipsec is enabled.
keepaliveTimeout Double
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tpProtoVersion String
Specify protocol version.
l2tpv3CircuitId String
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3CookieLength Double
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3DigestHash String
Specifies which hash function to be used.
maxMru Double
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
maxMtu Double
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru String
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name String
Descriptive name of the interface.
password String
Password used for authentication.
profile String
Specifies which PPP profile configuration will be used when establishing the tunnel.
running Boolean
srcAddress String
Specify source address.
useIpsec Boolean
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
usePeerDns String
To use peer dns.
user String
User name used for authentication.
___id_ number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
addDefaultRoute boolean
Whether to add L2TP remote address as a default route.
allowFastPath boolean
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows string[]
Allowed authentication methods.
comment string
connectTo string
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
defaultRouteDistance number
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dialOnDemand boolean
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled boolean
interfaceL2tpClientId string
The ID of this resource.
ipsecSecret string
Preshared key used when use-ipsec is enabled.
keepaliveTimeout number
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tpProtoVersion string
Specify protocol version.
l2tpv3CircuitId string
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3CookieLength number
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3DigestHash string
Specifies which hash function to be used.
maxMru number
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
maxMtu number
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru string
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name string
Descriptive name of the interface.
password string
Password used for authentication.
profile string
Specifies which PPP profile configuration will be used when establishing the tunnel.
running boolean
srcAddress string
Specify source address.
useIpsec boolean
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
usePeerDns string
To use peer dns.
user string
User name used for authentication.
___id_ float
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ str
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
add_default_route bool
Whether to add L2TP remote address as a default route.
allow_fast_path bool
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows Sequence[str]
Allowed authentication methods.
comment str
connect_to str
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
default_route_distance float
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dial_on_demand bool
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled bool
interface_l2tp_client_id str
The ID of this resource.
ipsec_secret str
Preshared key used when use-ipsec is enabled.
keepalive_timeout float
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tp_proto_version str
Specify protocol version.
l2tpv3_circuit_id str
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3_cookie_length float
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3_digest_hash str
Specifies which hash function to be used.
max_mru float
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
max_mtu float
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru str
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name str
Descriptive name of the interface.
password str
Password used for authentication.
profile str
Specifies which PPP profile configuration will be used when establishing the tunnel.
running bool
src_address str
Specify source address.
use_ipsec bool
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
use_peer_dns str
To use peer dns.
user str
User name used for authentication.
___id_ Number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
addDefaultRoute Boolean
Whether to add L2TP remote address as a default route.
allowFastPath Boolean
Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
allows List<String>
Allowed authentication methods.
comment String
connectTo String
Remote address of L2TP server (if the address is in VRF table, VRF should be specified) /interface l2tp-client add connect-to=192.168.88.1@vrf1 name=l2tp-out1 user=l2tp-client.
defaultRouteDistance Number
Since v6.2, sets distance value applied to auto created default route, if add-default-route is also selected.
dialOnDemand Boolean
Connects only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled Boolean
interfaceL2tpClientId String
The ID of this resource.
ipsecSecret String
Preshared key used when use-ipsec is enabled.
keepaliveTimeout Number
Since v6.0rc13, tunnel keepalive timeout in seconds.
l2tpProtoVersion String
Specify protocol version.
l2tpv3CircuitId String
Set the virtual circuit identifier to bind the one end of the L2TPv3 control channel.
l2tpv3CookieLength Number
Configures an L2TPv3 pseudowire static session cookie.
l2tpv3DigestHash String
Specifies which hash function to be used.
maxMru Number
Maximum Receive Unit. Max packet size that L2TP interface will be able to receive without packet fragmentation.
maxMtu Number
Maximum Transmission Unit. Max packet size that L2TP interface will be able to send without packet fragmentation.
mrru String
Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name String
Descriptive name of the interface.
password String
Password used for authentication.
profile String
Specifies which PPP profile configuration will be used when establishing the tunnel.
running Boolean
srcAddress String
Specify source address.
useIpsec Boolean
When this option is enabled, dynamic IPSec peer configuration and policy (transport mode) is added to encapsulate L2TP connection into IPSec tunnel. Multiple L2tp/ipsec clients behind the same NAT will not work in this mode. To achieve such scenario, disable use-ipsec and set static policies for clients with enabled tunnel=yes, level=unique settings.
usePeerDns String
To use peer dns.
user String
User name used for authentication.

Import

#The ID can be found via API or the terminal

#The command for the terminal is -> :put [/interface/l2tp/client get [print show-ids]]

$ pulumi import routeros:index/interfaceL2tpClient:InterfaceL2tpClient test *3
Copy

#Or you can import a resource using one of its attributes

$ pulumi import routeros:index/interfaceL2tpClient:InterfaceL2tpClient test "name=xxx"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
routeros terraform-routeros/terraform-provider-routeros
License
Notes
This Pulumi package is based on the routeros Terraform Provider.