mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			405 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			405 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| INTERFACE="$1"
 | |
| multipathip=$(dig +short A multipath-tcp.org | tr -d "\n")
 | |
| ipset add ss_rules_dst_bypass_all $multipathip > /dev/null 2>&1
 | |
| if [ -z "$INTERFACE" ]; then
 | |
| 	tracebox -v -j -m 10 -p IP/TCP/MSS/MPCAPABLE/WSCALE multipath-tcp.org
 | |
| else
 | |
| 	tracebox -v -j -m 10 -i $INTERFACE -p IP/TCP/MSS/MPCAPABLE/WSCALE multipath-tcp.org
 | |
| fi
 | |
| ipset del ss_rules_dst_bypass_all $multipathip > /dev/null 2>&1
 |