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

manually disconect a openvpn user

Hello,

Disconnecting a vpn user via command line does not work for me.

I tried the following:

Get connection details of user schweiger:

   /usr/local/bin/openvpn_connections.sh|grep schweiger

I used the external and internal ip address. Both with no effect.

chroot /var/sec/chroot-openvpn /usr/bin/ras_update.plx ssl disconnect username schweiger 10.242.2.6

I don't receive any error message but the user's connection is still established (verfied with the openvpn_connection.sh command).

Thanks.

Best regards,

Duff11



This thread was automatically locked due to age.
Parents Reply
  • Not sure why you persist in starting the last command with /var/chroot-openvpn.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
  • This was without chroot. I had to use the full path to the script:

    sg115:/root # /var/chroot-openvpn/usr/bin/ras_update.plx ssl disconnect username schweiger 10.242.2.2

    But it doesn't work :(

  • You're right, Duff - this doesn't work anymore.  I just logged in from my iPhone via LTE and hen got the following result at the command line:

         secure:/root # chroot /var/sec/chroot-openvpn
         secure:/ # /usr/bin/ras_update.plx ssl disconnect username BAlfson 10.242.2.2
         perl: warning: Setting locale failed.
         perl: warning: Please check that your locale settings:
                     LANGUAGE = (unset),
                     LC_ALL = (unset),
                     LANG = "en_US.UTF-8"
               are supported and installed on your system.
         perl: warning: Falling back to the standard locale ("C").

    iPhone still connected.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA