This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 混合端口 HTTP和SOCKS5用一个端口 | |
mixed-port: 7890 | |
# HTTP 代理端口 | |
# port: 7890 | |
# SOCKS5 代理端口 | |
socks-port: 7891 | |
# Linux 和 macOS 的 redir 代理端口 (如需使用此功能,请取消注释) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |