This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Monitor L2TP Users with RADIUS Auth

Hello Community,

I have set up a L2TP VPN with RADIUS authentication on a Sophos UTM. This all works. Now I want to monitor the number of users. The problem is, on the Sophos UTM no object is created for the user when RADIUS. The 'Remote Users' and 'Online Users' sections will remain empty. I am looking for a way to script the number of users to display them in PRTG (RestAPI or 'cc').  

Thanks,

Ben



This thread was automatically locked due to age.
  • I tested a little bit and I think when I count the number of pppd-processes via SNMP I get the amount of connected L2TP users. Here is a powershell sniplet:

    # github.com/.../SNMPv3
    # Install-Module -Name SNMPv3
    $process = "pppd"
    $ipHost = '192.168.0.1'
    $WalkRequest = @{
    UserName = 'snmpuser'
    Target = $ipHost
    OID = '1.3.6.1.4.1.15601.4.2.1.2'
    AuthType = 'SHA1'
    AuthSecret = 'AuthSecret'
    PrivType = 'AES128'
    PrivSecret = 'PrivSecret'
    Context = ''
    Timeout = 5000
    }
    $count = 0
    foreach ($proc in Invoke-SNMPv3Walk @WalkRequest) {
    if ([string]$proc.value -eq $process) {$count++}
    }
    Write-Host $count



    Thanks,
    Ben

    If a post solves your question please use the 'Verify Answer' button.