I am attempting to set up an OpenVPN Router so that I may connect my tablet (wireless) and Blu-Ray (wired) to a paid VPN service in another country on Ubuntu 12.10. I have successfully done this using DD-WRT (too slow) and a virtual instance of PFSense (too limited).
I'm new to Linux, but I'm 90% complete with this project. Hardware is 2 wired ethernet ports, one of which is connected to a traditional home router, and a wireless card.
So far I have..
- Set up my wireless to act as a true Master Access point using hostapd
- Created a bridge (I think) between the Wireless and Local LAN
- Set up a DHCP server that is successfully assigning addresses to the bridge - both wireless and wired are getting them.
- Set up OpenVPN so that it successfully creates a tunneled connection upon boot.
Current behavior routes all traffic from my Ubuntu machine to the VPN server. The other devices do NOT have any connectivity, and that's the issue.
How do I configure the routing so that OpenVPN only directs traffic from my bridge (devices under 192.168.10.x) through the VPN tunnel and NOT traffic from the actual Ubuntu computer?
OpenVPN sets up some routes automatically, but it seems to ignore the bridge I set up.
I have read a lot of documentation on
route but it makes very little sense to me. Despite multiple tutorials, I still don't understand how to read the results from the
route command. I also suspect this can be accomplished with
route-up in the OpenVPN configuration file, but nothing has been successful.
My knowledge of where configuration files and settings are is limited. The above tasks took me at least 30 hours of tinkering, so please go easy on me :)
I've posted a solution below that directs the bridge traffic, but it doesn't prevent traffic on the Ubuntu computer from going through the VPN.