Sut i sefydlu iptables i adfer yn awtomatig ar reboot yn CentOS Linux?
Ar ôl sefydlu'r iptables reolau yn eu gwirio!
iptables -S
Ar y cam hwn dylai rheolau eich iptables yn dangos.
Mae angen i gael eu gosod fel gwasanaeth iptables nesaf ac yna mae angen dechrau ar ailgychwyn y gwasanaeth iptables. Yna, mae angen eu hachub fel eu bod yn parhau ar reboot rheolau
Newid i'r gwraidd
ei
Gosod 'iptables-wasanaethau’ pecyn
iym gosod iptables-wasanaethau
Galluogi iptables fel gwasanaeth system
systemctl galluogi iptables
Galluogi gwasanaeth iptables i ddechrau ar startup system
systemctl dechrau iptables
Achub y rheolau iptables
iptables gwasanaeth yn arbed
Ail gychwyn y system CentOS Linux a gwirio bod y rheolau iptables yn parhau.
