Skip to content

[feature] systemd-networkd 管理策落路由 #301

@Sving1024

Description

@Sving1024

关联或新增的页面 / related page

tproxy.md

描述 / description of the feature

使用 systemd-networkd 管理策落路由。需要在 /etc/systemd/network/ 下新建 13-tproxy.network 文件,填入以下内容:

[Match]
Name = lo

[RoutingPolicyRule]
FirewallMark = 1
Table = 100
Priority = 100
Family=both

[Route]
Table = 100 
Destination=0.0.0.0/0
Type = local

[Route]
Table = 100 
Destination=::/0
Type = local

ref: https://blog.windeye.top/blog/linux-tproxy-with-systemd-and-nftables/#systemd-networkd-shi-xian-ce-lue-lu-you

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions