2018-08-06 14:20:15 +00:00
|
|
|
#!/bin/sh
|
2018-08-07 14:48:37 +00:00
|
|
|
INTERFACE="$1"
|
|
|
|
multipathip=$(dig +short A multipath-tcp.org | tr -d "\n")
|
2018-09-19 21:08:07 +00:00
|
|
|
ipset add ss_rules_dst_bypass_all $multipathip > /dev/null 2>&1
|
2021-01-16 07:12:03 +00:00
|
|
|
multipathip6=$(dig +short AAAA multipath-tcp.org | tr -d "\n")
|
|
|
|
ipset add ss_rules6_dst_bypass_all $multipathip6 > /dev/null 2>&1
|
2018-08-07 14:48:37 +00:00
|
|
|
if [ -z "$INTERFACE" ]; then
|
|
|
|
tracebox -v -n -p IP/TCP/MSS/MPCAPABLE/WSCALE multipath-tcp.org
|
|
|
|
else
|
|
|
|
tracebox -v -i $INTERFACE -n -p IP/TCP/MSS/MPCAPABLE/WSCALE multipath-tcp.org
|
|
|
|
fi
|
2018-09-19 21:08:07 +00:00
|
|
|
ipset del ss_rules_dst_bypass_all $multipathip > /dev/null 2>&1
|
2021-01-16 07:12:03 +00:00
|
|
|
ipset del ss_rules6_dst_bypass_all $multipathip6 > /dev/null 2>&1
|