Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
e1a51b0d
Commit
e1a51b0d
authored
Nov 12, 2017
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tutorial for using transproxy mode
parent
79f40b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
.github/faq.md
.github/faq.md
+33
-0
No files found.
.github/faq.md
View file @
e1a51b0d
...
...
@@ -65,3 +65,36 @@ To scan the QR code through the integrated QR scanner.
By the way, upgrade your Android system already.
### How to use Transproxy mode?
1.
Install
[
AFWall+
](
https://github.com/ukanth/afwall
)
;
2.
Set custom script:
```
sh
IP6TABLES
=
/system/bin/ip6tables
IPTABLES
=
/system/bin/iptables
ULIMIT
=
/system/bin/ulimit
SHADOWSOCKS_UID
=
`
dumpsys package com.github.shadowsocks |
grep
userId |
cut
-d
=
-f2
- |
cut
-d
' '
-f1
-
`
PORT_DNS
=
5450
PORT_TRANSPROXY
=
8200
$ULIMIT
-n
4096
$IP6TABLES
-F
$IP6TABLES
-A
INPUT
-j
DROP
$IP6TABLES
-A
OUTPUT
-j
DROP
$IPTABLES
-t
nat
-F
OUTPUT
$IPTABLES
-t
nat
-A
OUTPUT
-o
lo
-j
RETURN
$IPTABLES
-t
nat
-A
OUTPUT
-d
127.0.0.1
-j
RETURN
$IPTABLES
-t
nat
-A
OUTPUT
-m
owner
--uid-owner
$SHADOWSOCKS_UID
-j
RETURN
$IPTABLES
-t
nat
-A
OUTPUT
-p
tcp
--dport
53
-j
DNAT
--to-destination
127.0.0.1:
$PORT_DNS
$IPTABLES
-t
nat
-A
OUTPUT
-p
udp
--dport
53
-j
DNAT
--to-destination
127.0.0.1:
$PORT_DNS
$IPTABLES
-t
nat
-A
OUTPUT
-p
tcp
-j
DNAT
--to-destination
127.0.0.1:
$PORT_TRANSPROXY
$IPTABLES
-t
nat
-A
OUTPUT
-p
udp
-j
DNAT
--to-destination
127.0.0.1:
$PORT_TRANSPROXY
```
3.
Set custom shutdown script:
```
sh
IP6TABLES
=
/system/bin/ip6tables
IPTABLES
=
/system/bin/iptables
$IPTABLES
-t
nat
-F
OUTPUT
$IP6TABLES
-F
```
4.
Make sure to allow traffic for Shadowsocks;
5.
Start Shadowsocks transproxy service and enable firewall.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment