Linux/Ubuntu: iptables: block external incoming ip address

PHOTO EMBED

Sun Aug 28 2022 23:00:14 GMT+0000 (UTC)

Saved by @marcopinero #bash

#iptables -A INPUT -s <ipaddress> -j DROP

iptables -A INPUT -s 65.55.44.100 -j DROP
iptables-save

#un-block

iptables -D INPUT -s xx.xxx.xx.xx -j DROP
iptables -D INPUT -s xx.xxx.xx.xx/yy -j DROP
iptables-save
content_copyCOPY