插入1拒绝任何不工作

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 xxxx/24 gateway xxxx # Private network iface eth0 inet static address 192.168.133.174/17 

这里的iptables -L : http : //pastie.org/9432829