Configuring the client is easy, here’s how: Then you can use its OpenVPN client to connect back to the VPN server you just configured. If you want to connect offices together, you can set up additional DD-WRT routers at other locations. Remember, the names of each client certificate and key vary select the correct ones for each client. You must also copy the following three files from the computer and directory where you created the certificates (C:Program FilesOpenVPNeasy-rsakeys) to the particular client computer in the C:Program FilesOpenVPNconfig directory: To save as a different extension, you’ll have to change the Save as Type option on the Save dialog from Text Files to All Files. ovpn extension to the following location: C:Program FilesOpenVPNconfig. Also, make sure the names of the client certificate and key are correct. You could alternatively use a hostname, such as from a dynamic DNS service, if your Internet connection doesn’t have a static IP. Now, open Notepad and paste in the following configuration parameters: remote 1194īe sure to replace the remote address in the beginning with your WAN or Internet IP address. Start by downloading and installing OpenVPN on each PC using the Windows Installer. Next, you must set up the clients, the computers from which you want to connect to the VPN server. Either unplug the router for a few seconds or do it via the control panel by clicking the Administration tab and hitting the Reboot Router button on the bottom. Now that everything is set up for the OpenVPN server on the router, reboot it. Iptables -I INPUT -p udp -dport 1194 -j ACCEPT Paste the following and click Save Firewall: Paste the following, and click Save Startup: openvpn -mktun -dev tap0 On the DD-WRT control panel, click Administration > Commands. You must then enter a firewall script so the VPN traffic can pass. Now, you must enter the startup script so the server can initialize during boot. When you’re done entering all these pieces of information, click Apply Settings. Some you may have to Open and then choose Notepad as the program.įor the OpenVPN Config box, enter the following: mode server Some files you can right-click, select Open With, and choose Notepad. Open each certificate file in Notepad to view the contents. Similar to the others, start with -–BEGIN CERTIFICATE-– and end with -–END CERTIFICATE-–. In the OpenVPN Daemon area, enable Start OpenVPN.įor the following boxes, enter the contents of the certificate file specified below:.Enter the new IP address (192.168.2.1) into a web browser. We can begin configuring the OpenVPN server on the DD-WRT router. Then, we’ll configure the clients and finally test it out. We’ll also input startup and firewall scripts. Now, we’ll continue by enabling the OpenVPN server and copying in the SSL certificates. In Part 1, we uploaded the DD-WRT firmware to the router, changed the router’s IP and subnet for compatibly reasons, and created the SSL certificates for the OpenVPN server and clients. This a cost-effective solution can support a dozen or two VPN users. This is a great way to set up secure connections to your network for road-warriors or to remotely connect offices. This is the second installment of a two-part series on setting up the OpenVPN server on DD-WRT router firmware. We continue our look at how to set up a VPN server, from stepping though how to enable the OpenVPN server and copy in SSL certificates, to configuring clients and testing. A VPN server plays a major role in this architecture. For OpenVPN server on DD-WRT router basics, return to Part 1.Ī VPN is an effective way to keep remote workers and branch offices as secure as those in HQ.
0 Comments
Leave a Reply. |