Commit ca36f8ba authored by nanahira's avatar nanahira

gravity

parent 3e8a3ebb
restore_mark() {
OPTION=$1
MARK=$2
OUTPUT_OPTION="$OPTION"
if [[ "$OUTPUT_OPTION" -eq "-I" ]]; then
OUTPUT_OPTION="-A"
fi
iptables -t mangle "$OPTION" PREROUTING -m connmark --mark "$MARK" -j CONNMARK --restore-mark
iptables -t mangle "$OPTION" OUTPUT -m connmark --mark "$MARK" -j CONNMARK --restore-mark
# ip6tables -t mangle "$OPTION" PREROUTING -m connmark --mark "$MARK" -j CONNMARK --restore-mark
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment