fix(mitmproxy): Change default proxy port from 8080 to 8888

Port 8080 conflicts with CrowdSec API. Using 8888 as default.

Also removes --flow-detail option not available in latest mitmproxy.

Bump release to r10.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-01-17 08:35:51 +01:00
parent e5f5b9160b
commit a530e8abd6
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-mitmproxy
PKG_RELEASE:=9
PKG_RELEASE:=10
PKG_VERSION:=0.4.0
PKG_ARCH:=all
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
@ -60,10 +60,10 @@ define Package/secubox-app-mitmproxy/postinst
echo " /etc/init.d/mitmproxy start"
echo ""
echo "Web interface: http://<router-ip>:8081"
echo "Proxy port: 8080"
echo "Proxy port: 8888"
echo ""
echo "To use the proxy, configure clients with:"
echo " HTTP Proxy: <router-ip>:8080"
echo " HTTP Proxy: <router-ip>:8888"
echo " Install CA cert from: http://<router-ip>:8081/cert"
echo ""
}

View File

@ -1,7 +1,7 @@
config mitmproxy 'main'
option enabled '0'
option runtime 'lxc'
option proxy_port '8080'
option proxy_port '8888'
option web_port '8081'
option web_host '0.0.0.0'
option data_path '/srv/mitmproxy'

View File

@ -37,7 +37,7 @@ Modes (configure in /etc/config/mitmproxy):
reverse - Reverse proxy mode
Web Interface: http://<router-ip>:8081
Proxy Port: 8080
Proxy Port: 8888
EOF
}
@ -54,7 +54,7 @@ uci_get_list() { uci -q get ${CONFIG}.$1 2>/dev/null; }
# Load configuration with defaults
load_config() {
# Main settings
proxy_port="$(uci_get main.proxy_port || echo 8080)"
proxy_port="$(uci_get main.proxy_port || echo 8888)"
web_port="$(uci_get main.web_port || echo 8081)"
web_host="$(uci_get main.web_host || echo 0.0.0.0)"
data_path="$(uci_get main.data_path || echo /srv/mitmproxy)"
@ -321,7 +321,7 @@ cd /data
# Read environment variables for configuration
MODE="${MITMPROXY_MODE:-regular}"
PROXY_PORT="${MITMPROXY_PROXY_PORT:-8080}"
PROXY_PORT="${MITMPROXY_PROXY_PORT:-8888}"
WEB_PORT="${MITMPROXY_WEB_PORT:-8081}"
WEB_HOST="${MITMPROXY_WEB_HOST:-0.0.0.0}"
ADDON_SCRIPT="${MITMPROXY_ADDON_SCRIPT:-}"