[GH-ISSUE #297] 如何才能让ikev2容器对接mitmproxy透明代理,实现网页抓包呢 #274

Closed
opened 2026-03-02 08:01:00 +03:00 by kerem · 4 comments
Owner

Originally created by @zeyspull on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/297

Checklist

Describe the enhancement request
A clear and concise description of your enhancement request.

Is your enhancement request related to a problem? Please describe.
(If applicable) A clear and concise description of what the problem is.

Additional context
Add any other context about the enhancement request here.

Originally created by @zeyspull on GitHub (Jun 13, 2022). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/297 **Checklist** - [x] I searched existing [Issues](https://github.com/hwdsl2/setup-ipsec-vpn/issues?q=is%3Aissue), and did not find a similar enhancement request - [x] This enhancement request is about the VPN setup scripts, and not IPsec VPN itself - [x] I read the [README](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md) - [x] I read the [Important notes](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md#important-notes) - [x] I followed instructions to [configure VPN clients](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md#next-steps) - [x] I checked [Troubleshooting](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#troubleshooting) and [VPN status](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#check-logs-and-vpn-status) **Describe the enhancement request** A clear and concise description of your enhancement request. **Is your enhancement request related to a problem? Please describe.** (If applicable) A clear and concise description of what the problem is. **Additional context** Add any other context about the enhancement request here.
kerem closed this issue 2026-03-02 08:01:00 +03:00
Author
Owner

@zeyspull commented on GitHub (Jun 13, 2022):

成功运行容器,并采用ikev2协议和手机建立了连接。我希望在服务器端运行mitmproxy进行透明代理,但是通过dcpdump查看docker的端口,发现是随机的,通过iptables把所有tcp端口转发到mitmproxy的8080端口后,不起作用,mitmproxy提示Cannot connect to server, no server address given。希望您能写一下如何对接起来,实现中间人抓包

<!-- gh-comment-id:1154055607 --> @zeyspull commented on GitHub (Jun 13, 2022): 成功运行容器,并采用ikev2协议和手机建立了连接。我希望在服务器端运行mitmproxy进行透明代理,但是通过dcpdump查看docker的端口,发现是随机的,通过iptables把所有tcp端口转发到mitmproxy的8080端口后,不起作用,mitmproxy提示Cannot connect to server, no server address given。希望您能写一下如何对接起来,实现中间人抓包
Author
Owner

@zeyspull commented on GitHub (Jun 13, 2022):

查了很多资料没有找到[Libreswan]如何转发隧道中的流量的。

<!-- gh-comment-id:1154055611 --> @zeyspull commented on GitHub (Jun 13, 2022): 查了很多资料没有找到[Libreswan]如何转发隧道中的流量的。
Author
Owner

@hwdsl2 commented on GitHub (Jun 13, 2022):

@zeyspull 你好!这个我也不太懂,所以无法提供有用的建议。你可以到相关的社区问一下?Libreswan 的问题的话,可以到邮件列表提问:
https://lists.libreswan.org/mailman/listinfo/swan

<!-- gh-comment-id:1154060402 --> @hwdsl2 commented on GitHub (Jun 13, 2022): @zeyspull 你好!这个我也不太懂,所以无法提供有用的建议。你可以到相关的社区问一下?Libreswan 的问题的话,可以到邮件列表提问: https://lists.libreswan.org/mailman/listinfo/swan
Author
Owner

@aogg commented on GitHub (Jun 25, 2023):

+1有解决方案吗

<!-- gh-comment-id:1605886189 --> @aogg commented on GitHub (Jun 25, 2023): +1有解决方案吗
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#274
No description provided.