LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2008, 01:55 AM   #16
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33

Quote:
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
10.0.2.0        
*               255.255.255.0   U     0      0        0 eth0
link
-local      *               255.255.0.0     U     0      0        0 eth0
default         10.0.2.2        0.0.0.0         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.
*filter
:INPUT ACCEPT [0:0]
:
FORWARD ACCEPT [0:0]
:
OUTPUT ACCEPT [0:0]
:
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 224.0.0.251 -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
COMMIT 
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, 04:13 AM   #17
billymayday
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 10.0.2.0 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 http://www.virtualbox.org/wiki/Downloads

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


Reply


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 01:42 AM
machine not allowing login thru virtual console, only thru ssh dsids Linux - Newbie 2 01-15-2007 12:46 PM
SSH remote login fails after moving virtual machine novice_mage Linux - Networking 7 12-31-2006 07:53 AM
SSH back to virtual machine 07mackenzie Linux - General 1 12-13-2006 11:17 AM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:11 PM.

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