Skip to content

Add an option to pass the pppd linkname #1319

@randomstuff

Description

@randomstuff

This is a convenient way to apply connection-specific hooks in /etc/pppd/*.d:

#!/bin/sh
[ "$LINKNAME" = myvpn ] || exit 0
...

According to the documentation:

For the ip-down and auth-down scripts, pppd also sets the following variables giving statistics for the connection:

[...]

LINKNAME : The logical name of the link, set with the linkname option

Currently, an alternative solution is to use the -pppd-ipparam= flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions