bookmarks/cheat/network.md

11 lines
220 B
Markdown
Raw Normal View History

2019-08-16 14:15:25 +00:00
### Know your public IP
* `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`