最近VPSのOSをcentos7にしたのだが、なかなか手付かずでiptablesの設定も放置していた… (sshの最低限の設定はしていたが、ほんとうに良くない…) 久しぶりに手が空いたので設定するかーと思いきや まず/etc/sysconfig/iptablesがないし... Cent7からのsystemctlでiptablesのサービスを確認してもでてこないし… # systemctl status iptables iptables.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) というわけで、調べてみると、まずiptables.serviceをインスールしないといけないとのこと。 そして、centos7からはfirewalldがデフォルトでオンになっているからオ
![CentOS7, iptables設定でハマった - Goldstine研究所](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)