[Q] Has anyone tunneled PPTP VPN connections over a SSH connection? - Samsung Galaxy Nexus

I'm using CM9 on my galaxy nexus.
I can connect to my PPTP VPN server (my router running tomato) fine without tunneling, both inside my lan, and outside it.
I can connect to my SSH server (again my router), both inside my lan and outside it. And have successfuly forwarded ports before w/ connect bot and remote desktop apps.
But everything I try results in my VPN connection timing out when I try to do it over the SSH tunnel. I have it connecting to localhost on the VPN settings side. And on the connect bot side i am forwarding port 1723 to 192.168.1.1:1723 (which is my routers lan IP).... but it still times out.
Does anyone have any ideas? is this even possible?

bump - so no one has tried to do this?
edit: nevermind, not possible with PPTP http://www.webhostingtalk.com/showthread.php?t=666728
PPTP requires the GRE protocol, which you can't tunnel over SSH. I've googled this extensively and have tried it repeatedly without any success. You could do PPP over SSH, but it's not very easy to set up, and depending on what OSes you're running, it might be out of your reach.
Check out OpenVPN; it runs on both Windows and Linux, uses a single configurable port for communications, and does everything over that port; as long as you can find an unblocked port on your network to use it on, you should be fine.
Click to expand...
Click to collapse

Related

VPN and Remote Desktop

Hi Guys,
either I dont know how to search or there is no info on VPN on the forum(I probably dont know how to search) In any case. I need assistance. How do I setup a VPN on my TyTn running WM6 and also how do I get remote desktop client? I am sure this was around previously. Did MS remove it from WM6? Or was it HTC? It this is the case.. how can one get it back?
thanks!
here's remote desktop. How do you use it? I don't know how to set it up.
thanks!!!!
now for VPN....
cheers!
The remote desktop client is available in several places in this forum for download.
To set up a VPN:
add a new VPN server connection
enter the name / ip of the server you want to connect to
select the vpn type -- ipsec or pptp
next
enter your user name and password
finish
The only way I have found to connect to the von is to goto
Start-Settings-connections-connections-edit my vpn servers- -- tap & hold MY VPN
select connect
you must be using a plan that assigns you a public IP (not WAP)
hope this helps
JTK said:
Hi Guys,
either I dont know how to search or there is no info on VPN on the forum(I probably dont know how to search) In any case. I need assistance. How do I setup a VPN on my TyTn running WM6 and also how do I get remote desktop client? I am sure this was around previously. Did MS remove it from WM6? Or was it HTC? It this is the case.. how can one get it back?
thanks!
Click to expand...
Click to collapse
Thanks cmccarter, done it but how will I know I am connected.. It does not say connected anywhere that I can see and when clicking/hold on the item it gives me the option to connect again, not disconnect as I would have thought The other thing is terminal server does not connect. It connects fine on USB. VPN/Remote desktop connects fine using normal internet on pc from outside the network. So I believe the network settings are fine.. How would I know though if I am on WAP or get an IP. Also ow would I know if the VPN is connected?
thanks
fyi
i also have struggled getting rdp to work over a vpn, in particular over 3+/hsdpa
the only i found in wm5 was to add the vpn connect to the exceptions list of the connection manager, so that it didnt disconnect the vpn whem connecting the rdp.
this occurs more when u use an ip address to connect to a work intranet.
suppose if u use the dns name of the machine and not the ip address then it isnt that much of an issue. in wm5 when u put the ip address in it assumes a an internet rather than intranet connection so it disconnects the vpn to look for the ip over the internet
putting the ip into exceptions forced wm5 to not disconnect it when rdp was looking for it.
i cudnt get it to work this way in wm6 so i am also looking for an answer on this.
rdp to my servers when they have crashed and i am on the road wud b wonderful....
Hi,
I've a similar problem.
I use a VPN-1 SecuRemote that normally connect my PC directly to the company network.
Well, using the share modem tool, I'm not able to reach the gateway.
the share modem system give me a private IP that establish a connection between PC and TYTN.
This connection use the Tytn like a gateway to navigate in internet.
Someone know to solve this issue?
Tanks a lot
if i select start the vpn connection, nothing happens - and i can`t ping the IP`s in the VPN. so i think the vpn ist not open - OR the routing entrie is missing....
is there some shiny "pptp - standalone" client?
greets, Nik
for some reason i dont think the vpn option works over 3g/hsdpa, atleast not on my device using t-mob web and walk.
if i connect the vpn when using wifi it connects and everything is fine, if i try and connect when i'm already running a 3g connection it doesn't work.
i dont think the radio stack is capible of handling a 3g connection and a vpn connection. we might need to go down the route of getting a seprate wm vpn client.

