Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Problems with Remote Desktop protocol as well as VNC

  1. #11
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Problems with Remote Desktop protocol as well as VNC

    NC is a clear-text protocol, and using it could potentially allow some hacker in the middle to intercept anything you type.
    There are plenty of well-known exploits against RDP too. ssh and its extensions are pretty safe (provided you're patched up from the Debian ssh key fiasco a couple months back), but they're slowwwww in my experience for forwarding more than just a command prompt. Is freenx fast enough to forward the whole desktop session at an acceptable speed?

    In any case, if you only run a vnc session for a couple of seconds just to see if it works, the risk is pretty minimal.

    I agree that if you can connect from home to work using Windows, then there are obviously no ports being blocked. But I think it still wouldn't hurt to make sure that VNC works too, just to rule out other factors. If VNC works, then it nails the problem down to the way that Ubuntu handles RDP, not a broader problem with Ubuntu.

    Also, another test that would help isolate the source of the problem would be to try to connect over the terminal server client to a different Windows computer, like one in your house, if possible. If that works, then you'd rule out bugs with the terminal server client in Ubuntu.

    It may also help to try a different program to connect, like Gnome RDP, or to compile rdesktop (the backend to these programs, I think) from the latest stable source, in case there's a bug there that's preventing the connection.

    By the way, couldn't you remote from work to home, and then over that connection, test home to work? No need to remember to leave VNC running overnight

  2. #12
    Join Date
    Oct 2007
    Location
    manchester, nh
    Beans
    148
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Problems with Remote Desktop protocol as well as VNC

    I tried out Gnome RDP with identical results.
    I might consider trying to compile rdesktop, but the current repositories do seem to work fine for most everyone, not to mention the fact every time I've attempted to compile anything from source I've completely failed (I still don't know what I've ever done wrong there; I followed instructions very carefully).

    I suppose I could VNC home and then VNC through there back to work just to check it out. I'll try it tomorrow. After that though I won't continue to use it.
    The remoting home to Ubuntu is completely unnecessary. I just wanted to try it out. It is awfully fun to watch the girlfriend with the webcam and then scare the crap out of her by using Festival to make the computer talk to her.However, I don't need it; just wanted to check it out.

    It's the home to work telecommute I really need to use.

    Trying to get onto another Windows computer, particularly one on the same LAN sounds worth trying; however, I'm the only Windows computer in the house. I'll see if I can't arrange trying that somewhere else sometime soon though.

  3. #13
    Join Date
    Jun 2006
    Location
    Myrtle Beach, SC
    Beans
    36
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Problems with Remote Desktop protocol as well as VNC

    Quote Originally Posted by employeeno5 View Post
    The only way I've managed to tell it's working fine is that going to http://192.168.100.1/ takes me the page for the modem at work rather than the web admin. for my home router. We don't have any intranet pages or web apps at my company. Just databases for Quickbooks and Paradox. I'm not sure how I'd test my connection is working otherwise. Any advice there would be helpful.
    Okay - there's a command that may work here, and it may not. It's called ping. The idea is that a packet is sent out and the remote machine replies to it. (Think of every movie you've ever watched with a submarine and how they sent out a ping and listened for the reply.) If no reply is received, then one of two things is happening: it's either being blocked by a firewall rule (fairly common) or it did not reach its intended destination.

    You can ping either by IP address or by hostname. Either way it's easy. Just type

    ping hostname

    Here's an example. I'm going to use ping with the -c switch to ping my router 5 times:

    xxxxxx@yyyyyy:~$ ping -c 5 192.168.1.1
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.73 ms
    64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.44 ms
    64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.48 ms
    64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.46 ms
    64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=2.06 ms

    --- 192.168.1.1 ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 1.447/1.640/2.066/0.237 ms
    xxxxxx@yyyyyy:~$

    The results you see above indicates that it reached my remote router and the router replied. The time at the end indicates how long it took from the time my system sent the ping until it heard the reply back.

    Quote Originally Posted by employeeno5 View Post
    I used "ipconfig" at work to bring up the local IP address of the computer. I've been trying that now instead of the computer's name. I still cannot connect, however it does respond differently. When it fails to connect using the computer's name is tells me that it "cannot resolve host". When I try using the IP it outputs "no route to host".
    That's indicative of your system not being able to reach the remote system.

    Are you routing everything through your work network when you are connected via VPN, or only specific networks? Assuming you're using Network Manager to control your VPN, edit your VPN configuration and go to the last tab for Routing. Look to see if the box for Only Use VPN Connection For These Addresses is checked. If it is, are you routing the networks you have at work? If so, are you sure that the network blocks are correct? (When in doubt, ask "the network guy" at work for this info.)

    I should also caution you that if your home network range is the same as the one you're connecting to at work, it could cause problems. For example, if you do an ifconfig at a command prompt in Ubuntu and see that your computer is using 192.168.1.101 and an ipconfig on the system at work shows that it is using 192.168.1.55, they're probably going to have issues getting to each other because they're both using the same network addressing.

    Quote Originally Posted by employeeno5 View Post
    I hope that's helpful. Thank you for the advice regarding VNC.
    It is, and I hope the info I'm passing along helps you out too.

    No problem on the advice about VNC. I've got a masters in network security, and I work for a network security company. I have more than a few colleagues that'd beat me senseless if I advocated a clear text protocol for sensitive information like that.

    Quote Originally Posted by employeeno5 View Post
    Because remoting to the office works in Windows it's not the end of the world. However, I would love to have it working in Linux. It's one of the only reasons I boot into Windows at all still, and certainly the only necessary reason. I'd love to get it off my back.
    Hang in there. We'll get you through it.
    I support my bad habits with the money I save using open source software.

  4. #14
    Join Date
    Jun 2006
    Location
    Myrtle Beach, SC
    Beans
    36
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Problems with Remote Desktop protocol as well as VNC

    Quote Originally Posted by pytheas22 View Post
    Is freenx fast enough to forward the whole desktop session at an acceptable speed?
    In my infrequent use of it, it's surprisingly fast. I wouldn't be watching videos over it, but I did try that to see how badly it'd fail. There's no 30 frames per second response from it, but when I connected from my desktop at work to my home system on a cable modem connection I was shocked at how quick the response was.

    Quote Originally Posted by pytheas22 View Post
    But I think it still wouldn't hurt to make sure that VNC works too, just to rule out other factors.
    Again, while it may be a good test I strongly caution you to check with your corporate policies to make sure that running VNC (or telnet, or ftp, or any other clear text protocol) does not violate your corporate security policy. I have a very large former marine who is head of security at work. I hate to think what he'd do to me if I was caught with VNC, telnet, or ftp running on my system.

    ...and whether you know it or not, there's a chance that your PC at work is scanned for this stuff regularly. Nessus is a great tool, and I know that every vlan we have at work, and every device on those vlans, is scanned regularly to make sure we're up to date on patches as well as scanned for rogue services like VNC. Be *VERY* careful there guys.
    I support my bad habits with the money I save using open source software.

  5. #15
    Join Date
    Jun 2006
    Location
    Myrtle Beach, SC
    Beans
    36
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Problems with Remote Desktop protocol as well as VNC

    Quote Originally Posted by employeeno5 View Post
    It is awfully fun to watch the girlfriend with the webcam and then scare the crap out of her by using Festival to make the computer talk to her.
    It's amusing how many of us have had that idea and executed it.

    If that's all you want to do, set up apache and a web cam app to view the webcam, and then ssh into the command line and use festival from there. I did that exact same thing years ago, and my wife would suddenly hear the computer talking dirty to her. Always amusing to watch her reaction.
    I support my bad habits with the money I save using open source software.

  6. #16
    Join Date
    Oct 2007
    Location
    manchester, nh
    Beans
    148
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Problems with Remote Desktop protocol as well as VNC

    OK, so let's see where we're at today.

    I'm pinging the work server just fine when connected via VPN.
    No packages lost.



    Are you routing everything through your work network when you are connected via VPN, or only specific networks? Assuming you're using Network Manager to control your VPN, edit your VPN configuration and go to the last tab for Routing. Look to see if the box for Only Use VPN Connection For These Addresses is checked. If it is, are you routing the networks you have at work? If so, are you sure that the network blocks are correct? (When in doubt, ask "the network guy" at work for this info.)

    I should also caution you that if your home network range is the same as the one you're connecting to at work, it could cause problems. For example, if you do an ifconfig at a command prompt in Ubuntu and see that your computer is using 192.168.1.101 and an ipconfig on the system at work shows that it is using 192.168.1.55, they're probably going to have issues getting to each other because they're both using the same network addressing.
    Now as far as the VPN settings go, I do not have the option you're speaking of checked off and I do not know what to put in there. We don't have a network guy at work. We have a company with a guy on call for when we have problems and he does a monthly check in. About six months ago while he was fixing something with the virus software on my desktop, I mentioned that I had started using Linux at home as my desktop operating system. He made a face that I can only describe as a sneer and said, "Why would you do that?"
    So, I don't know how much help I'm going to get from him on this front. When I first started remoting in I asked him what I needed to do to get it running and rather than explaining it to me or sending me some instructions he insisted it was best if I just bring in my laptop and let him do it (on Windows that is, naturally, or we wouldn't be having this conversation).
    He also was terribly upset to find that I'd moved the shortcuts in my start menu into a sane hierarchy (i.e., instead of having separate folders for Firefox, ie, pidgin, etc. I moved all of their folders under one called "internet". Apparently this fit of rational organization through him off his game.)
    All of that said. I have full physical access to the server and there is no security policy to violate. In fact, I've had to get in there myself more than once and use a little Google, the little I already know, and trial and error to get certain things working again when our "network guy" wasn't available.
    Also, my father own the company. He owns the server. I have permission. So if it doesn't make a security experts head spin too much, I can hop on the server and locate this information with a little guidance, and you need not worry about the moral implications of it, just the practical ones.
    Of the twenty five people at the company I know the most about computers in general (I'm also by far the youngest, surprise surprise) so even though this thread exposes a large amount of ignorance on my part regarding anything network related, everyone else in the company looks at me to be "computer guy" when real computer guy isn't around.

    So, anything I learn here is probably good for the company in general what with Crabby McWindows frequently unavailable.

    Regarding complications that could arise from the local IPs of the two machines being similar; you may also be onto sometime there. My machine's individual IP under the home server is only one number different from my workstation's local IP under the office server in the exact same manner you presented in your above example. Forgive me if my terminology is wrong or misleading. I'm don't know the correct terms and I'm not sure how to make myself more clear.

    So, that's where I'm at. I've got solid pings, no clue what network blocks are (but access to them), similar IP addresses on both machines, a cranky once-a-month-IT-guy who doesn't like Linux and a girlfriend who is now afraid to be alone in the room with my talking laptop.

    Thanks again. Though I'm not connecting yet, I'm learning a lot and enjoying the conversation. It's very much appreciated.


    These forums are the best.

  7. #17
    Join Date
    Jun 2006
    Location
    Myrtle Beach, SC
    Beans
    36
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Problems with Remote Desktop protocol as well as VNC

    Quote Originally Posted by employeeno5 View Post
    OK, so let's see where we're at today.
    First off - sorry to take a few days to get back to you. I'm traveling for business and this fell through the cracks. You have my most sincere apologies for my leaving you hanging.

    Quote Originally Posted by employeeno5 View Post
    I'm pinging the work server just fine when connected via VPN.
    No packages lost.
    That's good! That means that your system can get to the remote server when your VPN is connected. I have to admit that I'm surprised though because before your messages about no route to host indicated to me that it wasn't that.

    Quote Originally Posted by employeeno5 View Post
    Now as far as the VPN settings go, I do not have the option you're speaking of checked off and I do not know what to put in there.
    When in doubt, leave it unchecked. What happens in that case is that all traffic is routed through the remote connection instead of just select traffic based on the networks you define. The benefit is all traffic should get to where it needs to go on your work network. The bad news is that ANYTHING you check out on the internet now goes through your work connection. In other words, if you wouldn't look at it on your PC at work, don't look at it when connected through work.

    Quote Originally Posted by employeeno5 View Post
    We don't have a network guy at work. We have a company with a guy on call for when we have problems and he does a monthly check in. About six months ago while he was fixing something with the virus software on my desktop, I mentioned that I had started using Linux at home as my desktop operating system. He made a face that I can only describe as a sneer and said, "Why would you do that?"
    Some people aren't open minded and have decided to keep shoveling their hard earned dollars to Microsoft and other software companies. Personally I prefer Linux. To each their own.

    Quote Originally Posted by employeeno5 View Post
    He also was terribly upset to find that I'd moved the shortcuts in my start menu into a sane hierarchy (i.e., instead of having separate folders for Firefox, ie, pidgin, etc. I moved all of their folders under one called "internet". Apparently this fit of rational organization through him off his game.)
    Good luck. Sounds like you're better off asking in forums like this for help than running to him. I know his kind well.

    Quote Originally Posted by employeeno5 View Post
    All of that said. I have full physical access to the server and there is no security policy to violate. In fact, I've had to get in there myself more than once and use a little Google, the little I already know, and trial and error to get certain things working again when our "network guy" wasn't available.
    Okay. Sounds like you'll have access to do whatever is necessary to make this work then.

    Quote Originally Posted by employeeno5 View Post
    Also, my father own the company. He owns the server. I have permission. So if it doesn't make a security experts head spin too much, I can hop on the server and locate this information with a little guidance, and you need not worry about the moral implications of it, just the practical ones.
    In that case, it might be time to consider using VNC to see if it works using that approach. I would specifically recommend TightVNC because the compression will improve the speed at which it will work over a remote connection. http://www.tightvnc.com/

    Obviously you should never, ever expose that externally. If you do that you're asking for trouble.

    Quote Originally Posted by employeeno5 View Post
    Of the twenty five people at the company I know the most about computers in general (I'm also by far the youngest, surprise surprise) so even though this thread exposes a large amount of ignorance on my part regarding anything network related, everyone else in the company looks at me to be "computer guy" when real computer guy isn't around.
    In my experience it's been those that thought they knew something and forged ahead that have made my life miserable. Those that know their limitations and are not afraid to ask for guidance, like yourself, I hold in high esteem. You're a rare breed my friend.

    Quote Originally Posted by employeeno5 View Post
    Regarding complications that could arise from the local IPs of the two machines being similar; you may also be onto sometime there. My machine's individual IP under the home server is only one number different from my workstation's local IP under the office server in the exact same manner you presented in your above example. Forgive me if my terminology is wrong or misleading. I'm don't know the correct terms and I'm not sure how to make myself more clear.
    Okay, so at home you're using something like 192.168.1.101 for your PC and at work you're using something like 192.168.1.102 for your PC? That could be a problem, but with routing all traffic through the VPN it shouldn't be a problem. Still, changing your local IP range on your home PC network might be beneficial. If you can give me examples of each I can guide you on what to replace them with. (Feel free to private message me if you don't want to post them here.)

    Quote Originally Posted by employeeno5 View Post
    So, that's where I'm at. I've got solid pings, no clue what network blocks are (but access to them), similar IP addresses on both machines, a cranky once-a-month-IT-guy who doesn't like Linux and a girlfriend who is now afraid to be alone in the room with my talking laptop.

    Thanks again. Though I'm not connecting yet, I'm learning a lot and enjoying the conversation. It's very much appreciated.
    The fact that you're scaring your girlfriend by messing with festival is a good sign. I enjoy how Linux let's me tinker with things, and that's a lot of my attraction to it. Keep that curiosity going.

    Quote Originally Posted by employeeno5 View Post
    These forums are the best.
    Glad you feel that way, and I'm glad to help. I still feel guilty that I took a few days to get back to you though.
    I support my bad habits with the money I save using open source software.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •