时间:2023-07-27 17:54:01 | 来源:网站运营
时间:2023-07-27 17:54:01 来源:网站运营
基于MIXBOX的IPv6建站(实现建站自由):ip6tables -Fip6tables -Xip6tables -P INPUT ACCEPTip6tables -P OUTPUT ACCEPTip6tables -P FORWARD ACCEPT
sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/monlor/mbfiles/install.sh)" && source /etc/profile &> /dev/null
sh -c "$(curl -kfsSl https://raw.githubusercontent.com/monlor/mbfiles/master/install_github.sh)" && source /etc/profile &> /dev/null
sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/monlor/mbfiles/install_ghcdn.sh)" && source /etc/profile &> /dev/null
sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/monlor/mbfiles/update.sh)" && source /etc/profile &> /dev/null
sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/monlor/MIXBOX/apps/mixbox/scripts/uninstall.sh)" && source /etc/profile &> /dev/null
applist installed -n | while read line; do mixbox upgrade $line; done
mixbox help
/|--- /etc/mixbox| |--- /apps/ --- 插件安装目录| |--- /config/ --- 工具箱配置文件目录| |--- /scripts/ --- 工具箱脚本目录| |--- /mbdb/ --- 工具箱数据文件目录| |--- /var/ --- 工具箱运行pid及日志存放目录|--- /tmp| |--- /messages --- 系统日志,工具箱日志|--- /userdisk| |--- /data/ --- 硬盘目录|--- /extdisks/| |--- /sd*/ --- 外接盘目录
ifconfig
mixbox
cd /etc/mixbox/apps/frps/scriptsvim frps.sh
可以看到如下的文件#!/bin/sh #copyright by monlorsource /etc/mixbox/bin/baseeval `mbdb export frps`open_ports() { [ -n "${port}" ] && open_port ${port} [ -n "$udp_port" ] && open_port $udp_port [ -n "$http_port" ] && open_port $http_port [ -n "$https_port" ] && open_port $https_port [ -n "$dashboard_port" ] && open_port $dashboard_port}start() { [ -n "$(pidof ${appname})" ] && logsh "【$service】" "${appname}已经在运行!" && exit 1 logsh "【$service】" "正在启动${appname}服务... " # cru a "${appname}" "0 6 * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart" # Scripts Here open_ports write_firewall_start cat > ${mbroot}/apps/${appname}/config/${appname}.conf <<-EOF[common]bind_addr = [::]bind_port = ${port}bind_udp_port = $udp_port`[ "$kcp" = '1' ] && echo "kcp_bind_port = ${port}"`vhost_http_port = $http_portvhost_https_port = $https_portdashboard_addr = [::]`[ "$dashboard" = '1' ] && echo "dashboard_port = $dashboard_port"``[ "$dashboard" = '1' ] && echo "dashboard_user = $dashboard_user"``[ "$dashboard" = '1' ] && echo "dashboard_pwd = $dashboard_pwd"`log_file = /var/log/${appname}.loglog_level = infolog_max_days = 3token = $token#max_pool_count = 5#max_ports_per_client = 0#authentication_timeout = 900`[ -n "$subdomain" ] && echo "subdomain_host = $subdomain"`tcp_mux = trueEOF daemon ${mbroot}/apps/${appname}/bin/${appname} -c ${mbroot}/apps/${appname}/config/${appname}.conf if [ $? -ne 0 ]; then logsh "【$service】" "启动${appname}服务失败!" else logsh "【$service】" "启动${appname}服务完成!" fi }stop() { logsh "【$service】" "正在停止${appname}服务... " [ "$enable" == '0' ] && destroy close_port remove_firewall_start killall -9 ${appname} &> /dev/null }destroy() { # End app, Scripts here # cru d "${appname}" return}end() { mbdb set $appname.main.enable=0 stop && exit 1}status() { if [ -n "$(pidof ${appname})" ]; then status="运行端口号:${port}|1" else status="未运行|0" fi mbdb set $appname.main.status="$status" }case "$1" in start) start ;; stop) stop ;; restart) stop; start ;; reload) close_port && open_ports ;; status) s
注意修改的内容如下(已经标红)bind_addr = [::]dashboard_addr = [::]
如果上述配置没有生效,则修改为(因为FRPS版本不同导致)bind_addr = :: dashboard_addr = ::
这样我们就成功修改了配置脚本sysctl -w net.mptcp. net.mptcp.mptcp_path_manager=fullmesh
chmod 777 /sys/module/mptcp_fullmesh/parameters/num_subflows gedit /sys/module/mptcp_fullmesh/parameters/num_subflows#修改值为3(3条子流)
关键词:自由,实现