ufw insert 1 deny to any
ufw enable
ufw status
状态输出:
Status: active
Logging: on (high)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
Anywhere DENY IN Anywhere
Anywhere (v6) DENY IN Anywhere (v6)
然而我几乎可以从任何我想要的地方入侵服务器...这是怎么回事?
这是一台没有安装任何其他东西的 Ubuntu 14.04 服务器上的配置。以下是文件,/etc/network/interfaces
希望对您有帮助:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x/24
gateway x.x.x.x
# Private network
iface eth0 inet static
address 192.168.133.174/17
下面是iptables -L
:http://pastie.org/9432829