[BUG]: Port forwarding 443
Droidspaces-bugreport_2026-11-24_01-28-46.tar.gz
Kernel Version
Linux localhost 4.9.148-NEO_EMUI9.1.0_RKSU_xixiaobei@Github+ #50 SMP PREEMPT Sat Nov 21 22:27:07 CST 2026 aarch64 Android
Kernel Source Link (REQUIRED)
https://github.com/xe5700/huawei_maters_4.9_emui9_ultra
Droidspaces Version
7.2.0
Rooting Method
RKSU
Device OEM & Model
Huawei Mate RS
Android Version & ROM
android 9.1
Execution Mode
Both
Networking Mode
NAT
Describe the Bug
I use a custom kernel based on 4.9.148. When I forward a port, Droidspaces adds this iptables rule:
-A PREROUTING -p tcp -m tcp --dport 443 -j DNAT --to-destination 172.28.5.1:443
This rule matches all TCP packets with destination port 443, including outbound HTTPS traffic initiated from inside the container. As a result, accessing https://www.baidu.com or any other HTTPS service from inside the container fails with "Connection refused".
Deleting the original rule restores outbound HTTPS but breaks the port forwarding, confirming the rule is both necessary and too broad in scope.
I used DeepSeek to suggest a workaround that limits the rule to the wlan0 interface:
iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 443 -j DNAT --to-destination 172.28.5.1:443
This workaround fixes the outbound HTTPS issue, but it is only a temporary fix — Droidspaces itself still generates the overly broad rule.
Steps to Reproduce
1
Logs / Screenshots
No response
Required Acknowledgments
- [x] I have verified this is not a duplicate issue.
- [x] I am using a kernel compiled strictly according to Droidspaces' official documentation.
- [x] I am NOT using a kernel with 69+ random configs, CRC nukes, or a broken ABI.
- [x] I have confirmed this issue persists in both Daemon and Direct modes.
- [ ] I admit that I am a clown for checking this box, confirming I have NOT read these rules.
- [ ] I admit I did zero research, didn't ask my AI waifu for a fix, and am dropping this here because I'm 100% sure the fault lies with Droidspaces.
Your kernel is missing a required option. From your own bugreport:
[IPT] xt_addrtype unavailable - using basic DNAT for port 22
[NET] CONFIG_BRIDGE not supported - will fallback to bridgeless NAT
With CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y, Droidspaces adds -m addrtype --dst-type LOCAL to the port forwarding rule, so it only matches traffic addressed to the phone itself and leaves the container's outbound HTTPS alone. The broad rule you are seeing is the fallback for kernels that don't have it.
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE and CONFIG_BRIDGE are both listed under the required options. Enable them, rebuild and flash your kernel. There's nothing to fix in Droidspaces, so I'm closing this.