태랑
|
|
[업데이트] 최근 버전에서는 iptables 대신에 firewalld 로 사용 되고 있습니다.
firewalld 에 대한 내용은 아래 링크 글을 참조하시기 바랍니다.
페도라 리눅스 방화벽 firewalld 설정 제어하기
참고한 결과 아래와 같이 하라고 확인되네요
/usr/libexec/iptables.init save
Rules created with the iptables command are stored in memory.
If the system is restarted before saving the iptables rule set, all rules are lost.
For netfilter rules to persist through a system reboot, they need to be saved.
To save netfilter rules, type the following command as root:
/usr/libexec/iptables.init save
This executes the iptables init script, which runs the /sbin/iptables-save program
and writes the current iptables configuration to /etc/sysconfig/iptables.
The existing /etc/sysconfig/iptables file is saved as /etc/sysconfig/iptables.save.
The next time the system boots, the iptables init script reapplies the rules saved in /etc/sysconfig/iptables by using the /sbin/iptables-restore command.
While it is always a good idea to test a new iptables rule before committing it to the /etc/sysconfig/iptables file,
it is possible to copy iptables rules into this file from another system's version of this file. This provides a quick way to distribute sets of iptables rules to multiple machines.
안되신다면 다시 질문주세요
Ref Link
http://docs.fedoraproject.org/en-US/Fedora/18/html/Security_Guide/sect-Security_Guide-IPTables-Saving_IPTables_Rules.html
오픈소스를 응원합니다 Blog https://hoing.io
Senior Database Administrator(MySQL, Oracle)
사이트 이용 문의 사항은 댓글이나 admin@fedoralinux.or.kr 로 메일주세요