[Q] Putty on Windows RT and SSH port forwarding - General Questions and Answers

I am wondering if the version of putty published by Netham45:
http://forum.xda-developers.com/showthread.php?t=2092348&highlight=putty
Has the port forwarding capability enabled
I tried doing the following:
Jailbreaked my tablet
Ran Putty
configured port forwarding: added port 3128 to forward to webproxy.myemployer.org (it's just an example), following the instructions here
Used putty confugured as indicated to connect to the remote server
Configured proxy options in Internet Explorer to localhost and port 3128
Followed the instructions here (do not use the square brackets in the key names, or the batch will fail) to create a batch file that copies the proxy settings from internet explorer and activates it system-wide
Ran the batch as admin
Verified through regedit that the settings have been copied and ProxyEnable was = 1
Tried to connect to my intranet using the desktop and metro versions of Internet Explorer 10
However, the connection was unsuccessful
I use ConnectBot in Android to do the port forwarding and it works without any issue
So, I was thinking that:
Maybe Putty RT was compiled without port forwarding support (which would make it almost useless given that the SSH in the store can do most of what Putty can)
I have made a mistake along the way
Since I am a new user I cannot ask in the Putty thread. Of course, this is not a general putty question. It is very specific to Windows RT and the only place to ask is at xda-developers.com
Thanks

someniceguy said:
I am wondering if the version of putty published by Netham45:
http://forum.xda-developers.com/showthread.php?t=2092348&highlight=putty
Has the port forwarding capability enabled
Click to expand...
Click to collapse
The port forwarding seems to work for me. I tested it by setting up a tunnel to another SSH server, and then opening another instance of PuTTY connecting to the first tunnel, which came out on the host I expected it to. I did explicitly configure it by IP address since I've never bothered testing whether the hostname for the endpoint of a local tunnel is resolved by the local system or the remote system (which might have different results based on the nameservers on either end).

Putty Tunneling Works, Windows Proxy settings don't
I tested that the tunneling is working :
First, I configured Putty with port forwarding as described above (port 3128)
Then I opened an SSH connection with Putty to the remote service
Configured the Desktop version of IE 10 to use as proxy localhost, and as port 3128
Accessed the Intranet with Desktop IE 10
The issue is really that I do not know how to force the Metro Apps to use the proxy. I tried following the suggestions
at the URL below, but it didn't work.
ht tp://fo rums.wpcentral.com/surface-windows-rt/203989-proxy-use-surface-rt.html
To test, open cmd.exe as Administrator, then type the following:
Code:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d "1" /f
Then
Code:
netsh winhttp import proxy source=ie
Then tried to access the Intranet with the Metro IE 10, but I could not.
I even tried configuring the proxy directly, without IE:
Code:
netsh winhttp set proxy localhost:3128
But it does not work either (not even for IE 10 Desktop, with proxy turned off in Internet Options)
I also followed Method 2 in the page below, and use as Domain Proxy: localhost:3128. Still cannot access the Intranet in IE10 (both Metro and Desktop)
ht tp://ww w.c-sharpcorner.com/UploadFile/7e39ca/how-to-configure-proxy-for-metro-apps-in-windows-8
Any clue on how to force Metro Apps to use putty as proxy?

It might be a problem with the Metro environment not allowing connections back to localhost for whatever reason... that's the only thing I can think of.
I just tried again, with putty configured to run a SOCKS proxy on localhost:1234.
Added the proxy to the IE settings
netsh winhttp...: got the message that a global SOCKS proxy had been configured:
Current WinHTTP proxy settings:
Proxy Server(s) : socks=localhost:1234
Bypass List : none
Loaded stuff in desktop IE10 - worked without issues.
Went to Metro - opened a few things. Mail didn't seem out of the ordinary, but then again, I don't get mail all that frequently. Weather looked about right. IE in Metro refused to open Google or Facebook.
Closed IE completely. Tried again: no dice. Neither site opened, even though I just had Google open in Desktop IE10.
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer is DWORD:1, as set by the IE "Internet Settings" panel...
It looks like it's ignoring connections to the local PuTTY instance - setting the proxy settings, going to Metro IE, and reloading is getting me SYN_SENT as the state in "netstat /n"... looks like the Windows Firewall configuration.
Sounds like the next place to look is the Windows Firewall configuration, which on RT looks to only be available through WF.msc.
Chris
someniceguy said:
I tested that the tunneling is working :
First, I configured Putty with port forwarding as described above (port 3128)
Then I opened an SSH connection with Putty to the remote service
Configured the Desktop version of IE 10 to use as proxy localhost, and as port 3128
Accessed the Intranet with Desktop IE 10
The issue is really that I do not know how to force the Metro Apps to use the proxy. I tried following the suggestions
at the URL below, but it didn't work.
ht tp://fo rums.wpcentral.com/surface-windows-rt/203989-proxy-use-surface-rt.html
To test, open cmd.exe as Administrator, then type the following:
Code:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d "1" /f
Then
Code:
netsh winhttp import proxy source=ie
Then tried to access the Intranet with the Metro IE 10, but I could not.
I even tried configuring the proxy directly, without IE:
Code:
netsh winhttp set proxy localhost:3128
But it does not work either (not even for IE 10 Desktop, with proxy turned off in Internet Options)
I also followed Method 2 in the page below, and use as Domain Proxy: localhost:3128. Still cannot access the Intranet in IE10 (both Metro and Desktop)
ht tp://ww w.c-sharpcorner.com/UploadFile/7e39ca/how-to-configure-proxy-for-metro-apps-in-windows-8
Any clue on how to force Metro Apps to use putty as proxy?
Click to expand...
Click to collapse

I was able to make Metro Internet Explorer (IE) 10 to work as follows:
Jailbroke my tablet
Ran Putty
Configured port forwarding: added port 3128 to forward to webproxy.myemployer.org (it's just an example), following the instructions here
Used putty configured as indicated in the previous step to connect to the remote server
Configured proxy options in Desktop IE 10:
Address: localhost
Port: 3128
Checked "Use a proxy server for your LAN ..."
Added Metro IE10 an an app exempted of IP loopback restrictions and allowed access to loopback addresses (so that it can connect to localhost):
Code:
CheckNetIsolation.exe loopbackexempt -a -p=S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1277922394
Before exempting Metro IE 10, I also changed the Network Isolation options as follows:
Run “gpedit.msc”
Under Computer Configuration browse the Administrative Templates -> Network -> Network Isolation.
Enable the Proxy definitions are authoritative and Internet proxy servers for apps. I put as proxyort "localhost:3128" (without the quotes)
However, I doubt that made any difference. Unless IE10 Desktop is configured to use the proxy (putty in this case) and Metro IE10 is exempted from loopback restrictions, the latter will not connect to our intranet.

Related

WM5 Terminal Services Client

I am using the O2 Atom and would like to use the built in TS client to connect to some servers. Unfortunately, for security reasons, the TS port numbers are non standard.
How do I change the default TSC port numbers?
The servers use FIPS but I can lower this requirement if the WM5 client can't handle it.
Finally, currently Terminal services is allowed only through a VPN can I use VPN with the built-in client?
I've configured VPN for POP3 but don't seem to be able to get it to work with the TS client.
default port is 3389, if for example you connect to 192.168.1.1, in terminal server client you just add the ip address 192.168.1.1 and click connect, if the default port has changed to for example 7878, you would now type in the server address 192.168.1.1:7878
hth
Thanks for the reply ... but I think it doesn't work like XP or any of the other Desktop Terminal Services Client.
If I type 10.1.1.1:1234 for example to connect to port 1234 on Terminal server 10.1.1.1 I will get a server not found error .... seems the Built-in Terminal services client doesn't understand the "ort" syntax.
This is infact the syntax I have been using from my XP but Can't use ip on the Atom.
Anyone done this before ?
Thanks for the reply ... but I think it doesn't work like XP or any of the other Desktop Terminal Services Client.
If I type 10.1.1.1:1234 for example to connect to port 1234 on Terminal server 10.1.1.1 I will get a server not found error .... seems the Built-in Terminal services client doesn't understand the "ort" syntax.
This is infact the syntax I have been using from my XP but Can't use ip on the Atom.
Anyone done this before ?

ProxyCap - does wm6.5 have a concept of localhost?!?!

Hey guys,
Proxycap is a "socksify" program that works on windows mobile.
Im using htc hd2 on wm6.5
I need proxycap to 'socksify' a mobile browser.
Ive successfully done this on windows XP:
I run putty, dynamically forward port 1080 from a ssh server to my localhost. Then I used proxycap to "socksify" opera.
Proxy servers
type: socks v4
hosts: localhost or 127.0.0.1
port: 1080
Tunneling Rules:
type: tunnel through proxy
proxy: localhost:1080
Program: opera.exe
I hit "OK"
Then I run my putty, log into my ssh server, I run opera. Proxycap socksifies opera, so that opera goes through my ssh server. This all works in windows xp.
Windows mobile 6.5
I want to apply the above to my windows mobile 6.5 device using pocket putty, proxycap and any browser.
Pocketputty seems to be working. I tell it to dynamically forward port 1080 just like in putty. I can log into my ssh server on it. This all works.
Proxycap settings:
Proxy servers:
type: socks v4
HOST!?!?!?!: I dont think wm6.5 has a concept of localhost or 127.0.01, I read this somewhere, Ive tried putting my device ID name in this field but that may or may not work
Tunneling rules
Name: internet explorer mobile
Type: tunnel through proxy
proxy: "deviceID name":1080
PROGRAM?!?!?!: iexplorer.exe is the executable file for windows xp for internet explorer. But does wm6.5 execute files differently? Does internet explorer mobile have an executable? whats it called? How do I search for executable files for other browsers that ive installed on my htc hd2
Thats where im stuck. Pocket putty seems to work but im not sure about the proxycap settings.
When I try the above on my htc hd2 on wm6.5
I set pocket putty to dynamically forward port 1080.
I run pocket putty, I log into my ssh server. I run proxycap, I tell it to 'socksify' skyfire.
I run skyfire.
Pocketputty gives me this error:
"Putty Fatal error
WSAEventSelect():
SOCKET_ERROR"
ok not getting this error anymore
but the connection is timing out
I log into the ssh server with pocket putty, i tell it to dynamically port forward port 1080 back to my device. Then I run proxycaps, and tell it to 'sockify' my mobile internet explorer.
Then I run internet explorer it says it couldnt find a server
When i click 'last error' in proxycaps
"Connection timed out (10060)"
Any ideas?
bump !

astro SMB module

Hello guys,
Do you think you could help: I was trying to use astro SMB module - but no luck. What I did:
1. open ASTRO -> Network -> New -> Windows server
2. I entered following:
: Label: Transfer
: Server: 192.168.1.12 (also tried "windows name")
: Share: transfer
When I click "TEST" I get the message: "Server not found".
Details button opens message: "jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password
Server is Windows XP proff - and other PC's are connecting to the "share" without username/passwords (use simple file sharing).
I am trying to connect using my network's WiFi.
Any advice would be appreciated.
Thank you
I have not figured how to use this module in a Windows environment either. One thing I noticed comparing it to the OP is that I do not have a ASTRO -> Network -> New -> Windows server option. Instead of Windows server I only see SFTP, SMB and Bluetooth options.
Is anyone using Astro to browse Windows shares?... If so, can you outline the steps you took to get it to work? Maybe this requires a Samba client in the Windows host? I'm using the latest version available in the Market using a Samsung Captivate.
tamanaco said:
I have not figured how to use this module in a Windows environment either. One thing I noticed comparing it to the OP is that I do not have a ASTRO -> Network -> New -> Windows server option. Instead of Windows server I only see SFTP, SMB and Bluetooth options.
Is anyone using Astro to browse Windows shares?... If so, can you outline the steps you took to get it to work? Maybe this requires a Samba client in the Windows host? I'm using the latest version available in the Market using a Samsung Captivate.
Click to expand...
Click to collapse
Hi,
i've like you sftp and smb but it gives to me the same error than tazbo.
Can you tell me what is the right configuration?
SMB, you must enter the username and password of the account with which you log into the Windows machine. The IP address goes in the Server field. No need for a Domain unless you are on a corporate net with domain controller.
It works just perfectly for me, but the machines I connect to require that I log in (Windows login).
I've used this to connect to my Ubuntu file server in my house. While I didn't have to enter a username on the windows boxes that connect to the server, I did have to use "guest" as a username with an empty password field.
Good Luck!
ByteWrencher
DIAM500 Froyo 2.2 XDANDROID.19.8.10
ByteWrencher said:
I've used this to connect to my Ubuntu file server in my house. While I didn't have to enter a username on the windows boxes that connect to the server, I did have to use "guest" as a username with an empty password field.
Good Luck!
ByteWrencher
DIAM500 Froyo 2.2 XDANDROID.19.8.10
Click to expand...
Click to collapse
Thanks buddy.. i wasn't able to connect to the network earlier. But using 'Guest' as username with empty password field, worked!!
Glad to be of service!
ByteWrencher
DIAM500 Froyo 2.2 XDANDROID.19.8.10
Just wanted to throw a Thanks out there also.
I've been knocking my head against the wall trying to figure out this SMB thing and with the suggestion of using Guest I was finally able to connect to ALL of my shares from my phone.
So again, thanks
Please give a link of the module, i cant find it in the market
try hete http
proximo.homeip.net/Android_APK/
ByteWrencher said:
I've used this to connect to my Ubuntu file server in my house. While I didn't have to enter a username on the windows boxes that connect to the server, I did have to use "guest" as a username with an empty password field.
Good Luck!
ByteWrencher
DIAM500 Froyo 2.2 XDANDROID.19.8.10
Click to expand...
Click to collapse
this is what must be done to use your regular xp user name and password -
1. open windows control panel
2. double click on administrative tools
3. double click on local security policy
4. hi-light security options
5. double click on network access:sharing and security model for local accounts
6. change to classic - local users authenticate as themselves
Thx a bunch, feinmark
I followed those steps you posted, but I still kept getting the same error
These are my setup
===========================================
Server: XXX.XX.XXX.XX (MY computer IP, not my router IP )
Label: Transfer
Share: 'Empty'
Domain: 'Empty'
Directory: 'Empty'
Username: 'my user name'
Passcode: 'Empty' b/c I do not have one for my comp
=============================================
This is the message I still get........
jcifs.smb.SmbException: Failed
to connect:
0.0.0.0<00>/XXX.XX.XXX.XX <- my computer IP
jcifs.util.transport.
TransportException
java.net.ConnectionException:
/XXX.XX.XXX.XX:139 -
connection refused
Can someone please help me :O.....
Disable windows firewall.
If you use win7, make sure your in your network as: 'HOME network' and not as 'PUBLIC'.
Thus fixed it for me..
GL

Android inTRAnet only - DNS suffix to 'com' with NO servers

Hi all,
is there a place on our Android phones where I can set the DNS suffixes to change 'pc' and 'm' to 'pc.com' and 'm.com' for my inTRAnet only?
I've setup an inTRAnet at home using IIS 5.1 on Windows XP sp3.
I have NO server OSs available.
So NO DNS nor WINS server are avaialble.
All three of us at home have pcs. With a few more around the house.
I've setup each pc to use Simple DNS server to redirect 'pc.com' to my IIS 5.1 server. (via Preferred DNS server in Tcp/IP settings on each PC)
I also had to set the 'Append these DNS suffixes' in Advanced TCP/IP setting | DNS by adding 'com' on each PC to suffix
pc.com is where I have a web page for family notes, schedules, reminders, etc.
All three of us at home have Android phones.
I've setup each pc to use Simple DNS server to redirect 'm.com' to my IIS5.1 server. (again via Preferred DNS server in Tcp/IP settings on each PC)
My pcs take Advantage of the previously setup TCP/IP setting | DNS | 'com' to change 'm' to 'm.com.
m.com is where I have mobile formatted web pages for the same type of info.
I've set each mobile to use the Simple DNS Server using Wi-Fi Settings | advanced | DNS 1.
both pc.com and m.com work on all our mobiles.
is there a place on our Android phones where I can set the DNS suffixes to change 'pc' and 'm' to 'pc.com' and 'm.com' for my inTRAnet only?
Like I did on our PCs?
A hyperlink to a step-by-step process would be preferred as I have no experience in command level settings etc. on androids.
Or perhaps an Android app?
Thanks for your time reading this post.
And thanks in advance for any positive constructive and verbose assistance.
All my best,
Barry G. Sumpter
I'm not sure i understand your problem?
You could edit
"/system/etc/hosts"
to change what the addresses get resolved too.
Could set m and pc to be resolved to your servers intranet ip.
Thanks for the reply.
I've already changed the Hosts file on the android using the Android app:
Hosts Edit
But neither m nor pc are getting resolved to 192.168.1.6
Unless I'm not getting the entries correct:
Ip Address: 192.168.1.6
Host Entries: m
Ip Address: 192.168.1.6
Host Entries: pc
All android browser are just searching google for m or pc.
Any other suggestions from anyone?
Also, that list is absolutely huge!
about 10,000 entries. Exagerated.
I was trying to find my entries but gave up since there is no search on that app.

Proxy and port

In my school we have Wifi only on hallway,so we can use it only at break and its bad . But teachers have seccured wifi,which is in class too. We have found password,but its need to setupp proxy and port to work. Fortunately its the same proxy and port like on the all school PCs, co i just write proxy from browser settings. But on Transformer i can set up proxy/port only for HTTP protocol, so its work only in browser. But i want to use this for some apps too. I have tried some apps to set up proxy but it didnt work. Does anyone of you know hot to set up proxy for the apps? If it posible.
Needs ROOT, couldn't find an unrooted method. -- https://play.google.com/store/apps/details?id=org.proxydroid&hl=en
I think you can set up proxy using AnyCut, but I have not tried it to know if it will work for what you need.
SSHTunnel will work, but you need a SSH proxy. [And obviously root, but who doesn't root?] It has the ability to use a global proxy or you can select individual apps.
https://play.google.com/store/apps/details?id=org.sshtunnel
Here is a page with a list of SSH proxies:
http://livessh.com/free-ssh-tunnel-accounts-list.php
Btw, a SSH proxy is more secure, it encrypts your data. But of course, the proxy you connect to could save your web traffic, just like any other proxy.

Categories

Resources