Answer the question
In order to leave comments, you need to log in
How to fix internet connection error in Debian 8 guest?
Greetings.
I'm running Windows 10 x64 with VirtualBox installed. Network adapter interface for guest OS: NAT. On a simple install, Debian chose only system utilities (ie not installed: SSH, web server, print server, GUI).
telnet ya.ru 80
iptables -F
iptables -t nat -F
iptables -X
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -i lo -p all -j ACCEPT
sh -c "iptables-save > /etc/iptables.rules"
auto eth0
iface eth0 inet dhcp
pre-up iptables-restore < /etc/iptables.rules
telnet ya.ru 80
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question