Você pode usar o iptables (adicionar regras de permissão)
Varredura do host 8.8.8.8:
# iptables -I INPUT 1 -s 8.8.8.8 -j ACCEPT
# iptables -I OUTPUT 1 -d 8.8.8.8 -j ACCEPT
# iptables -Z && nmap -O 8.8.8.8
# iptables -vn -L
Chain INPUT (policy ACCEPT 273 packets, 17374 bytes)
pkts bytes target prot opt in out source destination
8 320 ACCEPT all -- * * 8.8.8.8 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 140 packets, 13386 bytes)
pkts bytes target prot opt in out source destination
2043 94224 ACCEPT all -- * * 0.0.0.0/0 8.8.8.8