I'm having some issues with my deployment of the Cuckoo Sandbox. I have been unable to enable internet access for the VM via the hostonlyif, vboxnet0 and IPtables rules.
Here are some details regarding my configuration:
- Host - Ubuntu 16.04LTS;
- Host - hostonlyif (vboxnet0) is 192.168.56.1;
- Guest - WindowsXP SP3;
- Guest IP - Static at 192.168.56.19;
I can ping from Guest to Host and vice versa successfully. I am using the following IPtables commands, which are straight from the Cuckoo virtual networking documentation:
iptables -A FORWARD -o eth0 -i vboxnet0 -s 192.168.56.0/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
I am using iptables-save and iptables-restore commands to ensure I can reapply the rules after reboot.
All the documentation says that this should work, however, I am still unable to connect to the internet.
I have added a second adaptor using the bridged mode and was able to access the internet just fine, although Cuckoo didn't seem to want to use it, even after I edited the configuration files.
Does anyone have a clue as to how I might resolve this issue?