creating a vpn connection on a dash/wm6.1

i noticed under connections a VPN area. i added my pptp connection for my work server but how do i dial it so i have a connection? ideally, i'd like to dial the vpn then use tsmobile to connect to my pc's local ip. is this possible? i can connect to the server via tsmobile but that has static outside ip.
i would also like to know how to do this!

[REQ] How To - Remote Desktop Mobile

Is there some tutorial/help on using hte Remote Desktop Mobile to connect to a PC? I haven't been able to connect TP 2 to my PC running Vista. I put in the Computer name, User name, password, and domain and when I clicked "Connect", it returned an error:
Cannot connect. Likely reasons are:
1. specified computer name or ip does not exist.
2. A network error occured while establishing connection.
I tried both domain name and ip. Made no difference.
I also tried both on 3G as well as WiFi but it made no difference.
You'll need to set up two things:
set the vista machine to accept the remote connections
http://howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/
forward port 3389 on your router if you have one
http://portforward.com/
Then you should be up and running!
'tunes
Thanks, mad-tunes. Got it working now, at least when connected by WiFi. And when the phone and the PC are on the same Wifi network, I can connect simply by putting in the computer ip address. No domain is required and no port configuring required too.
Lord_BlackAdder said:
Thanks, mad-tunes. Got it working now, at least when connected by WiFi. And when the phone and the PC are on the same Wifi network, I can connect simply by putting in the computer ip address. No domain is required and no port configuring required too.
Click to expand...
Click to collapse
Good stuff, glad it helped a bit....
If you can't connect from the outside world (ie, using GPRS), then it's most probably a port forward thing...
If you want to get this bit working: How's the machine you're trying to RDP to connected to the 'net exactly?
(ADSL modem, router etc?)
mad_tunes said:
Good stuff, glad it helped a bit....
If you can't connect from the outside world (ie, using GPRS), then it's most probably a port forward thing...
If you want to get this bit working: How's the machine you're trying to RDP to connected to the 'net exactly?
(ADSL modem, router etc?)
Click to expand...
Click to collapse
Yes, the PC is behind the router. So probably woould need to do port forward as you have suggested. Having tested it yet. Would try this out later this week.
I was wondering, is theres a way to do this if youre on a home edition of windows?
the home edition I dont believe has remote desktop.
Remote desktop mobile using 3G connection
Has anyone gotten remote desktop mobile to work using only a 3G connection? I've got it working perfectly using wifi but can't for the life of me figure out how to do it over 3G. I searched and the closest thing I could find to being helpful was the following:
I had the same problem till I created two VPN connections. One for internal use (WiFi) and one for extenal use (3G).
The internal one uses the internal IP address of the VPN server and the external one uses the external IP address.
You have to sleect which connection you want to use before starting the connection depending on whether u r using WiFi or 3G.
Hope that makes sense. It works 4 me.
Click to expand...
Click to collapse
This makes sense but it's confusing about what to change in the VPN connection settings. Can anyone explain in more detail?
Thank you very much
squirtpunk said:
I was wondering, is theres a way to do this if youre on a home edition of windows?
Click to expand...
Click to collapse
No. You can only use third party solutions like VNC. RDP host is not included in Home Edition.
You have to go into your router and set up a port forward so that 3389 goes to internal IP address of the system you want to remote into. If you have port forwarding/triggering, you can have a different port (eg, 3390) trigger to 3389 internally. If you don't have port forwarding, you can change the listening port from the default 3389 to, eg, 3390 and then you can create a port forward to remote in that way. To access, add :3390 to the end of the remote address (eg, 64.246.222.91:3390). The registry path to the listening port is:
HLKM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber
You must reboot after changing the setting.
If you have a domain, it is incredibly useful to set up DNS for this, then you can simply enter the DNS name in the client. This works internally as well.
Update: So i just went to a Starbucks and tried using the wifi there to connect to my remote desktop and it couldn't connect!? But it can connect when I'm using the same wifi router as my remote computer does this mean I don't have the router properly port forwarded? Or is it some other issue? Any advice would be great.
Thanks
When you use your wifi at home, it ends up in the same IP subnet as the remote computer, so all you need to do is to enter the computer name.
When you're at a hotspot, you need to enter the public IP address for your router and step up port forwarding. Wifi outside of your home is no different from using EVDO as far as IP addressing is concerned. You must enter via public IP.
If you don't know what your public IP address is, open a browser from any computer at home and go to this URL:
http://whatismyip.com
It will tell you what the public IP is.
Cheap Loop-Hole
I got Remote Desktop to work on 3G.
First open Opera (or what ever your default browser is) set a home page to something that takes at least 5-10 second to load (if longer, even better), like an email account or m.myspace.com. Simple sites like m.google.com won't work because they load to quickly.
Close OPERA: I mean make sure its closed not just minimized.
This next part needs to be done rather quickly, so I advise making Remote Desktop a top icon in your Start Menu.
So Launch opera, and quickly launch Remote Desktop and hit connect.
Remote Desktop will piggy back off the Opera browser connection to get out to your computer.
Note: (make sure remote desktop works at home first, either by wifi, blue tooth, or direct usb, and by checking it from a computer outside of your network) once you know it works you should be able to connect to it.
Also note: as some one stated above, make sure that proper ports have been open on the computer and router than you should be good to go.
I'm sure their is a registry fix to get the remote desktop working without doing this, but this is the only way I've been able to do it for now..
Hope this helps...
---
I'm currently using AT&T Tilt 2 Stock Rom and Radio.
Check this out guys, it might be of some help: http://forum.xda-developers.com/showthread.php?t=533664
Thanks a lot guys! It's working just fine now (on both wifi and 3G!) turns out I didn't have the router properly port forwarded.
just started trying to figure this out today. spent about 15 minutes but couldnt get it going.
just installed windows7 on my old pc and im trying to get my htc tp2 (rhodium) to work with the preinstalled Remote Desktop Mobile application. i forwarded port 3389 on both tcp and udp since i didnt know which was necessary.
is a static ip necessary to get this setup by going into the ipv4 settings? also, what is the application looking for with the input for "domain"? - subnet mask? default gateway for my home network?
so far i have tried the following inputs in my tp2 for Remote Desktop Moble:
Computer: public ip
User Name: windows7 login name
password: windows 7 login password
domain: ???
any help is appreciated. going to try this more when i get home from work.
apathyps said:
just started trying to figure this out today. spent about 15 minutes but couldnt get it going.
just installed windows7 on my old pc and im trying to get my htc tp2 (rhodium) to work with the preinstalled Remote Desktop Mobile application. i forwarded port 3389 on both tcp and udp since i didnt know which was necessary.
is a static ip necessary to get this setup by going into the ipv4 settings? also, what is the application looking for with the input for "domain"? - subnet mask? default gateway for my home network?
so far i have tried the following inputs in my tp2 for Remote Desktop Moble:
Computer: public ip
User Name: windows7 login name
password: windows 7 login password
domain: ???
any help is appreciated. going to try this more when i get home from work.
Click to expand...
Click to collapse
network-wise what you need to do depends on how your PC's connected to the 'net...
if it's connected directly via something like a USB ADSL model or Virgin media cable box, then you'll only need to let 3389 through your PCs firewall.
If it's connected via anything like a router, then you'll also have to allow 3389 through your routers firewall, as well as forwarding port 3389 to your machine inside your network.
it's the port forwarding which needs the internal IP of your PC, so a static one's a good idea (otherwise, if your PCs internal IP address changes it'll stop working). you could set your router to always hand the same IP to your PC MAC address, which can be the best of both worlds (and how I do it).
http://www.portforward.coms a good place to start to find how to forward ports for your router if you're using one..
You also have to go to control panel>system>advanced system settings>remote and set things as you need in the 'remote desktop' section.
if you don't have the 'remote desktop' section, then you're running one of the home versions of the OS which doesn't support Remote desktop conenctions (out of the box )
re domains...if its a normal home PC and nothing to do with a business, then you wont have to enter one at all.
Once you're at home, get your TP2 on your internal network (wifi), and then try to rdp to your machine using its INTERNAL ip (192.168.*.*) and see if that works.
if it does, the PC end's fine and it's your router config you need to get right. if it doesnt, then its something at the PC..
post back here if you still have trouble..
ok, so connecting with the tp2 via 192.xxx.x.x works fine from within the network at home on wifi.
however, once i try and connect with the public ip, it doesnt work. did the port forwarding thing.
i setup the static ip, i tried putting the host pc in the dmz, and still nothing. i tried disabling the host pc's firewall, and nothing.
in remote desktop mobile, im putting in the public ip of the host pc, and have tried filling in the username and password fields, and also tried leaving them blank.
any ideas?
apathyps said:
ok, so connecting with the tp2 via 192.xxx.x.x works fine from within the network at home on wifi.
however, once i try and connect with the public ip, it doesnt work. did the port forwarding thing.
i setup the static ip, i tried putting the host pc in the dmz, and still nothing. i tried disabling the host pc's firewall, and nothing.
in remote desktop mobile, im putting in the public ip of the host pc, and have tried filling in the username and password fields, and also tried leaving them blank.
any ideas?
Click to expand...
Click to collapse
if its workin from inside your network, your PCs set just fine...so it must be the firewall or port forward on your router...
double-check that 3389s alowed through its firewall
and
the forwards set to point UPD+TCP on port 3389 to the current internal IP of your PC.
tbh, I cant think of much else but let me know how you get on
ah, got it working. had to forward from ANY -> 3389, not 3389->3389. duh. works now.
thanks guys
Strange, you shouldn't have had to. RDP defaults to 3389 so the client should be using that from the word go (I know mine do!)...it could be a wierd router thing.
Depending on the exact option(s) you had to change to get it going though, it's making your machine a little more open to the outside world. but maybe not in a huge way....
(so, is it now AnyIP:AnyPort>YourIP:3389 or AnyIp:AnyPort>YourIP:AnyPort? I think forwarding all ports to 3389 would wreck eMule!)
It's probably worth changing the port used from the default though tbh.
Your change it in the PCs registry and add ortno to the end of what you enter into the client.
(so it'd be something like 192.168.0.1:3390, for example)
Then change the rules on the router to match, of course.
'tunes

Remote desktop mobile help

ok, so i can get remote desktop to work when im on my wireless connection with my phone but as soon as i try just using sprints network, it wont connect.. is there a trick to use it on sprints network or something? it would be cool if i could get this to work without having to use wifi.. thanks! and my os is vista ultimate.
A quick check-list for you:
You're RDPing to your external IP. You can go to http://www.whatsmyipaddress.com/ to find it.
Either the default port (3389) or you own is allowed through any firewall on your pc.
If you're behind a router:
Your PCs either got a static internal IP is or assigned the same by MAC.
The port you're using is forwarded to your PCs internal IP.
You may need to allow the port through your routers firewall too.

[Q] evo hotspot tethering and dd-wrt client bridge

This has been posted before, but I have found no solution in the thread.
As a network backup if/when internet fails me, I need to use the evo 4g to serve as the host for my client bridge (netgear with dd-wrt).
I've been using the client bridge successfully to connect to my Linksys router across the apartment.
I have to have a hard wired connection for my voip phone I use for work.
I match all the encryption, channel, ssid, etc. as I do for my normal network, but when I try to change everything over to match the cmod hotspot (not the wireless tether app which I have nothing but trouble with), it never works. All wired connections get a 169 IP from the router.
Google says that it needs to be in infrastructure mode, and it appears cmod7 uses that. I've tried a vast amount of different ssids, encryption methods, rebooting, etc.
Any info would be greatly appreciated. Does a different rom work better for this method, or do I need a different wifi app besides the one embedded in cmod7?
je1117 said:
This has been posted before, but I have found no solution in the thread.
As a network backup if/when internet fails me, I need to use the evo 4g to serve as the host for my client bridge (netgear with dd-wrt).
I've been using the client bridge successfully to connect to my Linksys router across the apartment.
I have to have a hard wired connection for my voip phone I use for work.
I match all the encryption, channel, ssid, etc. as I do for my normal network, but when I try to change everything over to match the cmod hotspot (not the wireless tether app which I have nothing but trouble with), it never works. All wired connections get a 169 IP from the router.
Google says that it needs to be in infrastructure mode, and it appears cmod7 uses that. I've tried a vast amount of different ssids, encryption methods, rebooting, etc.
Any info would be greatly appreciated. Does a different rom work better for this method, or do I need a different wifi app besides the one embedded in cmod7?
Click to expand...
Click to collapse
I don't think the router is giving you 169 IP addresses, those are a default random IP address that the Windows TCP/IP is assigning itself by default, that was useful back in the workgroup and hub days before the internet. I am researching this for future use, and will check back.

Categories

Resources