Skip to main content
Version: 7.26

pptp-client


interface/pptp-client​

Type: Directory

PPTP client interfaces connect to a remote PPTP server. The client entry is disabled by default; enable it to dial.

FlagNameDescription
XdisabledWhether an item is disabled. New client entries are disabled; set disabled=no to start the connection.
RrunningWhether the interface is running, which means the tunnel is connected.
ArgumentTypeDescription
namestringInterface name.
max-mtunumMaximum Transmission Unit: the largest packet the client sends over the PPTP tunnel. The tunnel comes up with the lower of the client and server values. Default: 1450.
max-mrunumMaximum Receive Unit: the largest packet the client receives over the PPTP tunnel. Default: 1450.
mrrunumMaximum packet size that can be received on the link. If a packet is bigger than the tunnel MTU, it is split into multiple packets, allowing full-size IP or Ethernet packets to be sent over the tunnel. Default: disabled.
connect-to ( mandatory )alt { address: ipAddr , name: string }IPv4 address or DNS name of the PPTP server.
user ( mandatory )stringUser name used for authentication. It must match an account configured on the server (/ppp/secret or RADIUS on a RouterOS server).
passwordstringPassword used for authentication. It is stored in the configuration.
profileenumPPP profile used when establishing the tunnel. Default: default-encryption.
keepalive-timeoutenum (disabled) { disabled:0 }Keepalive timeout in seconds. disabled turns keepalive off. Default: 60.
use-peer-dnsenum (no | yes | exclusively) { no:0, yes:1, exclusively:2 }Whether to use DNS settings from the peer. Default: no.
add-default-routeboolWhether to add a default route through the tunnel. Default: no.
default-route-distancenumDistance value applied to the auto-created default route when add-default-route is enabled.
dial-on-demandboolConnects to the PPTP server only when outbound traffic is generated. If enabled, a route with a gateway address from 10.112.112.0/24 network is added while the connection is not established. Default: no.
allowubit (pap, chap, mschap1, mschap2)Allowed authentication methods. Default: pap,chap,mschap1,mschap2.