Comments (1)
@Mick-Mi 你好!对于你的用例,在手机连接到本地 Linux 上搭建的 IKEv2 VPN 时,手机的流量相当于是从该 Linux 服务器的 IP 发出的。在你配置端口回流时,源地址需要包括该 Linux 服务器的 IP。
另外也有可能是 VPN 服务器的 IPTables 规则阻止了该流量。你可以这样测试。首先在服务器上运行:
iptables -D FORWARD -j DROP
这样会允许所有转发的流量。然后断开并重新连接客户端。测试端口回流。
如果测试后端口回流仍然不工作,则很可能不是服务器端的问题。
如果测试后端口回流工作,你可以添加一个 LOG 规则来记录被禁止的流量。
iptables -A FORWARD -j LOG
重新测试后,使用 dmesg 命令查看 IPTables 防火墙记录,并将合适的允许规则添加到 FORWARD chain。
在测试完成后,恢复删除的规则以提高安全性:
iptables -A FORWARD -j DROP
from setup-ipsec-vpn.
Related Issues (20)
- 客户端互ping不通 HOT 1
- Unable to Connect to Ikev2 protocol HOT 1
- Increase maximum no of simultansous connections using same ikev2 file HOT 5
- Can I generate files while adding a new user for ikev2 with encryption algorithm ed448 or ed25519? HOT 1
- Can I use nftables instead of iptables HOT 1
- 目前手机是华为鸿蒙4.0系统,可以使用华为手机自带vpn连接不,不使用第三方vpn HOT 1
- OpenVPN overs IKEv2 slow HOT 1
- Error: Connection activation failed: The 'strongswan' plugin only supports a single active connection. HOT 2
- Windows客户端使用IKEv2连接成功一两个小时出现无法ping通,断开重连后恢复 HOT 1
- 【解决方案】Windows客户端IKEv2连接一段时间后丢失连接 HOT 2
- in ikev2setup.sh shouldn't this use openssl sha2 HOT 2
- 没事了
- Renew revoked or expired certificate HOT 1
- apt-get Install Failed HOT 2
- Telegram notification HOT 1
- It doesn't seem to work with GCP HOT 3
- ipsec.conf obsolete keyword dpdaction and fail2ban conf warning HOT 1
- Enable PFS for LT2P IPSEC HOT 3
- How many clients that many config files (not all clients want same dns servers)? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-ipsec-vpn.