Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-04-2008, 12:55 AM   #16
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 646

Original Poster
Rep: Reputation: 33

Originally Posted by r3sistance View Post
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.
PHP Code:
[root@localhost ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    
Use Iface        
*        U     0      0        0 eth0
-local      *          U     0      0        0 eth0
default         UG    0      0        0 eth0 
PHP Code:
[root@localhost ~]# cat /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
RH-Firewall-1-INPUT - [0:0]
A INPUT -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
PHP Code:
[root@localhost ~]# service sshd start
Starten van sshd:                                          [  OK  

The ssh-deamon is working from start-up.
Don't know whether you can tell me something from my iptables ??

If I need to open ports in the NAT-router, then I am stuck because I cannot edit the NAT-configuration of the virtual NAT-router that VirtualBox sets up.
Old 08-04-2008, 03:13 AM   #17
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I was just looking at some of the virtualbox documentation, and my preliminary read is that you won't be able to using NAT. For one thing, your host won't have a route to the subnet I would assume.

Have you tried setting up a host interface (ie not using NAT)?

You could possibly use port forwarding, but not on port 22 unless you run virtualbox aw sroot.

You really should read the user manual

Last edited by billymayday; 08-04-2008 at 03:17 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
file sharing between a virtual machine and the host machine okok Linux - Networking 3 06-21-2013 12:42 AM
machine not allowing login thru virtual console, only thru ssh dsids Linux - Newbie 2 01-15-2007 11:46 AM
SSH remote login fails after moving virtual machine novice_mage Linux - Networking 7 12-31-2006 06:53 AM
SSH back to virtual machine 07mackenzie Linux - General 1 12-13-2006 10:17 AM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 02:47 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration