.pac proxy - Galaxy S I9000 General

anyway to use a .pac proxy URL on android?

don't think you can do this,think the phone os not able to understand, why do you need to use pac files?
Sent from my GT-I9000 using XDA App

Global Pandora

I know this is old, but this is an ongoing problem and I figured out how to use a .pac proxy file! After reading about proxy's and what .pac files are, I stumbled upon a little hint and after a little tinkering I was able to use my work's wifi that uses an auto-config .pac file and my phone and tablet has full internet access with browser, apps etc including Netflix for example.
Here are the steps you need:
1) Your phone has to be rooted to take advantage of the proxy apps on the market, I personally use ProxyDroid, which is free and has a feature to bind certain proxy profiles to automatically turn on when a certain wifi network is connected.
2) Usually there is an option that gives you an http proxy pac file to manually input to your browsers or what not, so whatever the link is, put it an active internet browser to download the pac file (an example of the url with the pac file would be something like http://internet.xxxxx.com/proxy.pac)
3) Where ever you download the pac file, open it with notepad or wordpad and this will reveal all the proxy info you need in order to access the proxy enable wifi. What the ProxyDroid app needs from the PAC file is the Host url and Port number. When you open a PAC file in notepad, you'll see something like this near the top along with a bunch of other things under it:
"Cisco Remote Envelope Service
if (dstHost=="internet.e-mail") {
return "PROXY internet-x-x.xxxxxx.com:9090""
- So in "Host" under Proxy Settings in the ProxyDroid app you would input: internet-x-x.xxxx.com
- For the "Port" you would put input: 9090
4) After inputting those 2 pieces of info into the ProxyDroid app, turn the wifi on for your Android Device then enable to ProxyDroid app, you should able to connect to the proxy enabled wifi!
*Some notes for the ProxyDroid app.
- It allows for Authentication, but since my work wifi does not use that, I'm not sure how it would work
- For Proxy type, I set it as an HTTP
- I binded the specific proxy profile to my work wifi so it would ProxyDroid would automatically enable when work wifi was detected
Hope this bit of info helps other that have Android devices and were unable to use a proxy enable wifi to finally access them. Hopefully in the future, Android will make using proxy and pac files a lot easier like how it's done on the ipad where they allow you to manually set up proxy settings by having the device download the PAC file.
I've tested and this works on both a rooted AT&T HTC Inspire and a HP Touchpad running CM7 Alpha

