随笔分类 - 防火墙
摘要:iptables -I INPUT -p tcp --dport 8888 -j DROPiptables -I INPUT -s 10.9.145.101 -p tcp --dport 8888 -j ACCEPTservice iptables save 参考文章: https://www.cn
阅读全文
摘要:查看一个masquerade状态,查询命令如下: firewall-cmd --query-masquerade 假如查到结果为no那么就启动它(加--permanent是永久) firewall-cmd --add-masquerade --permanent 现在准备工作好了,假如我们要把当前D
阅读全文
摘要:应用场景:项目做迁移,除了前段的nginx服务器要用外网,其他的机器都内网; 实现方法有三种: 1。nginx正向代理{不知道有啥优点,缺点是不支持https} 2。squid正向代理{比nginx好点,http和https都支持;缺点是不支持ping 域名这种形式(后端项目访问外网的时候各种超时)
阅读全文
摘要:1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 :
阅读全文