mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
@@ -9,15 +9,15 @@
|
||||
|
||||
- Create a new generic routing rule with a higher priority than `main`:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from all lookup {{100}}`
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from all lookup {{table_id}}`
|
||||
|
||||
- Add a new rule based on packet source addresses:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from {{192.168.178.2/32}} lookup {{table_id}}`
|
||||
|
||||
- Add a new rule based on packet destination addresses:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} to {{192.168.178.2/32}} lookup {{table_id}}`
|
||||
|
||||
- Delete a rule based on packet source addresses:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user