I have Ubuntu 8.04 as virtual host. On this host I have installed VirtualBox. I have installed Windows XP as virtual machine and installed HTTP server.
I would like temporally disable all network connections to host and virtual machine.
So on Ubuntu host I have set firewall settings:
Code: Select all
sudo iptables -F (to flush - delete all firewall settings)
sudo iptables -P INPUT DROP (to disable all input traffic)
sudo iptables -P FORWARD DROP (to disable all forward traffic)
sudo iptables -P OUTPUT DROP (to disable all output traffic
Code: Select all
sudo iptables -L -n -vCode: Select all
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
I see I can't connect to internet from Ubuntu host, sample "sudo apt-get update" returns error.
But I can still connect to my HTTP server witch is running in virtual machine. This is strange. Why isn't this traffic prevented? What should I do to prevent all of the traffic to virtual machine and host?
I have two network adapters (ifconfig command): lo (local) and eth0 (ethernet). VirtualBox is using eth0 to communicate to internet.
P.S. There is no other firewall installed on Ubuntu like ufw.
Regards