From b51ae4c069b8bca22c7a1819228734cb7f66cb11 Mon Sep 17 00:00:00 2001 From: SunBK201 Date: Wed, 30 Oct 2024 22:24:33 +0800 Subject: [PATCH] update readme --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 10a523f..fb2fe64 100644 --- a/README.md +++ b/README.md @@ -126,16 +126,16 @@ rules: ## Extra -使用 nftables 固定 TTL 为 64: +> [!TIP] +> 使用 nftables 固定 TTL 为 64: +> ```sh +> nft add table inet ttl64 +> nft add chain inet ttl64 postrouting { type filter > hook postrouting priority -150\; policy accept\; } +> nft add rule inet ttl64 postrouting counter ip ttl > set 64 +> ``` -```sh -nft add table inet ttl64 -nft add chain inet ttl64 postrouting { type filter hook postrouting priority -150\; policy accept\; } -nft add rule inet ttl64 postrouting counter ip ttl set 64 -``` - -使用 iptables 固定 TTL 为 64: - -```sh -iptables -t mangle -A POSTROUTING -j TTL --ttl-set 64 -``` +> [!TIP] +> 使用 iptables 固定 TTL 为 64: +> ```sh +> iptables -t mangle -A POSTROUTING -j TTL --ttl-set > 64 +> ```