Jump to content
Not connected, Your IP: 3.145.85.91
Sign in to follow this  
j7j3

Easy connection with FreeBSD (and no DNS leaks....)

Recommended Posts

I'll not ramble and just bullet point this simple half arsed hack of a guide....

 

  • Download your configuration and rename the files to .airvpn.ovpn and .airvpn.ssl (hidden files for cleanliness)

 

  • cp /etc/resolv.conf $HOME/.resolv.conf (hidden file again) and edit the file with the contents:
  •  
  • nameserver 10.4.0.1
  • nameserver 10.5.0.1

 

  • create two shell scripts: vpn1.sh / vpn2.sh and chmod +x them both
  •  
  • contents of vpn1.sh:
  • stunnel .airvpn.ssl
  •  
  • contents of vpn2.sh:
  • sudo cp .resolv.conf /etc/resolv.conf; sudo openvpn --config .airvpn.ovpn

 

  • open two terminal windows and launch ./vpn1.sh in one and ./vpn2.sh in the other and et voila you are connected...
  •  
  • you can either close the terminal windows or keep them open (I prefer them open to keep an eye on things). closing the windows will *not* cancel the connection as openvpn runs as sudo through stunnel.... it might take 30 seconds or so to come back up but it's solid (check the dns leak test below for confirmation)

 

  • check for dns leaks @ www.grc.com/dns/dns.htm (finds leaks where other tests miss them)

 

cheers

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...