udp2raw/doc/android_guide.md

30 lines
918 B
Markdown
Raw Permalink Normal View History

2017-08-16 11:27:50 +00:00
# How to run udp2raw on a rooted android device(arm cpu)
2017-08-16 11:26:06 +00:00
2017-08-27 11:44:47 +00:00
There is currently no GUI for udp2raw on android.Make sure you have installed Terminal to run it.Your device has to be rooted,otherwise you cant use raw socket.
2017-08-16 11:26:06 +00:00
Download udp2raw_arm from https://github.com/wangyu-/udp2raw-tunnel/releases.
2017-08-16 11:27:50 +00:00
Copy udp2raw_arm to any dir of your **internal storage** .Copying it to **SD card wont work**.
2017-08-16 11:26:06 +00:00
2017-08-16 11:27:50 +00:00
# Steps
2017-08-16 11:26:06 +00:00
1. run udp2raw_arm as usual, except you must change the -a option to -g
```
2017-08-16 13:43:05 +00:00
./udp2raw_arm -c -r 44.55.66.77:9966 -l 0.0.0.0:4000 -k1234 --cipher xor -g
2017-08-16 11:26:06 +00:00
```
2. find the generated iptables rule from udp2raw's output,add it manually by running:
```
iptables -I INPUT -s 44.55.66.77/32 -p tcp -m tcp --sport 9966 -j DROP
```
3. run udp2raw_ram without -g command
```
2017-08-16 13:43:05 +00:00
./udp2raw_arm -c -r 44.55.66.77:9966 -l 0.0.0.0:4000 -k1234 --cipher xor
2017-08-16 11:26:06 +00:00
```
2017-08-17 02:47:19 +00:00
# ScreenShot
zoom-in if not large enough
2017-08-16 11:26:06 +00:00
![](/images/android.png)