Files
tldr/pages.tr/linux/ip-rule.md
2024-06-18 09:15:25 +05:30

37 lines
846 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ip rule
> IP yönlendirme politikası veri tabanı yönetimi.
> Daha fazla bilgi için: <https://manned.org/ip-rule>.
- Yönlendirme politikasını göster:
`ip rule {{show|list}}`
- Paket kaynak adreslerine dayalı yeni bir kural ekle:
`sudo ip rule add from {{192.168.178.2/32}}`
- Paket hedef adreslerine dayalı yeni bir kural ekle:
`sudo ip rule add to {{192.168.178.2/32}}`
- Paket kaynak adreslerine dayalı bir kuralı sil:
`sudo ip rule delete from {{192.168.178.2/32}}`
- Paket hedef adreslerine dayalı bir kuralı sil:
`sudo ip rule delete to {{192.168.178.2/32}}`
- Silinen tüm kuralları temizle:
`ip rule flush`
- Tüm kuralları bir dosyaya kaydet:
`ip rule save > {{ip_kuralları.dat/dosyasının/yolu}}`
- Tüm kuralları bir dosyadan geri yükle:
`ip rule restore < {{ip_kuralları.dat/dosyasının/yolu}}`