Skip to content

Instantly share code, notes, and snippets.

View magicwenli's full-sized avatar
😈
Focusing

magicWenli magicwenli

😈
Focusing
View GitHub Profile
# 混合端口 HTTP和SOCKS5用一个端口
mixed-port: 7890
# HTTP 代理端口
# port: 7890
# SOCKS5 代理端口
socks-port: 7891
# Linux 和 macOS 的 redir 代理端口 (如需使用此功能,请取消注释)
@magicwenli
magicwenli / iperf3_loopback.sh
Created March 6, 2023 01:02 — forked from pkorpine/iperf3_loopback.sh
Create external loopback between two network interfaces
#!/bin/sh
# Scripted from http://serverfault.com/questions/127636/force-local-ip-traffic-to-an-external-interface
DEV_0="ens6f0"
DEV_1="ens6f1"
MAC_0=`ifconfig ${DEV_0}|awk 'NR==1 {print $5}'`
MAC_1=`ifconfig ${DEV_1}|awk 'NR==1 {print $5}'`
IP_0="192.168.100.1"
IP_1="192.168.101.1"
FAKE_0="192.168.102.1"