LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   internet in virtual machine not running (https://www.linuxquestions.org/questions/linux-networking-3/internet-in-virtual-machine-not-running-839713/)

tkmsr 10-22-2010 02:55 AM

internet in virtual machine not running
 
I have removed Network Manager Gnome from my Ubuntu which is a virtual machine(Guest OS),I see the internet is no more running inside this Virtual Machine.
While in other Virtual Machines (Other Linux) I had not removed Network Manager Gnome and I see internet is running fine in them.
What could be the problem?

sem007 10-22-2010 03:37 AM

Had you configure ip address through network manager?

Configure ip address manually and restart networking service.

Code:

# vi /etc/network/interfaces
Regards,

tkmsr 10-22-2010 03:49 AM

I am able to do an ssh into the vm in question irrespective of the fact that it is not having any entry in /etc/network/interfaces
here are my firewall rules
Quote:

# Generated by iptables-save v1.4.1.1 on Fri Oct 22 13:00:09 2010
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [287:55516]
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -j DROP
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
-A INPUT -j DROP
COMMIT
# Completed on Fri Oct 22 13:00:09 2010

in the VM.I do not have any firewall on host machine and connected without any proxy to internet.
Quote:

auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
pre-up iptables-restore < /etc/iptables.rules
ifconfig
Quote:

ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tkmsr 10-22-2010 12:51 PM

Ok I disabled the firewall and changed the /etc/network/interfaces to
Quote:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
If the firewall is enabled internet on the VM does not work also any one from VM can not do an ssh to outside
Here is the firewall
Code:

# Generated by iptables-save v1.4.1.1 on Fri Oct 22 13:00:09 2010
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [287:55516]
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -j DROP
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
-A INPUT -j DROP
COMMIT
# Completed on Fri Oct 22 13:00:09 2010

Seems there is some problem with my firewall.
What port do I need to open so that internet keeps running on VM and outgoing ssh connections are allowed?


All times are GMT -5. The time now is 05:31 AM.