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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
So you are trying to connect from another machine to a machine that is running a virtual server on it. What should happen is the machine needs to have a port open like 22 open and then be able to forward that port to the virtual server port 22. Now if the the host machine is running ssh on port 22 then set the virtual to another port or vice a versa. Then you can forward that port to the virtual.
So you are trying to connect from another machine to a machine that is running a virtual server on it. What should happen is the machine needs to have a port open like 22 open and then be able to forward that port to the virtual server port 22. Now if the the host machine is running ssh on port 22 then set the virtual to another port or vice a versa. Then you can forward that port to the virtual.
Brian
Fedora 8 is running as virtual machine on windows XP pro with VirtualBox (virtualisation soft). The virtual machine uses NAT to be able to connect to the outside world.
Isn't NAT responsible for mapping packets that arrive at my host (XP) to my virtual machine (Fedora) ? I suppose that al the routes in the ip-tables are set correct ?!
Don't tell me I need to open port 22 on my XP host to be able to speak to my virtual machine. Does it work like that ?
XP and his ports normally have nothing to do with packets that are destinated for my virtual machine, no ?!
I've added a route on host 192.168.4.8 that tells to forward packets for the 10.0.2.0-network directly to host 192.168.4.123 (my XP host that is running the virtual Fedora), but that didn't help much.
If the network clients are going via your windows machine then of course the windows host needs to allow port 22 through. Maybe I'm not following your setup, but this is what I understand from the OP
If the network clients are going via your windows machine then of course the windows host needs to allow port 22 through. Maybe I'm not following your setup, but this is what I understand from the OP
So for every service that I want to run (web, ftp, ssh,...) on my virtual machine Fedora, the corresponding ports need to be open on my hostmachine XP ?
So for every service that I want to run (web, ftp, ssh,...) on my virtual machine Fedora, the corresponding ports need to be open on my hostmachine XP ?
Only if I understand your setup correctly and you're routing through the windows box
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Setup network as nat requires mapping ports from the external IP and external port of the host server to the guest OS, IP, and port. Same setup like a plain generic store bought router. If you set the network to bridge then it is seen as directly on the same network. No portforwarding required there.
Please can you run a "sudo /etc/init.d/iptables status" and copy and paste the results here, remember to place code tags around them.
Also run a "sudo /etc/init.d/sshd status" and confirm that sshd is actually running. If sshd is not then type "sudo /etc/init.d/sshd start". There will be a few minor configuration changes needed if that's the case as ssh won't come back-up should the VM need rebooting/restarting.
If your logging in as root you won't need the sudo parts, if you aren't you need privilages to run sudo.
Last edited by r3sistance; 08-03-2008 at 01:40 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.