Hi, I found the solution, please revise the script by command:
cat >/etc/firewall.swap_wan_in_conn_mark.sh <<EOF
#!/bin/sh
iptables-save -t mangle |sed '/_in_conn_mark/ s/-A PREROUTING/-I PREROUTING/' | iptables-restore -T mangle
EOF
Hi, I found the solution, please revise the script by command:
cat >/etc/firewall.swap_wan_in_conn_mark.sh <<EOF
#!/bin/sh
iptables-save -t mangle |sed '/_in_conn_mark/ s/-A PREROUTING/-I PREROUTING/' | iptables-restore -T mangle
EOF