mirror of
https://github.com/trimstray/iptables-essentials
synced 2024-06-30 18:50:54 +00:00
#2 - removed bad rules
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
f1b18dd857
commit
84addf561b
10
README.md
10
README.md
@ -85,7 +85,6 @@ Found on the Internet - All in One List.
|
|||||||
* [Allow All Incoming POP3](#allow-all-incoming-pop3)
|
* [Allow All Incoming POP3](#allow-all-incoming-pop3)
|
||||||
* [Allow All Incoming POP3S](#allow-all-incoming-pop3s)
|
* [Allow All Incoming POP3S](#allow-all-incoming-pop3s)
|
||||||
* [Drop Private Network Address On Public Interface](#drop-private-network-address-on-public-interface)
|
* [Drop Private Network Address On Public Interface](#drop-private-network-address-on-public-interface)
|
||||||
* [Only Block Incoming Traffic](#only-block-incoming-traffic)
|
|
||||||
* [Drop All Outgoing to Facebook Networks](#drop-all-outgoing-to-facebook-networks)
|
* [Drop All Outgoing to Facebook Networks](#drop-all-outgoing-to-facebook-networks)
|
||||||
* [Log and Drop Packets](#log-and-drop-packets)
|
* [Log and Drop Packets](#log-and-drop-packets)
|
||||||
* [Log and Drop Packets with Limited Number of Log Entries](#log-and-drop-packets-with-limited-number-of-log-entries)
|
* [Log and Drop Packets with Limited Number of Log Entries](#log-and-drop-packets-with-limited-number-of-log-entries)
|
||||||
@ -421,15 +420,6 @@ iptables -A INPUT -i eth1 -s 192.168.0.0/24 -j DROP
|
|||||||
iptables -A INPUT -i eth1 -s 10.0.0.0/8 -j DROP
|
iptables -A INPUT -i eth1 -s 10.0.0.0/8 -j DROP
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Only Block Incoming Traffic
|
|
||||||
|
|
||||||
```bash
|
|
||||||
iptables -P INPUT DROP
|
|
||||||
iptables -P FORWARD DROP
|
|
||||||
iptables -P OUTPUT ACCEPT
|
|
||||||
iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Drop All Outgoing to Facebook Networks
|
#### Drop All Outgoing to Facebook Networks
|
||||||
|
|
||||||
Get Facebook AS:
|
Get Facebook AS:
|
||||||
|
Loading…
Reference in New Issue
Block a user