Now some / much clients i have want that app also for MAC and Linux.
Now i startet with Xojo Trial and allready get completed the Login Etc for the App.
[b]Now i searched for a way to at VPN to MAC with Terminal or so but i found nothing working.
[/b]
[b]Also for Proxy with Terminal.
At Linux there are some terminal command for adding VPN and Proxy .
I need PPTP and L2TP VPN and Socks Proxy.
[/b]
[b]What can i do use a other software instead of Xojo like XCode or so for Mac have i there more option ?
I found a software of vyprvpn they get all working at mac like pptp , l2tp and openvpn and proxy but they are other VPN company and not open source.
[/b]
Can anyone help / ggive me some suggestions / tipps etc ?
The second answer shows the specific shell commands used to create/configure a VPN on OSX. Use the same commands in a Xojo shell, not Applescript. There may be a way to call the networksetup functions through an API but I’ve never tried that.
Also, a VPN will prompt for any missing credentials.
Thanks yes i tryed with networksetup but there will be create a VPN Device like a Eternet device and there is then no option do set the Username and Password.
That .NET tool with source that you linked just uses Windows’ built in services. You can do the same thing with Xojo. But you must learn how to setup a VPN manually on each platform before you can code it securely. @Tanner Lee gave you what you need to get there.
[b]Sry that i ask so much but all other things i need for app i found only not openvpn but that will be work then. when i find more about openvpn at mac os x.
Pnly this PPTP and l2TP thing with terminal i write not work .
[b]Is there realy now way with networksetup or other mac os x built in service with that it work ?
because i also want create pptp but this tool only can l2tp.[/b]
For now i make it with that . But must search for other way for PPTP
[b]Because at my MAC i get allways error that the connection to L2TP VPN not work / Server not answer only with PPTP it work at Windows / Linux both work.
At MAC also when i set manually the L2TP it also not work.
[/b]
Screenshot:
Seems that there is not option to create vpn with networksetup.
You could also try to export .networkConnect file from System Preferences.
(Create vpn interface, export it and there you have sample file)
It’s xml-file that you could generate yourself and then import to system with something like this maybe:
/usr/bin/open "/path/to/vpn_pptp.networkConnect"
/usr/bin/osascript << EOF > /dev/null 2>&1
tell application "System Events"
tell process "System Preferences"
tell window "Network"
click button "Apply"
end tell
end tell
end tell
tell application "System Events"
tell application "System Preferences" to quit
end tell
EOF
But at this way the user also see that the app to something.
What script is this for ? i tryed with Applscript
but get error that first 2 lines not ok and in terminal it not to it automatic and i split it the first 2 lines for terminal and then the other as applescript.
But thank you very much for your fast help.
I think i need more time for this vpn thing at mac. I work again at linux more and windows version.