LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-25-2015, 04:26 AM   #1
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Rep: Reputation: Disabled
Selecting the correct firewalld zone


Hello all,

I am using centos7 and therefore firewalld is my new best friend. I have been looking at the mening of what each zone is for. the definitions I've found are:

Quote:
drop - incoming network packets are dropped, with no reply, only outgoing network connections are possible
block - incoming network connections are rejected with an icmp-host-prohibited message, only network connections initiated within this system are possible.
public - For use in areas where you do not trust the other computers to not harm your computer, only selected incoming connections are accepted.
external - For use on external networks with masquerading enabled especially for routers, you do not trust the other computers to not harm your computer, only selected incoming connections are accepted
dmz - For computers in your demilitarized zone that are publicly-accessible with limited access to your internal network, only selected incoming connections are accepted.
work/home/internal - you mostly trust the other computers on network to not harm your computer, only selected incoming connections are accepted
trusted - all network connections are accepted
With that said,
I am trying to configure a splunk app (splice) to connect to mongodb on the same localhost, but i am getting the following error:
Code:
06-25-2015 09:45:58.466 +0100 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/SA-Splice/bin/taxii.py" ERRORcould not connect to 127.0.0.1:27017: [Errno 111] Connection refused
Which suggests to me i have my firewall incorrectly configured, atm the rule i am using is:

Code:
firewall-cmd --zone=internal --add-port=27017/tcp --add-source-127.0.0.1
Is it possible i am using the wrong zone?
Should i perhaps use trusted and specify 127.0.0.1?
 
Old 06-25-2015, 05:03 AM   #2
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Original Poster
Rep: Reputation: Disabled
Thumbs up

Solved... the firewall rules were correct, turns out it was a mongodb problem.
 
  


Reply


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
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
Help in selecting the correct Linux platform? sanjay_2001 Linux - Software 9 07-01-2011 11:17 AM
mplayer not selecting correct audio cormack Linux - Software 1 11-06-2007 09:50 PM
selecting the correct chipset on kernel configuration ttilt Linux - Software 5 11-28-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:23 AM.

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
Open Source Consulting | Domain Registration