2019-08-16 14:15:25 +00:00
|
|
|
### Know your public IP
|
|
|
|
|
2019-08-16 14:15:54 +00:00
|
|
|
* `curl ifconfig.co`
|
2019-08-16 14:15:25 +00:00
|
|
|
* `curl ident.me`
|
2019-10-12 12:19:55 +00:00
|
|
|
|
|
|
|
### Block an IP with `iptables`
|
|
|
|
* `iptables -A INPUT -s 35.196.128.87 -j DROP`
|
|
|
|
|
|
|
|
### Undo the previous rule
|
|
|
|
* `iptables -D INPUT -s 35.196.128.87 -j DROP`
|