added more info to readme
This commit is contained in:
parent
978ca05769
commit
c7871b02fc
|
@ -1,12 +1,15 @@
|
||||||
# iptables
|
# iptables
|
||||||
|
|
||||||
Here is my script that I use to update iptables with data.
|
Here is my script that I use to update iptables with data.
|
||||||
|
|
||||||
The different files are listed in lists and are hopefully somewhat self explanatory
|
The different files are listed in lists and are hopefully somewhat self explanatory
|
||||||
|
|
||||||
Anything with .list end in the zone folder will be added to the block list. This was initially used to block countries, but you can use it to block anything.
|
Anything with .list end in the zone folder will be added to the block list. This was initially used to block countries, but you can use it to block anything.
|
||||||
|
|
||||||
Add ```update.sh``` in your cron
|
Add ```update.sh``` in your cron
|
||||||
|
|
||||||
Load iptables and ipset rules however you please on start up
|
Load iptables and ipset rules however you please on start up
|
||||||
|
|
||||||
This is done by the following. Some of my servers have it in ```/etc/rc.local``` others have it in ```/etc/network/interface``` as post-up script
|
This is done by the following. Some of my servers have it in ```/etc/rc.local``` others have it in ```/etc/network/interface``` as post-up script
|
||||||
|
|
||||||
```iptables-restore < /path/to/iptables.save```
|
```iptables-restore < /path/to/iptables.save```
|
||||||
|
|
Loading…
Reference in New Issue