Comments (1)
@gongjiehong 你好!请编辑 /etc/iptables.rules
和/或 /etc/iptables/rules.v4
(如果它存在)。在这一行 -A INPUT -p tcp --dport 22 -j ACCEPT
紧接着下面添加需要的防火墙规则。例如,打开TCP 80 和 443 端口:
-A INPUT -p tcp --dport 80 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT
保存文件并应用新的防火墙规则:
iptables-restore < /etc/iptables.rules
重启 Fail2ban:
service fail2ban restart
from setup-ipsec-vpn.
Related Issues (20)
- Doesn't work with .mobileconfig macos ios HOT 1
- 多用户使用的问题。 HOT 1
- I want to get the remote subnet HOT 1
- Clients and Users HOT 1
- [Question] With ikev2 only mode, is all the iptables rules required HOT 1
- [Question] Is it possible to assign static IPs to clients? HOT 2
- VPN not working on Iphone while using Cellular Data HOT 14
- Support for Unifi Routers in Site-to-Site mode? HOT 3
- tunnel between HOT 2
- Same configuration file for different servers HOT 1
- 【教程】Windows下的IKEv2连接后,实现仅内网请求走VPN,公网请求走客户端自身网络 HOT 2
- 我只想通过VPN访问服务器的内网,不想通过VPN访问服务器的外网,应该怎么弄呢? HOT 1
- how to configure ipsec vpn over tcp port HOT 8
- 希望能在wiki中加入IPsec-VPN迁移的相关内容 HOT 1
- Question - how to config client for not "tunnel-all" with ikev2? HOT 1
- 关于buildroot 下 4g 链接问题 HOT 2
- ios17系统版本下 使用ikev2协议进行连接有误 HOT 1
- No Internet while connected to vpn HOT 5
- Problem to Connect with l2tp windows and android HOT 1
- No internet after a while when connected to VPN HOT 4
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.