You must Sign In to post a response.
  • Category: .NET programming - OpenVPN?

    Can someone help me how to make an OpenVPN GUI? I need help though in applying openvpn gui with the use only of an ovpn file.
    Thanks in advance.
  • #765051
    Try this:
    Imports System.IO
    Imports System.Diagnostics
    Public Class OpenVPNConnection
    Public Sub TryConnect(UserID As String, UserPassword As String, LoginFileName As String, ServerFileName As String)

    For Each NewVPNProcess As Process In Process.GetProcesses
    If NewVPNProcess.ProcessName.Contains("OpenVPN") Then
    End If

    File.WriteAllText(LoginFileName, UserID & vbNewLine & UserPassword)
    Using processInfo As New Process
    With processInfo.StartInfo
    .FileName = "openvpn-gui"
    .Arguments = "--connect " & ServerFileName & " --auth-user-pass " & LoginFileName
    .WindowStyle = ProcessWindowStyle.Hidden
    End With
    End Using
    End Sub
    End Class

    Here you can download exact source code done in VB.Net 2010 for OpenVPN Gui:

    Find multiple source codes you are looking for from this URL:

    Some Youtube videos for step's to make openVPN client GUI with visual basic:
    Hope it helps.
    Shashikant Gurav

Sign In to post your comments