jmaxxz Posted September 14, 2009 Share Posted September 14, 2009 Howdy all, Just set up openvpn on my gentoo server. I am having a little trouble getting clients to automatically use it as their default gateway when they connect. Any suggestions? (want to use openvpn to secure my traffic on untrusted networks so i no longer have to publicly expose an ssh service) Thanks, Jmaxxz Quote Link to comment Share on other sites More sharing options...
dr0p Posted September 14, 2009 Share Posted September 14, 2009 I use my home connection as a VPN for securing my traffic when I'm roaming and I use other VPNs for anonymity. Quote Link to comment Share on other sites More sharing options...
beakmyn Posted September 14, 2009 Share Posted September 14, 2009 Howdy all, Just set up openvpn on my gentoo server. I am having a little trouble getting clients to automatically use it as their default gateway when they connect. Any suggestions? (want to use openvpn to secure my traffic on untrusted networks so i no longer have to publicly expose an ssh service) Thanks, Jmaxxz In your server.conf file: push "route 192.168.254.0 255.255.255.0 #To access all ressource on the server Lan push "redirect-gateway" #To redirect all your web traffic through your VPN push "dhcp-option DNS 192.168.254.254" #For Windows machines send DNS queries to VPN, otherwise you'll have DNS leaks This is what I use my internal LAN is 192.168.254.x On some systems you may need redirect-gateway def1 Add the def1 flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway. Using the def1 flag is highly recommended, and is currently planned to become the default by OpenVPN 2.1. The easiest way to test if it's working is connect to your VPN from outside, and go to IPChicken.com and see if it shows the IP of your home connection and not your present location. I had a friend in Ohio connect through my VPN and IPChicken said was in NY. Quote Link to comment Share on other sites More sharing options...
jmaxxz Posted September 15, 2009 Author Share Posted September 15, 2009 Off site right now testing my vpn, and the windows tap interface is maxxed out at 99% usage, but the wireless interface (which the tap should be running over) is at 0% usage. Any suggestions why the tap interface is eating my packets? Quote Link to comment Share on other sites More sharing options...
Wetwork Posted September 15, 2009 Share Posted September 15, 2009 Off site right now testing my vpn, and the windows tap interface is maxxed out at 99% usage, but the wireless interface (which the tap should be running over) is at 0% usage. Any suggestions why the tap interface is eating my packets? whip out the old wireshark and do an analysis of all traffic on that particular NIC. That should let you know what is gobbling up your bandwidth Quote Link to comment Share on other sites More sharing options...
beakmyn Posted September 15, 2009 Share Posted September 15, 2009 Off site right now testing my vpn, and the windows tap interface is maxxed out at 99% usage, but the wireless interface (which the tap should be running over) is at 0% usage. Any suggestions why the tap interface is eating my packets? Which version of OpenVPN did you install? What is your OS? I use OpenVPN 2.1_rc15 on Vista without any issues. Quote Link to comment Share on other sites More sharing options...
jmaxxz Posted September 15, 2009 Author Share Posted September 15, 2009 Wow I feel stupid, I forgot to set the proto on the server. I had proto udp on the client and nothing set on the server, so it must had defaulted to tcp. Set them both explicly to tcp and tada the interface is no longer floored Which version of OpenVPN did you install? What is your OS? I use OpenVPN 2.1_rc15 on Vista without any issues. yep I am also on the RC had the stable version for awhile, but as you say the network tap does not work in vista (and win7 which I am using) Quote Link to comment Share on other sites More sharing options...
G-Stress Posted September 16, 2009 Share Posted September 16, 2009 @ jmaxxz, I have been searching for a good written tutorial for setting up OpenVPN to use as a tunnel to secure traffic for quite sometime. Hoping hak5 would do a segment on it. My current LAN is all windows based, Vista, XP and 2k3, soon to add some sort of *nix box. Would love to see a good tutorial. From what I hear it's a real pain to setup and configure. Quote Link to comment Share on other sites More sharing options...
jmaxxz Posted September 16, 2009 Author Share Posted September 16, 2009 @ jmaxxz, I have been searching for a good written tutorial for setting up OpenVPN to use as a tunnel to secure traffic for quite sometime. Hoping hak5 would do a segment on it. My current LAN is all windows based, Vista, XP and 2k3, soon to add some sort of *nix box. Would love to see a good tutorial. From what I hear it's a real pain to setup and configure. As soon as I get this tunnel working as I want I will post something explaining what I had to do to get it working. Accessing network resources over it was not too bad, but setting up a secure tunnel for internet traffic is turning out to be a real pain. I thought hak5 said something recently at the end of one of their shows about doing a segment on openvpn. ...but I could be wrong Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.