[ IP forward ] with Android 4.0 don't work


http://stackoverflow.com/questions/11109215/ip-forward-with-android-4-0-dont-work


Il test a man in the middle attack (mitm) in wireless with a smartphone (HTC One X) and 2 computers. With the smartphone, the arp cache poisoning has correctly corrupted my 2 computers.

For the forwarding I have juste put "1" in /proc/sys/net/ipv4/ip_forward. But ip forward don't work.

Shark sniffed in my smartphone, I sent packets with a computer, they are well arrived at my smartphone but they are not redirected to my other computeur.

Is there any others solutions for ip forwarding with android 4.0 ?


I know it's very late for it but i had this same problem. I had fixed it now. Link to answer: superuser.com/a/985733/505719 – krystian71115 Oct 12 '15 at 19:48


echo "1" > /proc/sys/net/ipv4/ip_forward

iptables -F -t filter

iptables -P FORWARD ACCEPT


Android 4.4.4

Kernel: 3.4.67



posted @   张同光  阅读(82)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示