Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 06-11-2013, 09:48 PM   #1
Registered: Aug 2004
Location: Philadelphia,PA
Posts: 180

Rep: Reputation: 17
Fedora 18 firewalld specify source ip

With iptables I used to be able to specify a source IP to allow through a port. For example, if I only wanted to allow ssh from

iptables -I INPUT -p tcp -s --dport 22 -j ACCEPT

I just installed Fedora 18 and learned they moved to firewalld by default so I figured when in rome...

I opened the firewall-config dialog and added some ports/services. But I can not find a way to specify a source IP.

Any help?
Old 06-17-2013, 05:14 PM   #2
Registered: Nov 2010
Posts: 57

Rep: Reputation: 24
I don't know if this will help you out but you could try editing the /etc/hosts.allow and hosts.deny file.
Old 06-18-2013, 01:49 AM   #3
Registered: Nov 2010
Posts: 57

Rep: Reputation: 24
Okay i googled some info about firewalld and here is what i came across

Direct options
The direct options are mostly for services and applications to be able to add custom rules. The rules are not saved and have to get resubmitted after reload or restart. The arguments <args> of the passthrough option are the same as the corresponding iptables, ip6tables and ebtables arguments.
Pass a command through to the firewall. <args> can be all iptables, ip6tables and ebtables command line arguments
firewall-cmd --direct --passthrough { ipv4 | ipv6 | eb } <args>
Add a new chain <chain> to a table <table>.
firewall-cmd --direct --add-chain { ipv4 | ipv6 | eb } <table> <chain>
also i found this post explaining how to disable firewalld and revert back to iptables

Last edited by slipstreamed; 06-18-2013 at 04:40 AM.


fedora, firewalld

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
firewalld sunveer Fedora 1 02-03-2013 04:41 PM
Permanent Configuration for firewalld wmakowski Fedora 1 01-24-2013 10:01 AM
LXer: Fedora 18 and Firewalld LXer Syndicated Linux News 0 09-20-2012 06:50 AM
how firewallD start on startup in fedora 17 - System Security Services Demon fails 100201 Fedora 1 07-12-2012 05:15 AM
[SOLVED] firewalld status? (Fedora gurus might know this) serafean Linux - Software 3 12-07-2011 03:02 AM

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration