mirror of
https://github.com/padavanonly/immortalwrt-mt798x-6.6.git
synced 2025-12-16 09:09:59 +00:00
Compare commits
2 Commits
9bf2f8a26a
...
ee09cf9faf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee09cf9faf | ||
|
|
82804519aa |
@ -47,6 +47,8 @@ start_service() {
|
||||
local hnat_path="/sys/kernel/debug/hnat"
|
||||
|
||||
config_get_bool "fastpath_mh_eth_hnat" "config" "fastpath_mh_eth_hnat" "1"
|
||||
echo 1 > "$hnat_path/hook_toggle"
|
||||
echo 0 > "$hnat_path/hook_toggle"
|
||||
echo "$fastpath_mh_eth_hnat" > "$hnat_path/hook_toggle"
|
||||
|
||||
if [ "$fastpath_mh_eth_hnat" -eq "1" ]; then
|
||||
|
||||
@ -2707,7 +2707,7 @@ mtk_hnat_br_nf_local_out(void *priv, struct sk_buff *skb,
|
||||
post_routing_print(skb, state->in, state->out, __func__);
|
||||
|
||||
if ((!strncmp(state->out->name, "ra0",3) || !strncmp(state->out->name, "rax0",4)) && !is_from_extge(skb) && !( FROM_GE_PPD(skb) || FROM_GE_LAN(skb) ||
|
||||
FROM_GE_WAN(skb) || FROM_WED(skb) || FROM_EXT(skb))){
|
||||
FROM_GE_WAN(skb) || FROM_WED(skb) || FROM_EXT(skb) || FROM_GE_VIRTUAL(skb))){
|
||||
if (!do_hnat_cpu_to_ge(skb))
|
||||
return NF_STOLEN;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user