Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[Simple]Tut how to make VPN GUI [VB 6 + OPENVPN Commands] ]

Status
Not open for further replies.
natry ko din po sir ganito same error po

If networkserver = "Smarttest" Then
Shell App.Path & "\bin\openvpn --tls-client --client --dev tun --remote xxx.xxx.xxx.xxx --proto udp --port 9200 --persist-key --persist-tun --ca data\ca.crt --comp-lzo --mute 3 --tun-mtu 1500 --auth-user-pass data\account.txt --reneg-sec 0 --keepalive 10 120 --route-method exe --route-delay 2 --verb 3 --log data\log.txt --status data\stat.db 1", vbHide
End If
 
natry ko din po sir ganito same error po

If networkserver = "Smarttest" Then
Shell App.Path & "\bin\openvpn --tls-client --client --dev tun --remote xxx.xxx.xxx.xxx --proto udp --port 9200 --persist-key --persist-tun --ca data\ca.crt --comp-lzo --mute 3 --tun-mtu 1500 --auth-user-pass data\account.txt --reneg-sec 0 --keepalive 10 120 --route-method exe --route-delay 2 --verb 3 --log data\log.txt --status data\stat.db 1", vbHide
End If

--auth-user-pass data\account.txt
kapag ganito ginamit mo dapat yong account.txt ay nasa loob naman ng data folder po....
 
Last edited:
mga bossing pa help naman.. yan yung codes ko.. nung connect palang ang nandyan nakakaconnect na.. pero nung nilagyan ko na ng combobox, option button, pag click ko ng connect wala nang nangyayari..


Dim netw As String

Private Sub Connect_Click()
If netw = "SmartServer-1" Then
Shell App.Path & "\bin\openvpn --client --dev tun --proto udp --remote x.x.x.x --keepalive 10 120 --resolv-retry infinite --redirect-gateway def1 --tun-mtu 1500 --tun-mtu-extra 32 --tun-mtu-extra 32 --comp-lzo --mute 3 --mute-replay-warnings --float --ping-timer-rem --mssfix 1450 --persist-key --persist-tun --ca data\ca.crt --route-method exe --auth-user-pass data\account.txt --reneg-sec 0 --verb 2 --win-sys env --script-security 2 system --route-delay 2 --log data\log.txt", vbHide
End If

If netw = "GlobeServer-1" Then
Shell App.Path & "\bin\openvpn --client --dev tun --proto udp --remote x.x.x.x --keepalive 10 120 --resolv-retry infinite --redirect-gateway def1 --tun-mtu 1500 --tun-mtu-extra 32 --tun-mtu-extra 32 --comp-lzo --mute 3 --mute-replay-warnings --float --ping-timer-rem --lport 53 --mssfix 1450 --persist-key --persist-tun --ca data\ca.crt --route-method exe --auth-user-pass data\account.txt --reneg-sec 0 --verb 2 --win-sys env --script-security 2 system --route-delay 2 --log data\log.txt", vbHide
End If

If netw = "SmartServer-2" Then
Shell App.Path & "\bin\openvpn --client --dev tun --proto udp --remote x.x.x.x --keepalive 10 120 --resolv-retry infinite --redirect-gateway def1 --tun-mtu 1500 --tun-mtu-extra 32 --tun-mtu-extra 32 --comp-lzo --mute 3 --mute-replay-warnings --float --ping-timer-rem --mssfix 1450 --persist-key --persist-tun --ca data\ca.crt --route-method exe --auth-user-pass data\account.txt --reneg-sec 0 --verb 2 --win-sys env --script-security 2 system --route-delay 2 --log data\log.txt", vbHide
End If

If netw = "GlobeServer-2" Then
Shell App.Path & "\bin\openvpn --client --dev tun --proto udp --remote x.x.x.x --keepalive 10 120 --resolv-retry infinite --redirect-gateway def1 --tun-mtu 1500 --tun-mtu-extra 32 --tun-mtu-extra 32 --comp-lzo --mute 3 --mute-replay-warnings --float --ping-timer-rem --lport 53 --mssfix 1450 --persist-key --persist-tun --ca data\ca.crt --route-method exe --auth-user-pass data\account.txt --reneg-sec 0 --verb 2 --win-sys env --script-security 2 system --route-delay 2 --log data\log.txt", vbHide
End If
End Sub


Private Sub Form_Load()
server.AddItem ("Server-1")
server.AddItem ("Server-2")
End Sub

Private Sub Globe_Click()
Smart.Caption = "Globe"
server.Enabled = True
End Sub

Private Sub log_Timer_Timer()
Dim line(10000) As String
Dim log_ctr As Integer
Open App.Path & "\data\log.txt" For Input Lock Read As #1
Do Until EOF(1)
Line Input #1, line(log_ctr)
log_ctr = log_ctr + 1
Loop
Close #1
If last_log <> log_ctr Then
For n = last_log To log_ctr - 1
Text1.SelStart = Len(Text1.Text)
Text1.SelText = line(n) & vbCrLf
End If
Next
last_log = log_ctr
End If
End Sub

Private Sub save_Click()
Open App.Path & ("\data" + "/" + Account + "Account.txt") For Output As #1
Print #1, username.Text
Print #1, password.Text
Close #1
MsgBox "Saved", vbQuestion, "unlinet VPN"
End Sub

Private Sub server_Change()
netw = Smart.Caption + server.Text
End Sub

Private Sub Smart_Click()
Smart.Caption = "Smart"
server.Enabled = True
End Sub
 
pano ba gumawa ng server nito? ano mga kelangan?

im planning to integrate openvpn sa thesis ko. sales and inventory sys.

login ko
search lan, tapos kapag hindi makita mysql server sa lan, dial na vpn. nid ko kasi mapagconnect malalayong branch amp
 
Last edited:
help naman po mga bossing

ano po ba ang code para ma call ko si kill.bas pag click ko ng Disconnect?..


and para naman po mag open si addtap.bat pag open nga GUI

and po mag delette si deltap.bat pag nag nag close ang GUI
 
ok na yung tap adapter ko running upon open ng GUI.. ^_^

problem ko nglang yung disconnect..

pa help naman mga bossing

ano po code para sa mag close yung openvpn.exe sa task manager?..
 
wow maganta to para pag-aralan ulit ang vB6
 
mga bossing pashare naman po ng openvpn n gamit niyo po sakin po kc pansin q may kulang na files dun sa ss ala yung "addtap", "deltapall" and ung "tapinstall" po
 
mga bossing pashare naman po ng openvpn n gamit niyo po sakin po kc pansin q may kulang na files dun sa ss ala yung "addtap", "deltapall" and ung "tapinstall" po

yan na yung bin files, at tapadapter. compatible po yan..
 

Attachments

  • tapadapter.rar
    256.1 KB · Views: 372
  • bin.rar
    1.6 MB · Views: 553
Status
Not open for further replies.
Back
Top Bottom