mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 09:48:26 +00:00
Update cheatsheets
This commit is contained in:
@@ -20,11 +20,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Append rule to chain policy for IP:
|
||||
|
||||
`sudo iptables {{[-A|--append]}} {{chain}} {{[-s|--source]}} {{ip}} {{[-j|--jump]}} {{rule}}`
|
||||
`sudo iptables {{[-A|--append]}} {{chain}} {{[-s|--source]}} {{ip_address}} {{[-j|--jump]}} {{rule}}`
|
||||
|
||||
- Append rule to chain policy for IP considering protocol and port:
|
||||
|
||||
`sudo iptables {{[-A|--append]}} {{chain}} {{[-s|--source]}} {{ip}} {{[-p|--protocol]}} {{tcp|udp|icmp|...}} --dport {{port}} {{[-j|--jump]}} {{rule}}`
|
||||
`sudo iptables {{[-A|--append]}} {{chain}} {{[-s|--source]}} {{ip_address}} {{[-p|--protocol]}} {{tcp|udp|icmp|...}} --dport {{port}} {{[-j|--jump]}} {{rule}}`
|
||||
|
||||
- Add a NAT rule to translate all traffic from the `192.168.0.0/24` subnet to the host's public IP:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user