iptable -P INPUT DROP
iptable -P FORWARD DROP
iptable -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m geoip --src-cc RU -j ACCEPT
iptables -A INPUT -s 12.34.56.78 -j ACCEPT
# apt show python3-pip -a
Package: python3-pip
Version: 8.1.1-2ubuntu0.4
APT-Sources: http://mirror.yandex.ru/ubuntu xenial-updates/universe amd64 Packages
<...>
Package: python3-pip
Version: 8.1.1-2
APT-Sources: http://mirror.yandex.ru/ubuntu xenial/universe amd64 Packages</b>
<...>