No se puede instalar apt-get probablemente debido a iptables

No se puede instalar apt-get probablemente debido a iptables

Estoy trabajando con iptables en un VPS de OVH pero no puedo acceder a los paquetes de Ubuntu y no sé en absoluto por qué...

apt-get install package_name

dice:

nombre_paquete no se encuentra

y la función de autocompletar no está disponible.

Pero cuando hago un apt-get update, se alcanzan todos los destinos.

Pego mi lista de iptables:

Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:domain
ACCEPT     udp  --  anywhere             anywhere             udp spt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8443 state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:XXXX state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https state NEW
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:submission
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
LOG        all  --  anywhere             anywhere             LOG level warning
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere

Si ves que falta una regla, ¡dímelo!

información relacionada