shaunm1989 said:
anyway to use a .pac proxy URL on android?
Click to expand...
Click to collapse
Check out autoproxy on the market. It's my app and it's new. It's the only app that supports proxy.pac proxies directly. Just put the address to the file there, and click connect. It will also auto-connect when you're on the same network again (and disconnect when you're off it) so it's set and forget. It will allow you to use any apps, as long as the port is not blocked by the proxy.

Dtothesquare, that technique will work for simple proxy implementations but some organizations have a cluster of proxy servers that may serve different clients (closer to client without using anycast) or destinations. For example, a proxy server may be set up to just handle *.com while another could handle just internal hosts. It can also be used for sending clients to an alternate proxy server should the primary one be down for some reason.
Our proxy server has ACLs that only let it proxy certain URLs and returns an error if it receives something that's not allowed on that server.

Related

Messenger using port 80?

Is there such a thing?
Im using unlimited internet plan for port 80 which means i can surf over the net for html pages with no additional charge.
Now my question is if theres a messenger that uses that port so i dont must wifi or data plan to use it?
Thanks.
eran.
im not sure but you could try ebuddy, or any other html based messenger
if you have access to a vpn, ssh-server or a proxy server you can tunnel your connection through them which is supported by almost every mobile messenger client.
hi,
use open vpn, a good solution to create and use a tunnel via your pc connection, than your pc will be the server that you can connect on with your 3g+ connection.
i tried that today with success, and used msn messenger and push mail, all with my wap Sfr connection, that use the port 80.
use google for research, and send a message if you need help....i'll try even if my english is not perfect....but think i can help.
benastuce said:
hi,
use open vpn, a good solution to create and use a tunnel via your pc connection, than your pc will be the server that you can connect on with your 3g+ connection.
i tried that today with success, and used msn messenger and push mail, all with my wap Sfr connection, that use the port 80.
use google for research, and send a message if you need help....i'll try even if my english is not perfect....but think i can help.
Click to expand...
Click to collapse
The same thing happens in portugal with the Carriers! only html traffic is allowed. Good thing there is this workaround!
going to do that now..
benastuce said:
hi,
use open vpn, a good solution to create and use a tunnel via your pc connection, than your pc will be the server that you can connect on with your 3g+ connection.
i tried that today with success, and used msn messenger and push mail, all with my wap Sfr connection, that use the port 80.
use google for research, and send a message if you need help....i'll try even if my english is not perfect....but think i can help.
Click to expand...
Click to collapse
i dtried to look for howto's in order to understand how it works..
i didnt really got it.
i'd be glad if you explain it here shortly,
it will be available for the rest of the guys either
you can use a simple ssh server for tunneling, too. that's more simple than the configuration of a whole vpn.
First you have to have con trol over such a server (I use a vserver of mine), than have the server listen on not only the ssh port but also a http one(if you have a webserver too running in the ssh server host, you maybe can't useport 80, but luckily my provider has also port 8080 open, because it is often used for http proxies).
now download pocketputty from the internet.
in the session tab enter yout servers ip and choose ssh, but change the port to 8080.
now go to the tunnel tab (as there are many tabs, maybe you cant see it at first, but it's there).
now you enter a free port on your mobile in the source field (I use 50 for example), the destination is the ip of your ssh server, and check dynamic. now click add.
then change back to the session tab, give you settings a name in the field stored sessions and klick save.
now the settings are stored and you can start the connection by double klicken on the name of your session that is now listed unter (Default Settings) in the sessions list.
The ssh connection will open and you will to have to log you into the ssh server, with a user (the name is not important, and it needn't to be the super user ;-) ), that has a shell.
when you're logged in open your mobile icq client. now go to the proxy settings of it and choose socks as proxy server type, the proxy address is localhost and the port the one you chose in the source field in the ppcoektputty tunnel tab. (so putty is your local socks proxy server).
now you should be able to connect thorugh the ssh tunnel to icq.
if you use your mobile sionmetimes as modem for a laptop, the trick works very similiar with the normal putty and a non mobile windows ;-)
bcom said:
you can use a simple ssh server for tunneling, too. that's more simple than the configuration of a whole vpn.
First you have to have con trol over such a server (I use a vserver of mine), than have the server listen on not only the ssh port but also a http one(if you have a webserver too running in the ssh server host, you maybe can't useport 80, but luckily my provider has also port 8080 open, because it is often used for http proxies).
now download pocketputty from the internet.
in the session tab enter yout servers ip and choose ssh, but change the port to 8080.
now go to the tunnel tab (as there are many tabs, maybe you cant see it at first, but it's there).
now you enter a free port on your mobile in the source field (I use 50 for example), the destination is the ip of your ssh server, and check dynamic. now click add.
then change back to the session tab, give you settings a name in the field stored sessions and klick save.
now the settings are stored and you can start the connection by double klicken on the name of your session that is now listed unter (Default Settings) in the sessions list.
The ssh connection will open and you will to have to log you into the ssh server, with a user (the name is not important, and it needn't to be the super user ;-) ), that has a shell.
when you're logged in open your mobile icq client. now go to the proxy settings of it and choose socks as proxy server type, the proxy address is localhost and the port the one you chose in the source field in the ppcoektputty tunnel tab. (so putty is your local socks proxy server).
now you should be able to connect thorugh the ssh tunnel to icq.
if you use your mobile sionmetimes as modem for a laptop, the trick works very similiar with the normal putty and a non mobile windows ;-)
Click to expand...
Click to collapse
I really got lost...
I couldnt find application for ssh server which i understand how to work with..
i wouldnt mind some help...
first you need a server in the internet for that, because you need an endpoint for the ssh connection.
as i said i have a linux server under my control. if you don't have an internet server or access to one with a ssh account, which I doubt reading your post, this solution isn't maybe the best for you, because have such a server costs about 8-10 euro or dollars a month, and as I need it for other things to, this costs are ok for me.
an alternative maybe would be an vpn account by a vpn provider which costs less, but then the way to get it to work is a bit differnet.
I just thought I could set up such a server on my own computer...if possible.
I did understand i can do that, but i didnt understand how
Nevermind, I will try other solutions..
thanks
hmm, this would be possible, but your computer would have to be reachable under a fest address from the internet (which oculd be done using dyndns). Are you using windows or linux in your machine?
Usually my computer is online all the time, so it wouldnt be a problem
And using a dynamic hostname with dyndns is what I thought about at first place.
my pc is running windows
eranyanay said:
i dtried to look for howto's in order to understand how it works..
i didnt really got it.
i'd be glad if you explain it here shortly,
it will be available for the rest of the guys either
Click to expand...
Click to collapse
hi,
i made exactly this http://www.jb69.com/index.php/post/2008/01/05/Creation-dun-serveur-VPN...but its in french....hope it helps..but i can always answer if any question or translation...see you.
begin to craete a vpn server on your pc first...try to make it run using the config file...than we'll see....beleive me i didn't get any help and i'm quite a noob in network connection...but make it work...
benastuce said:
hi,
i made exactly this http://www.jb69.com/index.php/post/2008/01/05/Creation-dun-serveur-VPN...but its in french....hope it helps..but i can always answer if any question or translation...see you.
begin to craete a vpn server on your pc first...try to make it run using the config file...than we'll see....beleive me i didn't get any help and i'm quite a noob in network connection...but make it work...
Click to expand...
Click to collapse
Thank you for your help.
I used that guide and Im not sure about the last stage, when creating the client.ovpn file,
in the line 'remote' - i leave it xx.xx.xx.xx ? They didnt mention different...
And after that, How do I config the vpn connection on my mobile? I need a step by step in this stage because I dont want extra-charging....
Thanks
eranyanay said:
Thank you for your help.
I used that guide and Im not sure about the last stage, when creating the client.ovpn file,
in the line 'remote' - i leave it xx.xx.xx.xx ? They didnt mention different...
And after that, How do I config the vpn connection on my mobile? I need a step by step in this stage because I dont want extra-charging....
Thanks
Click to expand...
Click to collapse
instead of XX.xx.xx.xx you must fill your internet IP thaht you can see here http://www.ip-adress.com/, and may be you have to change port to 443 instead of 80 in config files....that works with me,dont forget port forwarding in your router if you have one, mens you have to redirect incoming connection on port 80, and 443 to the pc that have openvpn.
but first of all you have to make your server work on the pc, some times you have to kill openvpn activites making CTRL+ALT+Del, to make open vpn GUi work and the vpn connect....see for next episode.
Ok,
im kind of stuck again....
I configured the vpn program and did everything by the guide,
Now i need to add a vpn connection to my regular 3g settings?
I did that, with my IP address, and it asks for user and password
i assumed its tcp-client like in the config file,
and password one of the keys in key.txt file..
but it doesnt work.
or i didnt do it right.
eranyanay said:
Ok,
im kind of stuck again....
I configured the vpn program and did everything by the guide,
Now i need to add a vpn connection to my regular 3g settings?
I did that, with my IP address, and it asks for user and password
i assumed its tcp-client like in the config file,
and password one of the keys in key.txt file..
but it doesnt work.
or i didnt do it right.
Click to expand...
Click to collapse
So, when you launch open vpn on your PC, with the GUI (the incon of open vpn on the bureau), do you have the little yellow incon down right your pc screen and a message of connection success....you must first of all secceed to make your vpn work...after for the pocket pc its really nothing.....
PS: the client config must be in the config folder of your ppc with the key....personnally i made a copy of the key in the base folder of the device cause sometimes the key is not detected in the config folder.
and important to set your connection on "my work network" not wap in the avanced connections configuration.....but tell you make a seccessful vpn connection first and for the ppc its will be a joke...
benastuce said:
So, when you launch open vpn on your PC, with the GUI (the incon of open vpn on the bureau), do you have the little yellow incon down right your pc screen and a message of connection success....you must first of all secceed to make your vpn work...after for the pocket pc its really nothing.....
PS: the client config must be in the config folder of your ppc with the key....personnally i made a copy of the key in the base folder of the device cause sometimes the key is not detected in the config folder.
and important to set your connection on "my work network" not wap in the avanced connections configuration.....but tell you make a seccessful vpn connection first and for the ppc its will be a joke...
Click to expand...
Click to collapse
and finally don't set any vpn network on your ppc just install open vpn for ppc, i gave you the soft link...thats you need to set later....dont touch anything in your connections sittings except to set your connections on "my work network when you use vpn"....CARAY....
I'll come back for next episode....see you
benastuce said:
and finally don't set any vpn network on your ppc just install open vpn for ppc, i gave you the soft link...thats you need to set later....dont touch anything in your connections sittings except to set your connections on "my work network when you use vpn"....CARAY....
I'll come back for next episode....see you
Click to expand...
Click to collapse
Ok, i feel like it comes to an end...
the vpn server on my pc is working, the application openvpn.exe is running in the background and i do have that network enabled and running.
I found and installed open vpn for ppc,
its a bit annoying it cant run on a window and that its running on the background screen, meaning my touchflow (im using htc diamond) is hiding it, so i need to disable the touchflow when i need to configure the app.
(maybe solutions?)
now i need to copy the configuration files and the key file i have in the config folder of the computer to the ppc folder?
And what next?
Thanks
eranyanay said:
Ok, i feel like it comes to an end...
the vpn server on my pc is working, the application openvpn.exe is running in the background and i do have that network enabled and running.
I found and installed open vpn for ppc,
its a bit annoying it cant run on a window and that its running on the background screen, meaning my touchflow (im using htc diamond) is hiding it, so i need to disable the touchflow when i need to configure the app.
(maybe solutions?)
now i need to copy the configuration files and the key file i have in the config folder of the computer to the ppc folder?
And what next?
Thanks
Click to expand...
Click to collapse
So....great...now you have to copy the key.txt in the ppc config folder....with the client config.opvn(2 files), i learned somewhere yhat you have to copy the key in the main ppc directory also...i did it....see this video on this site....that can help much http://www.psykokwak.com/blog/index.php/2007/12/08/41-rendre-le-forfait-sfr-illimythics-vraiment-illimythics....give feed backs ...i'm here tonight...

Set global proxy (not only for Browser)

Hi!
I've searched nearly the entire internet to find something maching my problem, but i can't find anything.
My Problem is, that Vodafone Germany has got a limitation of usable Ports in some of their Dataplans. That means that i can only use port 80 and 443 through their Proxy server. For Browsing and webmailing this is ok, but if i want to use the market or Wikitude or ShopSavvy for example i need a Wlan to access the internet with this apps.
I logged the Wlantraffic and found out, that most apps are communicating over port 80 and 443. Their not using the Vodafone Proxy because i always get an connection error when i am trying to use it over the cellular network.
So the big main question is: How can i force the apps to use the defined Proxy Server, the browser is allready using?
I need no Username or password for it. Just adress and port.
Is there a way to reroute all traffic through this proxy? Is there an app to set a global proxy? (Not the ones out in the market to set a browser proxy, because they are really only for the browser)
It would be so nice if someone has an idea, because i am looking for weeks now to use the phone on the go with all its extras!
T-Mobile G1 with -Cupcake 1.5 orig. non rooted-
SirPhunk
PS: Previously i had a Windows Mobile 6.1 Device and everything was working fine, because all apps were using the proxy server i set in the connection settings.
I search that for a long time too!
I'm in china.I get on Internet use a wap gateway which is called cmwap that only open 80 port.
Now I set proxy from APN setting that could only makes browser to go,but all the other apps couldn't .
I tried gnu http-tunnel in Debian, but that need for a hts the http-tunnel server.
I don't know if I can use something for the Android apps.
My idea was to set a manual route to route all traffic that runs over port 80 and 443 to the vodafone Proxy, but to do that i have to root my phone, and i don't want to do that because i wouldn't loose my warranty.
Maybe there are possibilities in Android 1.5 that came out.
It would be fine if some "Pros" could make an answer.
Necroposting much?
if you just want to bypass the limitation of http proxy,then it's possibile using openvpn over http proxy
openvpn in tcp mode allow client to connect to server through an http proxy.just setup an openvpn server use tcp mode,and install openvpn on your android phone and configure it to use the proxy provided by your isp, that's all.

Proxy auto-config PAC file?

Hi guys, I'm one of the many people having problems connecting to the internet over wifi with a proxy. I just can't get it to work. I am using my university wifi network, and I can connect to the network fine, access the login pages, and browse the university intranet fine, but cannot connect to any outside pages.
The uni provides a PAC file (and strongly recommends it's use) but there doesn't seem to be any way to use this in 6.1. Does anyone know of an app or anything that can configure proxy using a PAC file?
(I have tried connections-connection-advanved-select networks-new and entering the proxy manually but just doesn't work.)
Cheers.
Same problem here...
Not sure about the PAC file but you can use TransProxy or AutoProxy to configure the proxies in your phone. Open the PAC file using a Notepad and it should show you the Port and IP address of your Proxy Server. Use that information while configuring the proxy software.
I know this is old, but this is an ongoing problem and I figured out how to use a .pac proxy file! After reading about proxy's and what .pac files are, I stumbled upon a little hint and after a little tinkering I was able to use my work's wifi that uses an auto-config .pac file and my phone and tablet has full internet access with browser, apps etc including Netflix for example.
Here are the steps you need:
1) Your phone has to be rooted to take advantage of the proxy apps on the market, I personally use ProxyDroid, which is free and has a feature to bind certain proxy profiles to automatically turn on when a certain wifi network is connected.
2) Usually there is an option that gives you an http proxy pac file to manually input to your browsers or what not, so whatever the link is, put it an active internet browser to download the pac file (an example of the url with the pac file would be something like http://internet.xxxxx.com/proxy.pac)
3) Where ever you download the pac file, open it with notepad or wordpad and this will reveal all the proxy info you need in order to access the proxy enable wifi. What the ProxyDroid app needs from the PAC file is the Host url and Port number. When you open a PAC file in notepad, you'll see something like this near the top along with a bunch of other things under it:
"Cisco Remote Envelope Service
if (dstHost=="internet.e-mail") {
return "PROXY internet-x-x.xxxxxx.com:9090""
- So in "Host" under Proxy Settings in the ProxyDroid app you would input: internet-x-x.xxxx.com
- For the "Port" you would put input: 9090
4) After inputting those 2 pieces of info into the ProxyDroid app, turn the wifi on for your Android Device then enable to ProxyDroid app, you should able to connect to the proxy enabled wifi!
*Some notes for the ProxyDroid app.
- It allows for Authentication, but since my work wifi does not use that, I'm not sure how it would work
- For Proxy type, I set it as an HTTP
- I binded the specific proxy profile to my work wifi so it would ProxyDroid would automatically enable when work wifi was detected
Hope this bit of info helps other that have Android devices and were unable to use a proxy enable wifi to finally access them. Hopefully in the future, Android will make using proxy and pac files a lot easier like how it's done on the ipad where they allow you to manually set up proxy settings by having the device download the PAC file.
This works on both a rooted AT&T HTC Inspire and a HP Touchpad running CM7 Alpha
If anyone is reading this, there is an easier way. Check out Autoproxy on the market. You can add a new proxy, put in the address to the proxy.pac file, and it will connect to the correct proxy everytime.
That's also useful if you're on a network where they keep changing the proxy (like the place I work). It auto-connects to the proxy when you're on that network, so it's set and forget.
Thank you, dtothesquare. I finally managed to connect my Galaxy S to my university's wi-fi, something that I couldn't do for over a year. The university doesn't officially support Android. I must have done dozens of Google searches to find this. Your advice really works, I'm so happy!

wifi network questions on HTC HD2

Hi,
Using a HTC HD2 I am trying to access my home network via WIFI (WPA2/PSK - AES). Some of it works, some of it doesn't and I was hoping some of you would be able to point me in the right direction:
I can connect to intranet pages (for instance utorrent web interface) via IP, but not via hostname.
I cannot connect to network (smb) shares at all, either via IP or hostname.
A program which requires the hostname to work (since I use it over Hamachi VPN as well as locally and don’t want to change the IP based on how I use it) does work over Hamachi and not over WIFI.
I'm quite confused
Any help would be greatly appreciated!
Cheers,
Elco
Sounds like your DNS isn't working. Do you have custom DNS servers configured in the "Name Servers" tab of network card config?
Yhanks for responding!
It should get it from DHCP (though I have tried assigning a static IP and dns, but this gave the same result)
Also, I have another older win mobile device, and with the same setttings it does allow me to access the network shares (by IP and hostname)
I've combed all settings regarding wifi and network, but since they are the same I am guessing it is probably a different at the registry level?
The HTC HD2 does have 2 broadcom wifi adapters mentioned though, a normal one and one with a DHD postfix.
Cheers,
Elco
@Talisman_: same problem here. have you solved it?
Exactly same problem on xperia x2. I just set on manual temporary.
Are you using Hamachi on your phone?
Did you have this problem prior to installing Hamachi?
The reason being is Hamachi installs a network interface which exists whether or not Hamachi is running
You may want to check your Data Connection settings and see if it has applied the "requires a proxy" setting
What are you using as your DNS server though, that is the question.
If it's your broadband router, then chances are it won't be able to serve DNS requests for internal devices (ie computers on your home network).
If that's the case, you'll need a proper DNS server (get an old PC and install Linux) and create a local domain such as home.local, or if you've got a registered domain, you can even set it up the same (domain.com for instance) just tell the DNS server it's the domain master.
It's been yonks since I played around with Linux so I can't tell you how, much easier with Windows Server
Some people advise against using the same public domain name as an internal domain name, but it just means you add A records for any public addressess such as WWW.domain.com or mail.domain.com if it's accessable outside your network as well as inside.
Alternatively, if you're only going to be accessing them via the home network then you could try adding a few hosts to your registry (use the windows calc or similar to convert each IP address number to Hex)
http://windowsmobilepro.blogspot.com/2006/04/etchosts-file-equivalent-in-windows.html
As always, you modify the registry at your own risk.

Setting up Global SSH Tunnel on Android

For anyone interested in data security the ability to encrypt network traffic is obviously important-- especially in light of the myriad of recent well publicized reports of private and government electronic snooping. It is also relevant to mention that to date no one has come close to cracking "TwoFish" encryption which can be used by SSH. With this in mind, consider the following tutorial which describes a method for encrypting all 3g, 4g, and Wi-Fi data, thus beefing up phone and personal data security.
Setting up a global SSH Tunnel on Android phones
This tutorial assumes the reader possesses a fully configured SSH server and rooted phone. In lieu of a server, (eg., the reader only has only a Windows-based operating system), research into CYGWIN is recommended. I use CYGWIN to run my SSH server and I have found that it is the most robust option for Windows users; however, setting this up on Windows can be a daunting task.
Setting up global SSH Tunnel on Android
1. Download 2 apps from the Google Playstore: ConnectBot and ProxyDroid
2. Install ConnectBot and ProxyDroid on your phone.
3. In ConnectBot set up Port forwards for your SSH connection. For "Type" field use "Dynamic (SOCKS)." For “Source Port” use 56001 or any local port not being used. The reasoning behind using port 56001 is this: System Ports (0-1023), User Ports (1024-49151), and the Dynamic and/or Private Ports (49152-65535)
4. Open ProxyDroid and configure as follows:
Host: 127.0.0.1
Port: 56001 (or the port you chose to use in step 3)
Proxy Type: SOCKS5
Global Proxy: Check the box
The above procedure accomplishes several things. First, ConnectBot remotely connects to your SSH server. Next, the ConnectBot connection forwards to the local port 56001. ProxyDroid then redirects all network traffic through the localhost on port 56001. Once you are connected through ConnectBot and ProxyDroid is activated all of your data will be tunneled through the encrypted ConnectBot session. This is an excellent way to set up a global proxy because it does not require manual configuration of any applications to connect through the proxy. You can test the functionality of the connection by opening up your phone browser and performing the Google search: What is my IP. If the proxy is functional you will see the WAN IP of the network of your SSH server. Additional and more thorough testing can be done with packet sniffers such as WireShark.
An application called "SSH Tunnel" is an alternative to accomplishing the above. However, I find ConnectBot and ProxyDroid is more elegant and gives better control-- not to mention being more sophisticated/chic. When correctly performed the ConnectBot and ProxyDroid method encrypts all 3g, 4g and Wi-Fi data on your phone. This is obviously useful for phone access of sensitive materials especially using unfamiliar or alien network connections. With the current proliferation of identity theft via electronic snooping on mobile devices I do not advocate using cellular phones for any banking or electronic transactions without setting up a robust and reliable encrypted connection.
I'm having trouble with this exact setup on Android 4.3 with DNS Proxy (proxydroid) enabled in China. When DNS Proxy is enabled, no traffic will come through at all. If I disable DNS Proxy, it works but without proxied DNS requests, I can't get to Youtube/twitter/FB.
Any ideas?
SSHTunnel for 4.2.2 is a much better alternative than running 2 separate apps and I still use it on my 4.2.2 tablet. But I don't want to downgrade my phone to 4.2.2 just for this
Android 4.3?
strifej said:
I'm having trouble with this exact setup on Android 4.3 with DNS Proxy (proxydroid) enabled in China. When DNS Proxy is enabled, no traffic will come through at all. If I disable DNS Proxy, it works but without proxied DNS requests, I can't get to Youtube/twitter/FB.
Any ideas?
SSHTunnel for 4.2.2 is a much better alternative than running 2 separate apps and I still use it on my 4.2.2 tablet. But I don't want to downgrade my phone to 4.2.2 just for this
Click to expand...
Click to collapse
Unfortunately, I have not done any testing with android 4.3 yet so I'm not sure why the dns request wouldn't be proxied. I'll look into it and get back to you.
DNS proxy on android 4.3
strifej said:
I'm having trouble with this exact setup on Android 4.3 with DNS Proxy (proxydroid) enabled in China. When DNS Proxy is enabled, no traffic will come through at all. If I disable DNS Proxy, it works but without proxied DNS requests, I can't get to Youtube/twitter/FB.
Any ideas?
SSHTunnel for 4.2.2 is a much better alternative than running 2 separate apps and I still use it on my 4.2.2 tablet. But I don't want to downgrade my phone to 4.2.2 just for this
Click to expand...
Click to collapse
So I finally had a chance to upgrade to 4.3 this week. I tested the dns proxy with proxydroid and it seems to be working fine. What rom are you using? I'm on Sacs rom and I would highly recommend it. Heres the link:
http://forum.xda-developers.com/showthread.php?t=2512983
4.4
Dr.Tautology said:
So I finally had a chance to upgrade to 4.3 this week. I tested the dns proxy with proxydroid and it seems to be working fine. What rom are you using? I'm on Sacs rom and I would highly recommend it. Heres the link:
http://forum.xda-developers.com/showthread.php?t=2512983
Click to expand...
Click to collapse
Tested on kitkat and is working fine. Ssh tunnel app not working however.
Dr.Tautology said:
So I finally had a chance to upgrade to 4.3 this week. I tested the dns proxy with proxydroid and it seems to be working fine. What rom are you using? I'm on Sacs rom and I would highly recommend it. Heres the link:
http://forum.xda-developers.com/showthread.php?t=2512983
Click to expand...
Click to collapse
I use pacman rom on nexus 4.
thank you for this tutorial!
I have been looking for a new way to setup SSH tunneling since the app "ssh tunnel" from the Google Play store stopped working with Android 4.2+
I can't wait to try this out..
I have two phones both SGS4's one running CM 10.2 and the other stock on 4.3 so i will try both of them out and report back here how it works out.
Thanks again for the tutorial!
-droidshadow
Thank you Dr.Tautology
Thank you Dr.Tautology
I was searching a big time for the solution you gave me.
First I was using SSHtunnel app from google play and it worked on my note 3 SM-N9005 (rooted) with jb 4.3. After upgrade to 4.4.2 kitkat (rooted) I could connect but there was no changing to my home ip in the browsers that I use with surfing by example to whatmyip . I also have a tablet "nexus 7" 2012 version upgraded also to 4.4.2 and on this device SSHTunnel is functional and the ip is changing??? I did not understand. Now I was searching for alternatives for my galaxy note 3 and I've found ssh connectbot and proxydroid. After I added the settings that I always used with dyn socks5 port 11723 on both programs.... -> connection to my DD-WRT router (with connectbot) was also possible. I also booted proxydroid and again after running chrome or firefox I still had the same ip so it didn't work.... Now I've found your post and read that the socks5 port must be above 49152. I changed the ports on both programs to 56001 in ('connectbot and proxydroid) and BAM! Connected with my home IP from outside my home :laugh:
The weird thing is that it worked on JB 4.3 with socks5 port 11723.
Now my woking SSH tunnel config -> Host = home-ip:7500 (default port = 22 in DDWRT)
user to connect to DD-WRT router = Root
password = Router password
dyn proxy socks5 port = 56001 as you suggest.
I have an app from my isp that I only can use with my home ip so I had to be home and connect by wifi. Now it's possible again with tunneling
Now the only thing that I have to do is thank you. :victory:
Never thought that the port number should be the problem.
Best regards DWroadrunner
I managed to set this up using SSH Tunnel for android. However I would like to use SSH Autotunnel as it's supposed to handle network changes better and is also more light weight. Does anybody know what type of private key this programm accepts? I have had no luck using putty keygen and the id_rsa I created in ubuntu does not seem to work either.
Glad to help!
DWroadrunner said:
Thank you Dr.Tautology
I was searching a big time for the solution you gave me.
First I was using SSHtunnel app from google play and it worked on my note 3 SM-N9005 (rooted) with jb 4.3. After upgrade to 4.4.2 kitkat (rooted) I could connect but there was no changing to my home ip in the browsers that I use with surfing by example to whatmyip . I also have a tablet "nexus 7" 2012 version upgraded also to 4.4.2 and on this device SSHTunnel is functional and the ip is changing??? I did not understand. Now I was searching for alternatives for my galaxy note 3 and I've found ssh connectbot and proxydroid. After I added the settings that I always used with dyn socks5 port 11723 on both programs.... -> connection to my DD-WRT router (with connectbot) was also possible. I also booted proxydroid and again after running chrome or firefox I still had the same ip so it didn't work.... Now I've found your post and read that the socks5 port must be above 49152. I changed the ports on both programs to 56001 in ('connectbot and proxydroid) and BAM! Connected with my home IP from outside my home :laugh:
The weird thing is that it worked on JB 4.3 with socks5 port 11723.
Now my woking SSH tunnel config -> Host = home-ip:7500 (default port = 22 in DDWRT)
user to connect to DD-WRT router = Root
password = Router password
dyn proxy socks5 port = 56001 as you suggest.
I have an app from my isp that I only can use with my home ip so I had to be home and connect by wifi. Now it's possible again with tunneling
Now the only thing that I have to do is thank you. :victory:
Never thought that the port number should be the problem.
Best regards DWroadrunner
Click to expand...
Click to collapse
Hey DWroadrunner,
That's great news! I'm very happy that my post helped you, as my intention was to provide all the necessary information to do this in one place. It's not always the case that a user port wont work, but unless you are big on port level security it's not easy to determine if/when the port is being used. This is probably why 11723 did work for you, however it's always better to go with a dynamic/private port range. Also, if you want a simple way to improve the security of your ssh server change the default port from 22 to something else. You'd be surprised how many attempts to connect will be made by attackers on a daily basis.
Regards,
DocTaut
droidshadow said:
I have been looking for a new way to setup SSH tunneling since the app "ssh tunnel" from the Google Play store stopped working with Android 4.2+
I can't wait to try this out..
I have two phones both SGS4's one running CM 10.2 and the other stock on 4.3 so i will try both of them out and report back here how it works out.
Thanks again for the tutorial!
-droidshadow
Click to expand...
Click to collapse
Let me know if this is working on CM. I have tested on stock 4.3 with no issues.
Any luck yet?
rintinfinn said:
I managed to set this up using SSH Tunnel for android. However I would like to use SSH Autotunnel as it's supposed to handle network changes better and is also more light weight. Does anybody know what type of private key this programm accepts? I have had no luck using putty keygen and the id_rsa I created in ubuntu does not seem to work either.
Click to expand...
Click to collapse
Hello,
I've used auto tunnel a handful of times. Just wanted to check to see if you figured out what key it accepts. I will test it out when I get a chance.
Dr.Tautology said:
Hello,
I've used auto tunnel a handful of times. Just wanted to check to see if you figured out what key it accepts. I will test it out when I get a chance.
Click to expand...
Click to collapse
Hi, the developer send me a mail saying that autotunnel should accept both private key types. None of them worked for me, though. He also suggested to try and paste the content of the private key into the bracket. I might give that a try. Edit: I can confirm copying and pasting the private key works. But it does not seem to transfer traffic via the the server, at least not the 3g traffic while using chrome. Edit 2: Turns out SSH Autotunnel does not use a socks proxy. Therefore secure browsing is not an option. The app is for secure pop3/ftp-server/smtp-server connections only. Thanks go to Matej for his kind support.
I've been using OpenVPN but I'd prefer to use ssh, as I have several ssh servers around the world, plus their pipes are bigger than my home line I have openvpn running on.
I have yet to get SSH Tunnel (apk) to work reliably; it randomly stops working and it's just a dead connection.
Using ProxyDroid unfortunately requires me to launch ConnectBot, connect ssh, then start the proxy. It'd be nice if ConnectBot could bring up the connection automatically, or ProxyDroid could do it. What I do right now is VPN unknown wifi connections and I can automate that with Tasker. I might look to see if I can automate connecting with ConnectBot then enable the ProxyDroid connection.
You can use ssh tunnels also with Drony if some proxy with authentication is involved. Works also on non rooted devices.
Automation
khaytsus said:
I've been using OpenVPN but I'd prefer to use ssh, as I have several ssh servers around the world, plus their pipes are bigger than my home line I have openvpn running on.
I have yet to get SSH Tunnel (apk) to work reliably; it randomly stops working and it's just a dead connection.
Using ProxyDroid unfortunately requires me to launch ConnectBot, connect ssh, then start the proxy. It'd be nice if ConnectBot could bring up the connection automatically, or ProxyDroid could do it. What I do right now is VPN unknown wifi connections and I can automate that with Tasker. I might look to see if I can automate connecting with ConnectBot then enable the ProxyDroid connection.
Click to expand...
Click to collapse
I think a simple bash script could be used to automate this task. I'm going to look into it; seems like an interesting/useful project.
Dr.Tautology said:
I think a simple bash script could be used to automate this task. I'm going to look into it; seems like an interesting/useful project.
Click to expand...
Click to collapse
I think so, it's just firewall settings etc.. Unfortunately for me, I need stuff that doesn't support SOCKS so I've gone back to looking into a faster OpenVPN service.
But this is good for browsing and things that use http etc.
Dr.Tautology said:
I think a simple bash script could be used to automate this task. I'm going to look into it; seems like an interesting/useful project.
Click to expand...
Click to collapse
hi have you figured out an automated script for this task via tasker, iv tried to create something but ended up no where lol.
Hi my collage wifi connection is proxy based
Whenever i surfed internet on that connection only some basic application are connected through that connection
But many 3rd party apps doses't connect by that connection like games
Any solution like connection tunnel apps or else
I don't want to root my device
Thanks
sam.jaat said:
Hi my collage wifi connection is proxy based
Whenever i surfed internet on that connection only some basic application are connected through that connection
But many 3rd party apps doses't connect by that connection like games
Any solution like connection tunnel apps or else
I don't want to root my device
Thanks
Click to expand...
Click to collapse
Do you have to login to the proxy or is it an open proxy? If it's open, you could see if you can find a OpenVPN server that listens on 80 or 443. Then use any OpenVPN client on Android and you can add/update config to match the directions here: https://openvpn.net/index.php/open-source/documentation/howto.html#http

Categories

Resources