Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 08-22-2017, 05:15 PM   #1
LQ Newbie
Registered: Aug 2017
Posts: 4

Rep: Reputation: Disabled
domain blocking for services

so most services have a way to block domains in their main config files. is it better to do this in the service config file such as httpd.conf, or in hosts.allow/ hosts.deny? Does it make a difference?

asking about services such as:

Old 08-23-2017, 04:36 AM   #2
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,689

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Better off using a firewall such as IPTABLES and then you can block before the connection even gets as far as the service.

It's also much easier to do this with firewall rules than to try to remember which service uses which file.


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
Blocking domains in services Melete Linux - Newbie 2 08-22-2017 06:01 PM
Blocking certain MAC Address from accessing services kumawat10 Linux - Security 4 12-01-2011 09:19 PM
Problem with system services on opensuse 11.1 - blocking occurs during init sternocera Linux - Software 0 05-11-2010 01:16 PM
which is the best daemon for blocking services in linux danykallery Linux - Networking 1 10-07-2006 04:23 AM
router blocking access to services openbysource Linux - Networking 3 02-18-2006 01:09 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:18 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