MacOS – A Mac OS X VPN client that can import a .VPN file

macosNetworksnow leopardvpn

I have a .vpn file that I use on Windows with the Shrew Soft VPN Client that has the connection details (excluding the username and password). Is there an equivalent client for Mac OS X that will allow me to take this .vpn file and import it and connect to the VPN?

I have tried a few, such as Cisco's, to no avail unfortunately.

When I look at it in a text editor, I get this (host intentionally removed):

n:version:2
n:network-ike-port:500
n:network-mtu-size:1380
n:client-addr-auto:1
n:network-natt-port:4500
n:network-natt-rate:15
n:network-frag-size:540
n:network-dpd-enable:1
n:client-banner-enable:0
n:network-notify-enable:1
n:client-wins-used:0
n:client-wins-auto:1
n:client-dns-used:0
n:client-dns-auto:0
n:client-splitdns-used:0
n:client-splitdns-auto:0
n:phase1-dhgroup:2
n:phase1-life-secs:86400
n:phase1-life-kbytes:0
n:vendor-chkpt-enable:1
n:phase2-life-secs:3600
n:phase2-life-kbytes:0
n:policy-nailed:0
n:policy-list-auto:0
n:phase1-keylen:256
n:phase2-keylen:256
s:network-host:80.75.x.x
s:client-auto-mode:disabled
s:client-iface:direct
s:network-natt-mode:enable
s:network-frag-mode:enable
s:auth-method:hybrid-rsa-xauth
s:ident-client-type:ufqdn
s:ident-server-type:any
s:phase1-exchange:main
s:phase1-cipher:auto
s:phase1-hash:auto
s:phase2-transform:auto
s:phase2-hmac:auto
s:ipcomp-transform:disabled
n:phase2-pfsgroup:-1
s:policy-level:auto
s:policy-list-include:172.26.x.x / 255.255.255.0
s:auth-server-cert:crm-gw.cert
b:auth-server-cert-data:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMwakNDQWJxZ0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREFiTVJrd0Z3WURWUVFLRXhCa2NtbDIKWlMxbmR5NHVaR1YzYlhKb01CNFhEVEV3TURjeE5ERXdORFV5TmxvWERUTXdNRGN3T1RFd05EVXlObG93R3pFWgpNQmNHQTFVRUNoTVFaSEpwZG1VdFozY3VMbVJsZDIxeWFEQ0NBU0F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UlCTFhmUWlzSW5zeUFMZFV4UmRHZ0tFQWJlCkRhdGU0MVB0Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K

Best Answer

I know that this is an old post, but I have been trying to read a .vpn file as well and none of the posted solutions worked for me. The recommended software were not able to read the file.

In case other people have the same issue, I got it by installing the shrewsoft-vpn-client. Since it is not that straightforward, I am putting the steps I did.

  1. Install home-brew and run

    brew cask install tuntap
    

Note: To install and/or use tuntap you may need to enable its kernel extension in System Preferences → Security & Privacy → General

  1. Download the file shrewsoft-vpn-client.rb from Github

  2. run

    brew install --build-from-source /path_to/shrewsoft-vpn-client.rb --without-gui
    sudo /usr/local/sbin/iked
    
  3. Copy the file file.vpn into .ike/sites without extensions

    cp /path_to/file.vpn ~/.ike/sites/file
    
  4. Then, start the VPN by running

    ikec -r file
    c
    

Hope it helps