Linux/Ubuntu: iptables: block external outgoing ip address

PHOTO EMBED

Sun Aug 28 2022 23:04:48 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash

#iptables -A OUTPUT -d <ipaddress> -j DROP

iptables -A OUTPUT -d 119.140.145.206 -j DROP
iptables-save
content_copyCOPY