firefox-proxy-setup.sh•1.02 kB
#!/bin/bash
# Firefox Proxy Setup Script
# Generated by Web Proxy MCP Server
echo "Setting up Firefox with proxy configuration..."
# Create temporary Firefox profile
PROFILE_DIR="/tmp/firefox-proxy-profile"
mkdir -p "$PROFILE_DIR"
# Write proxy preferences
cat > "$PROFILE_DIR/user.js" << 'EOF'
// Firefox proxy preferences
// Generated by Web Proxy MCP Server
user_pref("network.proxy.type", 2); // Use PAC
user_pref("network.proxy.autoconfig_url", "http://172.21.255.3:8080/proxy.pac");
user_pref("network.proxy.autoconfig_retry_interval_min", 5);
user_pref("network.proxy.autoconfig_retry_interval_max", 300);
// Optional: Disable DNS over HTTPS for proxy testing
user_pref("network.trr.mode", 5);
// Monitoring 4 domains through proxy
// Proxy server: 172.21.255.3:8080
EOF
echo "Starting Firefox with proxy profile..."
firefox --profile "$PROFILE_DIR" --new-instance
echo "Firefox started with proxy configuration"
echo "Profile directory: $PROFILE_DIR"
echo "PAC URL: http://172.21.255.3:8080/proxy.pac"