Ask Your Question

Configuring Firewall in Fedora 18

asked 2013-06-20 18:35:28 -0500

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-20 20:41:23 -0500

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-20 20:42:16 -0500

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

erik gravatar imageerik ( 2013-12-08 22:28:43 -0500 )edit

Question Tools

1 follower


Asked: 2013-06-20 18:35:28 -0500

Seen: 5,174 times

Last updated: Jun 20 '13