Skip to content

Consider randomizing openvpn user password #6

@vgrsec

Description

@vgrsec

On launch of the container consider updating the openvpn user password.

This would prevent abuse of this account when the container is exposed to the internet, but assumadly administrators would have the ability to enter the container to obtain the password file in case of lockout.

tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1>/root/openvpn
random=`cat /root/openvpn`
echo openvpn:$random | /usr/sbin/chpasswd

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