Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-24 00:19:28 +00:00
parent cd59a77dc8
commit 88bfcc64fb
11 changed files with 161 additions and 46 deletions

View File

@@ -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]}}`