mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 15:51:45 +00:00
Update cheatsheets
This commit is contained in:
@@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ip {{[ru|rule]}}`
|
||||
|
||||
- Create a new generic routing rule with a higher priority than `main`:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from all lookup {{100}}`
|
||||
|
||||
- Add a new rule based on packet source addresses:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from {{192.168.178.2/32}}`
|
||||
@@ -24,11 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[d|delete]}} from {{192.168.178.2/32}}`
|
||||
|
||||
- Delete a rule based on packet destination addresses:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[d|delete]}} to {{192.168.178.2/32}}`
|
||||
|
||||
- Flush all deleted rules:
|
||||
- Remove all routing rules:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[f|flush]}}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user