Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to install CentOS 6.3 via Windows Deployment Server. And to automate the installation process I used kickstart file in which i provided various details required during installation.Then i wanted that machine to serve as mysql server that can be only accessed via ssh or mysql process,so i wanted to give the firewall rules via iptables. I have verified that these are correct and tested on existing machine.So I gave these these rules in %post section of the kickstart file ....but i encounted the following error “can’t initialize iptables ‘filter’: Table does not exist” .I have also taken care of the chroot environment but still the problem persisted.

share|improve this question

You want to provide the following lines in the kickstart file:

firewall --enable --ssh --port=mysql:tcp

The %post section only does things during the installation process. You should let the install finish and reboot the machine and that firewall line should set the firewall rules for the box to allow only ssh and mysql (port 3306).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.