Find the answer to your Linux question:
Results 1 to 9 of 9
Hi, To be sure that the remote desktop was working, I tried from home, where I have both the laptop I want to connect to and the laptop from which ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    19

    Remote desktop just works when connecting from close distance

    Hi,

    To be sure that the remote desktop was working, I tried from home, where I have both the laptop I want to connect to and the laptop from which I make the connection. It worked without any problem, but now I'm trying to connect from my work place and it's not working anymore. Both are connected to the same VPN, so I don know where the problem comes from.

    Any ideas??

    Thanks in advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Just because both the host and client systems are connected to the same virtual network doesn't mean that either a firewall rule is engaged, or that the host you are trying to connect with is listening on the correct network segment and port.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    19
    That doesn't look good...is there any way of checking where the problem is coming from?

    Thank you!

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Check IP table rules, SELinux settings, remote desktop server configuration, etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    19
    I don't know what are you talking about, but I'll do my best to look for it

    Thanks!!

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You can see what your iptables rules are with the command "/sbin/iptables-save" for IPv4, or "/sbin/iptables6-save" for IPv6 networks. You can see if SELinux is enabled with the command "/usr/sbin/selinuxenabled" doing this:
    Code:
    /usr/sbin/selinuxenabled
    echo $?
    It will output 0 if not enabled, and some other value (probably 1) if SELinux services are enabled.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #7
    Just Joined!
    Join Date
    Mar 2011
    Posts
    19
    Thank you!

    The SELinux is enabled (1). The other command (/sbin/iptables-save) doesn't give anything as response (not even an error).

    Thanks again!!

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Ok. So you are running Security Enhanced Linux (SELinux). This is likely the cause of your problems. You need to configure it to allow the remote desktop access over the VPN. Since such rules are very specific to your system configuration, there is no simple "do this, and that" sort of anwswer.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  9. #9
    Just Joined!
    Join Date
    Mar 2011
    Posts
    19
    That's weird, as I've just checked the file /etc/sysconfig/selinux and it says that it's disabled...
    I had tried before this command to disable it temporarily, just to see what happened: echo 0 >/selinux/enforce, but when I write
    /usr/sbin/selinuxenabled
    echo $?
    I still have the same reply: 1
    Maybe the computer needs to be restarted to change that, but I can't restart it now, so it'll need to wait a couple of days.

    Thanks anyway!

    Cheers

Posting Permissions

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