Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luci-app-passwall 9月24号更新的nftables.sh无法正常刷新nftables规则 #175

Open
norman-arch opened this issue Sep 30, 2024 · 1 comment

Comments

@norman-arch
Copy link

luci-app-passwall 9月24号更新的nftables.sh无法正常刷新nftables规则,回退到更新之前的版本可以正常刷新。

错误信息如下:

sh: 1: unknown operand
sh: 0: unknown operand
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE iifname ip:192.168.10.202 ip daddr @passwall_whitelist counter return comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT iifname ip:192.168.10.202 ip daddr @passwall_whitelist counter return comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE iifname ip:192.168.10.202 ip daddr @passwall_blocklist counter drop comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT iifname ip:192.168.10.202 ip daddr @passwall_blocklist counter drop comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 ip daddr 198.18.0.0/15 counter redirect to :1041 comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 tcp dport {22,25,53,143,465,587,853,993,995,80,443} ip daddr @passwall_shuntlist counter redirect to :1041 comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 tcp dport {22,25,53,143,465,587,853,993,995,80,443} ip daddr @passwall_blacklist counter redirect to :1041 comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 tcp dport {22,25,53,143,465,587,853,993,995,80,443} ip daddr @passwall_gfwlist counter redirect to :1041 comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 tcp dport {22,25,53,143,465,587,853,993,995,80,443} ip daddr @passwall_chnroute mark != 1 counter return comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 tcp dport {22,25,53,143,465,587,853,993,995,80,443} counter redirect to :1041 comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_NAT ip protocol tcp iifname ip:192.168.10.202 counter return comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 ip daddr 198.18.0.0/15 counter jump PSW_RULE comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 ip daddr @passwall_shuntlist counter jump PSW_RULE comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 ip daddr @passwall_blacklist counter jump PSW_RULE comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 ip daddr @passwall_gfwlist counter jump PSW_RULE comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 ip daddr @passwall_chnroute mark != 1 counter return comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 counter jump PSW_RULE comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 counter meta mark 1 tproxy ip to :1041 comment "desktop"
^
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet passwall PSW_MANGLE ip protocol udp iifname ip:192.168.10.202 counter return comment "desktop"

@norman-arch
Copy link
Author

把486行的use_interface,删掉就可以正常更新nftables规则了。
nftables sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant