LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-22-2017, 05:15 PM   #1
Melete
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:
ssh
samba
httpd

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

Rep: Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration