1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 08:55:34 +02:00

ip-rule: fix example description and add generic table creation example (#15980)

This commit is contained in:
Managor 2025-03-23 11:22:56 +02:00 committed by GitHub
parent c549ea1b5a
commit 44f141f902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,10 @@
`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}}`
@ -19,11 +23,7 @@
`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]}}`