Ubuntu ufw:基于每个接口设置规则

我想创建一个规则,允许eth1上的任何人访问端口80. UFW可以执行此操作还是应该返回使用Shorewall?

澄清:这是一个能力问题,可以将接口作为目标来处理吗?

我终于阅读了手册页:
By default,ufw will apply rules to all available interfaces. To
limit  this,specify DIRECTION on INTERFACE,where DIRECTION is
one of in or out (interface aliases  are  not  supported).   For
example,to  allow  all  new incoming http connections on eth0,use:

ufw allow in on eth0 to any port 80 proto tcp

详细说明答案是肯定的,ufw可以将界面用作目标.我的特殊规则看起来像这样:

ufw allow in on eth1 to [eth1 ip addr] port 80 proto tcp

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...