mirror of
https://github.com/trimstray/iptables-essentials
synced 2024-06-30 18:50:54 +00:00
README.md - minor fix
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
98001c62f1
commit
948dd7ce49
@ -158,25 +158,25 @@ iptables -A INPUT -m conntrack --ctstate INVALID -j DROP
|
||||
#### 18. Block an IP Address
|
||||
|
||||
```bash
|
||||
iptables -A INPUT -s 15.15.15.51 -j DROP
|
||||
iptables -A INPUT -s 192.168.252.10 -j DROP
|
||||
```
|
||||
|
||||
#### 19. Block and IP Address and Reject
|
||||
|
||||
```bash
|
||||
iptables -A INPUT -s 15.15.15.51 -j REJECT
|
||||
iptables -A INPUT -s 192.168.252.10 -j REJECT
|
||||
```
|
||||
|
||||
#### 20. Block Connections to a Network Interface
|
||||
|
||||
```bash
|
||||
iptables -A INPUT -i eth0 -s 15.15.15.51 -j DROP
|
||||
iptables -A INPUT -i eth0 -s 192.168.252.10 -j DROP
|
||||
```
|
||||
|
||||
#### 21. Block Connections to a Network Interface
|
||||
|
||||
```bash
|
||||
iptables -A INPUT -i eth0 -s 15.15.15.51 -j DROP
|
||||
iptables -A INPUT -i eth0 -s 192.168.252.10 -j DROP
|
||||
```
|
||||
|
||||
#### 22. Allow All Incoming SSH
|
||||
|
Loading…
Reference in New Issue
Block a user