Comments on: Openvpn in the TP-LINK WR841N[D] https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/ Welcome, connect your terminal Sun, 20 Mar 2016 06:02:10 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Openwrt, TP-Link MR3020 and OpenVPN installation every time at power up | xiaolabaDIY https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-7076 Sun, 20 Mar 2016 06:02:10 +0000 http://blog.ciberterminal.net/?p=876#comment-7076 […] http://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/ […]

]]>
By: pedro https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1938 Mon, 12 Jan 2015 17:18:56 +0000 http://blog.ciberterminal.net/?p=876#comment-1938 I have an wr841nd v9 with DDWRT, and there is only PPTP.
But i need a OpenVPN Client. Works this on DDWRT?

]]>
By: tim https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1617 Sun, 26 Oct 2014 09:24:07 +0000 http://blog.ciberterminal.net/?p=876#comment-1617 Hi!
Found another solution.
You have to upgrade your OpenWRT with firmware that includes openvpn-polarssl.
Then configure it as described here (in russian)
http://www.securitylab.ru/blog/personal/securegalaxy/39048.php

My TP-LINK WR841ND v8.4 works perfectly. Have tun0 to USA.

]]>
By: tim https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1615 Sat, 25 Oct 2014 16:06:28 +0000 http://blog.ciberterminal.net/?p=876#comment-1615 Hi!
I have BARRIER BREAKER (14.07, r42625) firmware.
When I try to install kmod-tun:
root@OpenWrt:~# opkg install kmod-tun

I get:
Unknown package ‘kmod-tun’.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-tun.

Need help please!

]]>
By: Lucas https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-1004 Wed, 16 Oct 2013 11:21:57 +0000 http://blog.ciberterminal.net/?p=876#comment-1004 Hello
We have followed all the steps in your tutorial.
And now we want to use OpenVPN on router tp-Link-WR841N like OpenVPN client. No Server.
And we don’t know how to configure it and where we have to put the connection files in the OpenVPN client on the router TP-Link WR841N
ca.crt
client01.crt
client01.key
client01.ovpn
Note: These files has been generated on the OpenVPN server
The other question is regarding the comment of yours, it is necessary to delete content onthe tp-link router WR841N for space.
What is to delete exactly?
TX
Lucas

]]>
By: dodger https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-979 Thu, 03 Oct 2013 16:42:39 +0000 http://blog.ciberterminal.net/?p=876#comment-979 Hi!
I can’t undestand question #1, sorry, explain a bit more.
#2: Is not the main post clear enough?? If you have an specific question, please tell me :-)

]]>
By: Lucas https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-978 Wed, 02 Oct 2013 07:33:51 +0000 http://blog.ciberterminal.net/?p=876#comment-978 Hello,
thanks for the info.
2 questions:

1-. to be cleared to make space?
2-. How to configure openVPN client on this router?

]]>
By: dodger https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-975 Tue, 27 Aug 2013 09:00:38 +0000 http://blog.ciberterminal.net/?p=876#comment-975 Hi man!
Yes, this will be a really nice solution (the best).
But I didn’t want to rebuild the openwrt firmware, is a headache every-time I begin a “project” like that xD
I think that the best option will be that openwrt community build the images without luci, you’re supposed to easily install it if you really need it.
I really appreciate Luci cause my network configuration is not the usual one ;-) and it helped me a lot.
Anyway, I actually have an unused wr841 and I will try to build the fw without Luci.
Thanks!!

PS: if you want some hosting space to share your firmware with all of us, I can provide it :-)

]]>
By: Helix https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-974 Mon, 26 Aug 2013 16:28:04 +0000 http://blog.ciberterminal.net/?p=876#comment-974 ALTERNATIVE SOLUTION TO GET OPENVPN TO YOUR WR841N(D)
– – – – – – – – – – – – – – –
Create a custom build that includes OpenVPN (*** BUT WITHOUT THE LUCI WEBINTERFACE***) (requires a Linux system). No webinterface because of limited space on the TL WR841N(D). OpenWRT is easy enough to configure using UCI. –> http://wiki.openwrt.org/doc/uci
I find this more convenient because you usually only configure it once and it doesn’t need to load an essential package every time it boots. Effectively, it doesn’t need to load anything.

HOW TO (roughly):
Get the ImageBuilder file from http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/
+ necessary packages to compile everything. For details check http://wiki.openwrt.org/doc/howto/obtain.firmware.generate

Generate image using the make command. Pay attention to the selected packages here:
[cc lang=”bash”]
make image PROFILE=TLWR841 PACKAGES=”kmod-tun liblzo libopenssl openvpn-openssl wol etherwake dnsmasq dropbear firewall iptables iw kernel kmod-ath kmod-ath9k kmod-ath9k-common kmod-cfg80211 kmod-crypto-aes kmod-crypto-arc4 kmod-crypto-core kmod-gpio-button-hotplug kmod-ipt-conntrack kmod-ipt-core kmod-ipt-nat kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-default-on kmod-ledtrig-netdev kmod-ledtrig-timer kmod-ledtrig-usbdev kmod-lib-crc-ccitt kmod-mac80211 kmod-nls-base kmod-ppp kmod-pppoe kmod-pppox kmod-tun libc libgcc libip4tc libiwinfo liblzo libnl-tiny libopenssl libubox libubus libuci libxtables mtd netifd -opkg ppp ppp-mod-pppoe swconfig ubus ubusd uci wpad-mini zlib ntpdate curl”
[/cc]
NOTE: OpenVPN might require valid system time (or else you’ll get a certificate error), hence I added the ntpdate package. There is other ways but adding “ntpdate -u ” to the crontabs and to /etc/rc.local will do the trick.

A “minus” in front of the package means it was explicitly deselected.
Using above packages, the image will NOT include the opkg package manager but there won’t be much space left on the device anyway (less than 100K for me). You can play around with it and maybe kick out stuff like the PPPoE and curl packages, but from my experience you won’t gain much free space, certainly not enough for the whole LUCI webinterface.

IMPORTANT! Make sure you keep the essential packages so you don’t brick your router. Only way to unbrick is to solder a TTL to USB cable to your router board (which is a good idea anyhow).

After running the make command, firmware files can be found in the “bin/ar71xx” directory. In case of a WR841N v8 this would be “openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-sysupgrade.bin”.
IMPORTANT! Make sure the image file size does not exceed 3670020 bytes. Anything above that made the /overlay filesystem use RAM and hence any changes you make will be lost after a reboot.
If the file gets too big you might even brick you router.

First time accessing your router:
[cc lang=”bash”]
telnet 192.168.1.1
[/cc]
Use “passwd” to set a password for the root account. After that, telnet will get disabled and you can access it using SSH.

Flashing an image manually (no webinterface):
If you want to flash an image without the webinterface, you will have to do it manually.
Telnet / SSH into your device and place your the new image file in the /tmp folder (no space anywhere else).
Enter:
[cc lang=”bash”]
mtd -r -e firmware write MyImageFile.bin firmware
[/cc]

ADVICE:
As mentioned before, it is a good idea to have a TTL/ Serial connection in case you brick your router. For more details see: https://forum.openwrt.org/viewtopic.php?id=33906
It’s a good idea to check out all the links I’ve put here and study them well BEFORE you try anything.

]]>
By: lamero https://blog.ciberterminal.net/2013/06/18/openvpn-in-the-tp-link-wr841nd/comment-page-1/#comment-969 Wed, 14 Aug 2013 16:37:52 +0000 http://blog.ciberterminal.net/?p=876#comment-969 Thanks! Beatiful script!

]]>