Install SoftEther VPN Server Manager On Mac

Install wine with homebrew first,

brew install wine

Download SoftEther VPN Server Manager

wine softether-vpnserver_vpnbridge-*-windows-x86_x64-intel.exe

Make a Mac app

mkdir -p SoftEtherMgr.app/Contents/MacOS
cd SoftEtherMgr.app/Contents/

cat > Info.plist << EOF
{ CFBundleExecutable = vpnsmgr; }
EOF

cd MacOS
cp $HOME/.wine/drive_c/Program\ Files/SoftEther\ VPN\ Server\ Manager/* .

cat > vpnsmgr << EOF
#!/bin/sh

/usr/local/bin/wine "${0%/*}/vpnsmgr.exe"
EOF

chmod +x vpnsmgr

Now you can run SoftEtherMgr.app ;D

  • Edward

    how can i get username and password with
    SoftEther VPN Server

  • Guest

    Nice post! Just a suggestion for the script to create Mac app:
    cat > vpnsmgr < vpnsmgr << 'EOF'
    to preserve special characters within shell heredoc line like:
    /usr/local/bin/wine "${0%/*}/vpnsmgr.exe"