LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

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

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 10.0.0.3

iptables -I INPUT -p tcp -s 10.0.0.3 --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
slipstreamed
Member
 
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
slipstreamed
Member
 
Registered: Nov 2010
Posts: 57

Rep: Reputation: 24
Okay i googled some info about firewalld and here is what i came across
from https://fedoraproject.org/wiki/FirewallD

Quote:
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.
Quote:
Pass a command through to the firewall. <args> can be all iptables, ip6tables and ebtables command line arguments
Code:
firewall-cmd --direct --passthrough { ipv4 | ipv6 | eb } <args>
Quote:
Add a new chain <chain> to a table <table>.
Code:
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
http://pantestmb.blogspot.in/2013/04...d-install.html

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


Reply

Tags
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:15 PM.

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