Ask Your Question

Configuring Firewall in Fedora 18

asked 2013-06-20 23:35:28 +0000

papaj gravatar image


I am new to Fedora (just started to learn it this week) and I have managed to set up vsftpd so that my machine is an ftp server. The only problem that I am having is setting up my firewall to allow ftp. I can turn it on and ftp works but if I have to restart the machine it reverts back to being blocked and I have to set the firewall permission again. How can I permanently set the firewall to allow ftp?

Any help would be appreciated.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-06-21 01:41:23 +0000

Rabin gravatar image

If you use FirewallD then you can use the GUI utility to change the persistent Configuration. If you like to do it via the CLI, you should read the wiki page


Basically you need to copy the zone file from /lib/firewalld to /etc/firewalld and apply your changes, this file will overwrite the system configuration

edit flag offensive delete link more

answered 2013-06-21 01:42:16 +0000

mattdm gravatar image

By default, the firewall configuration works on the in-memory running state. With the firewall-cmd command-line too, add --permanent to change to configuring the permanent config (you'll need to do one of both to make the change right away _and_ across reboots).

Or, in the GUI, change the little "Current View" dropdown.

edit flag offensive delete link more


There is a step by step instruction for the firewall and for the semanage to allow the port here https://ask.fedoraproject.org/question/32852/ssh-fails-to-connect-fedora-19/?answer=32859

erik ( 2013-12-09 04:28:43 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2013-06-20 23:35:28 +0000

Seen: 5,069 times

Last updated: Jun 21 '13