OpenVPN, clients can see each other, but cannot get outside over the VPN
I have just finished setting up a basic VPN using OpenVPN. I'm able connect on all the clients (2 clients currently), and everyone can see each other (server + clients). I can access services on each machine over the VPN, share files, ping, etc. I would like to tunnell all of the client's traffic through the VPN, not just filesharing and things like that.
I'm running OpenSUSE 11.1 for the server, and my two clients are Windows XP machines. Searching around I found a bit about changing the routing on the client, but this is something I do not know anything about. I was able to install Wireshark on the clients and the server and do a bit of testing. On client1, I decided to play with the routing table a bit. Here is the line I changed in its original form: Code:
Network Destination Netmask Gateway Interface Metric Code:
PS C:\Documents and Settings\Administrator> route add 0.0.0.0 mask 0.0.0.0 10.1.0.1 IF 3 Also, just for fun, I tried adding a route to a specific website and then pinging it from the client. Here's what I did, and the result: Code:
PS C:\Documents and Settings\Administrator> route add 207.97.211.30 mask 255.255.255.255 10.1.0.1 IF 3 I have the feeling that I need to do something on the server so that it knows what to do with these outgoing packets it receives on the VPN, but I do not know how to set this up. Here are the details on the setup: Server: OpenSUSE 11.1 LAN IP: 192.168.10.108 VPN IP: 10.1.0.1 openvpn version: 2.0.9 x86_64 server.conf: Code:
port 1194 # or any other port you want to use LAN IP: 192.168.10.111 VPN IP: 10.1.0.2 openvpn version: OpenVPN 2.1_rc18 client.conf: Code:
port 1194 LAN IP: 192.168.10.110 VPN IP: 10.1.0.3 openvpn version: OpenVPN 2.1_rc18 client.conf: (same as Client 1) So as it stands right now, all 3 machines can see each other and talk to each other just fine over the VPN. I want the clients to be able to push all of their network traffic through the VPN though - eventually I want to be able to use an open WiFi hotspot and connect to the VPN at my home, and tunnel all of my internet traffic through my home (I'm currently using SSH tunnels, and I wanted to give VPN a try). Any ideas/suggestions? Need more info? Thank you for taking the time to read all of this, every help/comment/suggestion is appreciated! |
I've been digging around in YaST2 and made a few changes.
The firewall was previously disabled, so I enabled it. On the OpenSUSE box (VPN Server) eth1 is the LAN, and tap1 is the VPN. I set eth1 in the external zone, and tap1 in the internal zone, and opened up port 1194 in the external zone. I also enabled masquerading via YaST. After doing this everything still works the same - I can connect to the VPN Server from the clients just fine, and normal VPN traffic is okay, but I am still not able to tunnel all network traffic from the clients through the VPN server. |
Instead of push "route-gateway..." in your server.conf, have you tried replacing that line with:
Code:
push "redirect-gateway" |
Have you read http://www.openvpn.org/index.php/ope...html#redirect?
|
I had not read that billymayday, thank you for the link.
Thank you too for your reply twantrd. It is now up and running and working perfectly, thank you very much! |
All times are GMT -5. The time now is 11:48 AM. |