This commit is contained in:
yumoqing 2025-12-04 08:07:17 +08:00
parent ad57c57dd2
commit 51c340e9a4
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ WAN_IF="eno1"
LAN_IF="enx00e04c6800ae" LAN_IF="enx00e04c6800ae"
LAN_NET="192.168.2.0/24" LAN_NET="192.168.2.0/24"
LAN_GW="192.168.2.1" LAN_GW="192.168.2.1"
LAN_IP_START="192.168.2.60"
LAN_IP_END="192.168.2.220
SOCKS5_SERVER="127.0.0.1" SOCKS5_SERVER="127.0.0.1"
SOCKS5_PORT="1080" SOCKS5_PORT="1080"

View File

@ -10,7 +10,7 @@ apt install -y dnsmasq ipset curl || true
cat >/etc/dnsmasq.d/lan.conf <<EOL cat >/etc/dnsmasq.d/lan.conf <<EOL
interface=$LAN_IF interface=$LAN_IF
bind-interfaces bind-interfaces
dhcp-range=192.168.2.100,192.168.2.200,12h dhcp-range=${LAN_IP_START},${LAN_IP_END},12h
dhcp-option=3,$LAN_GW dhcp-option=3,$LAN_GW
dhcp-option=6,$LAN_GW dhcp-option=6,$LAN_GW
server=$FOREIGN_DNS1 server=$FOREIGN_DNS1