how do i configure virtualbox and the internal (tap???) interface on the host for squid so squid and iis can communicate? (i think the virtualbox documentation is deliberately sparse and unclear on all those points
outside---|------------------------- ::BOX:: --------------------------|---inside
WWW - :[ eth0-SQUID-intif0==intif1-(-VBOX-IIS vbox0-)-br0-eth1]: - DATABASE
i want to use internal/hostonly (???) networking for the connection between squid and the virtual iis. there must be no connection between the "outside" and the vm and no connection between the "inside" and squid - just the perfect scenario for host-only networking according to the manual. i just don't know how to set it up.
this is the script i use to set up the network before starting virtualbox:
Code: Select all
modprobe -v vboxdrv
modprobe -v vboxnetflt
chmod -R 0666 /dev/net/tun
chown -R vbox:vboxusers /dev/net/tun
VBoxTunctl -u vbox -t vbox0
ifconfig eth1 promisc
ifconfig eth1 promisc 0.0.0.0
ifconfig vbox0 promisc 0.0.0.0
brctl addbr br0
brctl addif br0 vbox0
brctl addif br0 eth1
brctl setfd br0 0
brctl stp br0 on
ifconfig br0 0.0.0.0 promisc in version 2.2.2 the process on the host would freeze when turning of the vm, in 2.2.4 it works nicely.
this is the config of all ifs on the host (all statistics cut out):
Code: Select all
br0 Link encap:Ethernet HWaddr 00:1e:68:9b:54:57
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr 00:1e:68:9b:54:56
inet addr:172.0.62.62 Bcast:172.0.62.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:1e:68:9b:54:57
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
vbox0 Link encap:Ethernet HWaddr 1e:58:56:d1:a1:ac
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
vboxnet0 Link encap:Ethernet HWaddr 00:76:62:6e:65:74
BROADCAST MULTICAST MTU:1500 Metric:1THX in advance!