ok guys first i give credit in this tutorial to @Cattyhouse
this tutorial will show you how to setup a socks5 proxy from your idevice
first we will need
autamatic ssh
openssh
terminal
ifile
lets start it
Sign up one from webenabled.com, its free
Then, create a site, choose wordpress. After that, go dashboard
You will see your site information, including a shell and password
The password is hidden, you have to click to show it, remember it!
remember these information
1- server: xxx.dev3.webenabled.net (replace xxx with your information from the dashboard )
2- Username w_xxx (xxx replace with your information from dashboard )
3- Password : very long an complicated ( The password is hidden, you have to click to show it also from dashboard )
they password is long and complicated so we need to make ssh key so we can log in without typing that long password
now go to mobile terminal on your device
type
$ssh-keygen
and hit ENTER to every question it asks
then go to
$cd ~/.ssh
$ls
You see two files (id_rsa, id_rsa.pub)
then type
$chmod 600 *
Then, mv id_rsa.pub authorized_keys
To change to name of .pub file
$mv id_rsa.pub authorized_keys
Now copy the authorized_keys to your server
Use scp to do that, here is the command
$scp authorized_keys w_xxx@xxx.dev3.webenabled.net:~/.ssh/
Now ssh username@server
see if you can log in without password
if you logged in without password that good everythings if fine
now with ifile
go to /etc/ssh and edit ssh_config and add this to the end of it
ServerAliveInterval 10
TCPKeepAlive no
and then save it, this step is important
then go to /etc/profile.d
we have file here called coreutils.sh
set alias there by opening it in text and add this to it
alias proxy="autossh -M 0 -Nfq -D 9090 username@server"
save the file and go to mobileterminal again (username@server you know them already change them wth yours )
now we will source /etc/profile.d/coreutils.sh
$source /etc/profile.d/coreutils.sh
ok we are almost done here but we neet to check if the proxy running in background
run in mobile terminal
$proxy
you will see nothing happens thats because the server is in background to see it run
$ps ax |grep ssh
Now you have a socks 5 proxy running at 127.0.0.1:9090
If you want to stop it, just type:
$killall -9 ssh
Then after kill, if you want to start it again, just type:
$proxy
You need to create a pac file
PAC file can be set to wifi/3G to make use of this socks5 proxy
open ifile and blank sheet
add this to it and save ( remember the directory )
function FindProxyForURL(url, host) {
var myproxy = "SOCKS 127.0.0.1:9090;DIRECT";
if (
isPlainHostName(host) ||
shExpMatch(host, "*.local") ||
isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ||
isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
{
return "DIRECT";
}
return myproxy;
}
now in terminal cd to the directory of the pac file
as root
$chown mobile:mobile xxxx (were xxxx is the name of pac file)
$chmod 777 xxxx (where xxxx is the name of the pac file)
Now go to wifi settings
Find where to set proxy , choose AUTO
enter the pac file directory
file:///var/root/xxxx (example)(you can change the directory and the file name to whatever you want )
now you are using SOCKS5 on your wifi
totally secure through ssh tunnel
to use it while you are on 3G
we need to edit the following file with iFile:
/var/preferences/SystemConfiguration/preferences.plist
<string>com.apple.CommCenter (ip1)</string>
</dict>. add the following lines under the previous lines
<key>Proxies</key>
<dict>
<key>ProxyAutoConfigEnable</key>
<integer>1</integer>
<key>ProxyAutoConfigURLString</key>
<string>file:///var/root/xxxx</string>
</dict>
save and. reboot
remember to change xxxx and the directory
ok guys i hope this is useful to you
i am sorry about my language
enjoy surfing the internet as anonymous