Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Hamachi to link my desktop top a remote laptop. If I use the command: 'vncviewer xx.x.xxx.xxx' on a Mandriva 2007 desktop I am asked for a password, and then greeted with the remote desktop. Attempting the same with Mageia 2 on the same computer as root with firewall off, I get "server not found". Using 'vncviewer xx.x.xxx.xxx port 5900' has the same response.
'xx.x.xxx.xxx' is the reote address obtained with the command 'hamachi list', and as displayed on the remote desktop.
Does the Mageia 2 "know" where your remote device is? i.e. are they on the same network?
EDIT: looking at the way you censored your IP it seems like a class A address, i.e. an IP assigned to you from your ISP. Could you describe your set up a bit more?
Last edited by kenneth_phough; 12-12-2012 at 03:13 PM.
Thanks for the reply. The remote laptop has Windows XP with Logmein-Hamachi and Tightvnc running. Hamachi is logged into a network with a name aaaaaa and an address 25.xxx.xxx.xxx.
The Desktop is logged into the same network aaaaaa, address 25.yyy.yyy.yyy. If I command 'hamachi list' it identifies the remote laptop 25.xxx.xxx.xxx confirming the connection. Up to this point, I can do the same using Windows XP, Mandriva 2007, and Mageia 2 (same computer - multi boot).
On the Desktop, using Tightvnc on XP or vncviewer on Mandriva 2007, I can see the desktop on the remote laptop. On Mandriva, I enter vncviewer 25.xxx.xxx.xxx, password when asked, and the remote desktop appears.
Using Mageia on the Desktop, if I enter vncviewer 25.xxx.xxx.xxx, after a delay I get the response "Server not found". I have tried krdc with similar results. I'm doing this a root, with the firewall disabled.
I wish I could pin point the problem but I'll have to keep asking questions - sorry!
1) What is your IP address on the Mageia system? Is it 25.yyy.yyy.yyy? (It sounds like you have to "login" to the virtual network and maybe the Mageia isn't???)
2) If the IP address is correct, then is your destination (laptop 25.xxx.xxx.xxx) pingable from your Mageia system?
Logmein-Hamachi is a free VPN; when you connect, it assigns an unique address to each system eg: 25.yyy.yyy.yyy. Once logged in, you can create a new network or join a previously created named network, eg aaaaaa. After joining a network, on Mandriva 2007, the command vncviewer 25.xxx.xxx.xxx connects to the remote device (the laptop) through the hamachi VPN network. This is not happening on Mageia. It would not on Mandriva 2010 also. It would seem something changed between Mandriva 2007 and 2010(?).
The Mageia Dsktop IP is 192.168.1.4. I cannot ping the 25.xxx.xxx.xxx on any system, even those that work as desired.
As you may have guessed I'm not familiar with hamachi but can you access it like any other VPN? Do you use a hamachi service to access it? If so is that service running on your linux box? I'm a centos user but can you do something like
Code:
service hamachi status
If a VPN is established is there a proper interface with that IP when you do ifconfig?
For example when I VPN from my box I get an interface
Code:
jnc0: flags=841<UP,RUNNING,SIMPLEX> mtu 1400
inet SOMEVPNIP netmask 0xffffffff
sorry for not being too much help...
Last edited by kenneth_phough; 12-12-2012 at 07:35 PM.
Re: "sorry for not being too much help..." I appreciate your help. I realise I'm not helping cos I'm flying blind.
'service hamachi status' produced no results. However the hamachi status is:
# hamachi
version : 2.1.0.81
pid : 18870
status : logged in
client id : 119-422-405
address : 25.199.211.3 2620:9b::19c7:d303
nickname : localhost.localdomain
lmi account: -
ifconfig lists eth0, ham0 and lo which don't appear relevant.
Re: "can you access it like any other VPN?" - I don't know, I've not had any other experience.
ham0 sounds relevant but is that not a virtual interface? Idk what your device setup is like but if its a hamachi interface ifconfig ham0 may give us a clue...?
Will keep thinking and get back to you if I find/think of anything.
normally in VPN when you are logged in to another network you cannot access (i.e. ping) machines on your local network.
Once you've booted Mageia or Mandriva 2010, started hamachi, and logged into your VPN try pinging something that is on your lan (192.168.1.0/24), i.e. your printer or router. If this works it seems like you're not on the VPN at all.
Is there a log for hamachi? I couldn't find anything useful on google becuase "Log" file and "Log" me in coincided.
My guess would be that the file is in /var/log/
With Mdk 2007, when logged into hamachi and with vncviewer connected, I cannot ping, as you suggest.
I've done some more comparisons between Mdk 2007 and Mageia which suggest it may be an ipv4/ipv6 problem(?).
On Mdk 2007, ifconfig lists inet addr: xx.x.xx.xxx (which is the address of the local hamachi).
On Mageia, ifconfig does not have "inet addr:" - instead it lists inet6 addr:xxxx:xx::xxxx:xxxx (which appears to be the local hamachi ipv6 address).
The remote laptop shows hamachi ipv4 and ipv6 addresses. vncviewer on Mdk 2007 and the XP on the laptop connect (using the ipv4 addresses), Mageia does not.
The Xp has Microsoft TCP/IP version 6 ticked. So on Mageia I tried vncviewer zzzz:zz::zzzz:zzzz (the remote hamachi address), I get:
main: unable connect to socket: Invalid argument (22)
Good catch! It seems like vncviewer doesn't support ipv6 and Mageia is on ipv6. From my understanding you have to tunnel to be able to cross from v6 to v4.
let's make sure that's the case...can you see what's in /etc/sysconfig/network-scripts/ifcfg-ethX
you should see your device definition. Modify it so that
Code:
IPV6INIT=yes
IPV6_AUTOCONF=yes
becomes
Code:
IPV6INIT=no
IPV6_AUTOCONF=no
reload the network
Code:
/etc/init.d/network restart
and check with ifconfig to see if IPV4 address was given
Thanks again, I checked/modified the /etc/sysconfig/network-scripts/ifcfg-ethX settings. They made no difference to ifconfig output, even rebooted in case.
Right of course it's a virtual interface...so ethX won't help in this case.
I looked around and couldn't find a configuration file with the linux hamachi files. It seems like you can do some kind of configuration online. Is there a way to disable ipv6 from hamachi "control panel"?
hamachi can be set = set-ip-mode ipv4 | ipv6 | both
I have set it to ipv4
I also ran: # nmap 25.xxx.xxx.x -Pn
Starting Nmap 5.51 ( http://nmap.org ) at 2012-12-15 10:07 NZDT
Nmap scan report for 25.xxx.xxx.x
Host is up (0.000027s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
631/tcp open ipp
Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds
(IP address censored), firewall off.
The remote Win XP indicates when there is/not a hamachi link, therefore I'm sure the two computers are linked via the hamachi VPN. vcnviewer is Tigervnc; I have also tried gtkviewer (gvncviewer) with same result. It seems there is a barrier between the hamachi VPN and vcnviewer on Mageia and Mdk2010 thats not present on Mdk 2007.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.