Skip to content

Commit

Permalink
fix: ipv6 tproxy iproute rule
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mory <morytyann@outlook.com>
  • Loading branch information
morytyann committed Feb 23, 2025
1 parent e91acf2 commit a604ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikki/files/nikki.init
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ service_started() {
fi
if [ "$ipv6_proxy" == 1 ]; then
ip -6 route add local default dev lo table "$TPROXY_ROUTE_TABLE"
ip -4 rule add pref "$TPROXY_RULE_PREF" fwmark "$TPROXY_FW_MARK" table "$TPROXY_ROUTE_TABLE"
ip -6 rule add pref "$TPROXY_RULE_PREF" fwmark "$TPROXY_FW_MARK" table "$TPROXY_ROUTE_TABLE"
fi
fi
if [ "$tun_enable" == 1 ]; then
Expand All @@ -239,7 +239,7 @@ service_started() {
fi
if [ "$ipv6_proxy" == 1 ]; then
ip -6 route add unicast default dev "$tun_device" table "$TUN_ROUTE_TABLE"
ip -4 rule add pref "$TUN_RULE_PREF" fwmark "$TUN_FW_MARK" table "$TUN_ROUTE_TABLE"
ip -6 rule add pref "$TUN_RULE_PREF" fwmark "$TUN_FW_MARK" table "$TUN_ROUTE_TABLE"
fi
$FIREWALL_INCLUDE_SH
fi
Expand Down

0 comments on commit a604ca7

Please sign in to comment.