Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my neighborhood free, public WLAN (without encryption) is available.

To avoid that sniffers can see/use my traffic, I'd like to configure my DD-WRT router to build an encrypted WiFi network. All traffic should be tunneled (VPN) and then forwarded to the public WLAN.

Is this possible? If so, how do I configure my router?

share|improve this question
    
What VPN provider do you use? –  Paul Mar 6 '13 at 21:47
    
Currently, I usr my own cloud-hosted VPN server (supports OpenVPN and PPTP). –  SecStone Mar 7 '13 at 18:49
add comment

1 Answer

DD-wrt supports OpenVPN in the Services / VPN menu.

This would perhaps best be managed server-side. Set up the dd-wrt OpenVPN client as you have your other clients, then on the server side configuration add:

push "redirect-gateway def1"

Which will tell dd-wrt to use the tunnel as its default gateway. You will also need to set up the server to do masquarading, to NAT the traffic from your network to the servers public IP address.

If the remote server does DNS lookups, you could also add:

push "dhcp-option DNS <server ip>"

Which will ensure the DNS lookups go via the tunnel and are handled by the server.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.