Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
tun2socks-Openwrt
=================
badvpn-tun2socks only
# tun2socks-Openwrt

This make file just makes badvpn-tun2socks.


## Build Images and Packages

These are the instructions to build an image
for your router including the example applications:

```
git clone git://git.lede-project.org/source.git
cd source

./scripts/feeds update -a
./scripts/feeds install -a

git clone https://github.com/yazdan/tun2socks-Openwrt
cp -rf tun2socks-Openwrt/badvpn package/
rm -rf tun2socks-Openwrt/

make defconfig
make menuconfig
```

Now select the right "Target System" and "Target Profile" for your target device.
Also select the examples you like to build:

* "Network" => "VPN" => "badvpn"

Packages are selected when there is a <*> in front of the name (hit the space bar twice).

Finally - build the image:
```
make
```

You can now flash your router using the correct image file inside ./bin/targets/. The images usually contain all build packages already.
The single *.ipk packages are located in ./bin/packages, in case you want to install them on other devices.

To install/update a package, transfer the ipk file to your target device to /tmp/ using scp.
The package can then be installed calling e.g. `opkg install badvpn_1.999.130-1_mips_24kc.ipk`.

8 changes: 4 additions & 4 deletions badvpn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=badvpn
PKG_VERSION:=1.999.117rc2
PKG_VERSION:=1.999.130
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://badvpn.googlecode.com/files/
PKG_MD5SUM:=08fd8f719bd05a1124bbdf7c4ea8529f
PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/ambrop72/badvpn/archive/
PKG_MD5SUM:=e65d8d298fc82eb9a6c12a9425a97e6d

include $(INCLUDE_DIR)/package.mk

Expand Down