The Following 5 Users Say Thank You to gexc For This Useful Post: | ||
|
2014-02-16
, 14:07
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#2
|
![]() |
2014-04-07
, 14:50
|
Posts: 64 |
Thanked: 36 times |
Joined on Feb 2012
@ US
|
#3
|
![]() |
2014-05-18
, 15:38
|
Posts: 1 |
Thanked: 0 times |
Joined on May 2014
@ 拆呐国
|
#5
|
|
2014-05-18
, 16:13
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#6
|
![]() |
2014-05-19
, 02:16
|
Posts: 64 |
Thanked: 36 times |
Joined on Feb 2012
@ US
|
#7
|
unfortunately the solution that works (tordns with iptables) gives another issue in my experience - it seems Store doesnt like it, I assume its due to tordns not having dns records for Jolla repositories.
So, the proxy/iptables or just having the browser using tor (like my package) seems to be the compromise ATM.
![]() |
2014-07-03
, 14:47
|
Posts: 63 |
Thanked: 37 times |
Joined on Jul 2010
|
#8
|
![]() |
2014-07-03
, 15:32
|
Posts: 64 |
Thanked: 36 times |
Joined on Feb 2012
@ US
|
#9
|
So I installed nieldk's Tor package from the warhouse store.
According to the package notes it'll setup a proxy for the webbrowser.
Is it possible to make the phone completely transparant by using tordns and iptables? With the ability to switch between 3G and Wifi?
|
2014-07-03
, 15:36
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#10
|
The Following User Says Thank You to For This Useful Post: | ||
pdnsd
pdnsd is needed for dealing with dns poisoning
sample config file for pdnsd (/etc/pdnsd.conf):
shadowsocks is a lightweight and secure socks5 proxy. It can replace the ssh tunnel. Also shadowsocks-libev has ss-redir which works as a transparent proxy, so redsocks is not needed.
sample config file for shadowsocks (/home/nemo/.shadowsocks/ss-config.json)
iptables needs to be set up to redirect the network traffic to our socks proxy. CAUTION: MESSING UP WITH IPTABLES MAY JAM YOUR NETWORK
a dirty script for iptables config (iptables-ss.sh)
iptables-ss.sh start will (re-)start pdnsd and set up iptables rules
iptables-ss.sh stop will do the reverse
iptables-ss.sh stop-ss will kill the shadowsocks process (not really needed)
redsocks
If ssh tunnel is preferred then redsocks is used for creating the transparent proxy.
sample config file (/home/nemo/.redsocks/redsocks.conf)
a dirtier iptables script for redsocks
redsocks.sh start : start redsocks, pdnsd and set up iptables rules
redsocks.sh stop : undo everything
Proxychains
proxychains is a hook preloader that allows to redirect TCP traffic of existing dynamically linked programs through one or more SOCKS or HTTP proxies.
It can be used to launch a single app whose traffic will go through a chains of proxies defined in /etc/proxychains.conf (default is 127.0.0.1:9050 for tor). Domain names are resolved in the proxy side.
Usage example:
issues
No gui (yet)
The network gets jammed after switching from wifi to 3g or vice versa. The iptables scripts need to be restarted after every network switching. Not sure about the cause, maybe the rules are messed up after all...
Last edited by gexc; 2014-08-31 at 17:02.