Iptables: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==iptables notes== Just some generic notes on working with IP tables. Can be a PITA when an issue is happening to remember the details.. REMEMBER: You can block YOURSELF if you do not use your head! Dont block: Internal IP address YOURSELF external IP address (if logging in via public interfaces) Loopbacks... Not sure what would happen but expect it would brick things.. Simple blocks * iptables -A INPUT -s 47.245.124.200 -j DROP Reminders: * This will not persist...") |
m (→iptables notes) |
||
Line 5: | Line 5: | ||
Dont block: | Dont block: | ||
Internal IP address | * Internal IP address | ||
YOURSELF external IP address (if logging in via public interfaces) | * YOURSELF external IP address (if logging in via public interfaces) | ||
Loopbacks... Not sure what would happen but expect it would brick things.. | * Loopbacks... Not sure what would happen but expect it would brick things.. | ||
Simple blocks | Simple blocks | ||
Line 15: | Line 15: | ||
* This will not persist across reboots | * This will not persist across reboots | ||
* setup of fail2ban would be a heck of a lot easier than manual blocking | * setup of fail2ban would be a heck of a lot easier than manual blocking | ||
* iptables -L -n is your friend |
Latest revision as of 11:02, 11 March 2025
iptables notes
Just some generic notes on working with IP tables. Can be a PITA when an issue is happening to remember the details..
REMEMBER: You can block YOURSELF if you do not use your head!
Dont block:
- Internal IP address
- YOURSELF external IP address (if logging in via public interfaces)
- Loopbacks... Not sure what would happen but expect it would brick things..
Simple blocks
- iptables -A INPUT -s 47.245.124.200 -j DROP
Reminders:
- This will not persist across reboots
- setup of fail2ban would be a heck of a lot easier than manual blocking
- iptables -L -n is your friend