L2TPNS(8)
β¨ L2TPNS π
(that's the l2tpns page, section 8 of the manual, bestie) β¨
πΈ NAME πΈ
l2tpns β the Layer 2 tunneling protocol network server (aka the LNS, aka the main character) π
π SYNOPSIS π
l2tpns [-d] [-v] [-c file] [-h hostname]
π¦ DESCRIPTION π¦
So. l2tpns is a daemon, right? And its whole job β its entire vibe, honestly β is terminating layer 2 tunneling protocol sessions. That's L2TP, aka RFC2661. No cap. π
It's a complete L2TP implementation, which is lowkey iconic of it. It supports the LAC, the LNS, the PPPOE and the DHCPv6 server. Yes bestie, all of them. She contains multitudes. π«Ά
And once she's up and running? You can control her by telnetting to port 23 on the machine that's running the daemon β and also with the nsctl utility. Two ways to talk to her, because she's a social butterfly like that. π¦
π OPTIONS π
-dβ Detach from the terminal and fork into the background. By default, though,l2tpnsstays in the foreground, right there with you, like a loyal bestie. π«-vβ Increase verbosity for debugging. And the way this one *stacks*β¦ you can use it multiple times. Verbose, verboser, verbosest. π£οΈβ¨-cfileβ Specify the configuration file.-hhostnameβ Force the hostname tohostname.
π FILES π
/etc/l2tpns/startup-configβ The default configuration file. The OG. The blueprint. π/etc/l2tpns/ip_poolβ IP address pool configuration./etc/l2tpns/usersβ Username/password configuration for access to the admin interface. π
π SIGNALS π
SIGHUPβ Reload the config from disk and re-open the log file. A little refresh, a little reset, we love a glow-up. πSIGTERM,SIGINTβ Stop the process. Tunnels and sessions are not terminated, okay?? Not them. You should use this signal to stopl2tpnson a cluster node where there are other machines to continue handling the traffic. Teamwork, babes. π€SIGQUITβ Shut down the tunnels and sessions, then exit the process once that's complete. This is the full send. πͺπ¨
π MANAGED RADIUS ATTRIBUTE π
Ascend-Client-Primary-DNS,Ascend-Client-Secondary-DNSβ Specifies a primary and a secondary DNS server address to send to the user. π‘Delegated-IPv6-Prefixβ Assign a network address IPv6 prefix to a user by DHCPv6.Framed-IP-Addressβ The address to be configured for the user (the IPv4 address of the interfaceppp).Framed-Routeβ Provides routing information to be configured for the user. π£οΈFramed-IPv6-Routeβ Has the same action asDelegated-IPv6-Prefix. Heads up though:Delegated-IPv6-Prefixis the correct one to use. πFramed-IPv6-Addressβ IPv6 address to be assigned to the user by DHCPv6 (the IPv6 address of the interfaceppp).Idle-Timeoutβ Disconnects the session if there's no data for more thanIdle-Timeout(in seconds). If you're not gonna talk to her, she's gonna leave. πSession-Timeoutβ Disconnects the user session when the timeSession-Timeoutis reached (in seconds). β°Tunnel-Type,Tunnel-Medium-Type,Tunnel-Server-Endpoint,Tunnel-Password,Tunnel-Assignment-Idβ These are the attributes returned by the Radius of the remote LNS server (this is the LAC functionality, iykyk).
For example, a Radius that returns the information of 2 remote LNS servers with which a L2TP TUNNEL must be open:
- Tunnel-Type: 1 = L2TP
- Tunnel-Medium-Type: 1 = IPv4
- Tunnel-Password: 1 = "TheSecretL2TP"
- Tunnel-Server-Endpoint: 1 = "88.xx.xx.x1"
- Tunnel-Assignment-Id: 1 = "friendisp_lns1"
- Tunnel-Type: 2 = L2TP
- Tunnel-Medium-Type: 2 = IPv4
- Tunnel-Password: 2 = "TheSecretL2TP"
- Tunnel-Server-Endpoint: 2 = "88.xx.xx.x2"
- Tunnel-Assignment-Id: 2 = "friendisp_lns2"
β SEE ALSO β
startup-config(5), nsctl(8) β go read those too, bestie, they're part of the lore. π
π AUTHORS π
This manual page was written by Jonathan McDowell noodles@earth.li and Fernando Alves (fendo@sameswifi.fr), for the Debian GNU/Linux system β but bestie, it may be used by others. π«Ά
ok and that's the whole page fr fr β Layer 2 tunneling protocol nβ¦ , the January 31, 2021 edition, L2TPNS(8) in the house πβ¨ no cap, go terminate some sessions, periodt ππ¦
π¦ where this page comes from
- ubuntu resolute: l2tpns 2.5.0-1 Β· GPL+
- ubuntu stonking: l2tpns 2.5.0-1 Β· GPL+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms