LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-17-2003, 03:32 PM   #1
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Rep: Reputation: 0
Question port blocking


I'm not entirely sure that this is the correct place to post, but it seemed like it so here goes....

I am pretty new to linux in general. I am a network admin in training and i just finished setting up a DNS caching only server on my internal network, which is behind a pretty decent firewall. I would like to block all the ports that i don't need to use on my caching DNS server. Would I use iptables to set this up? I don't want anything complicated. I just want my 'firewall' to say "don't let anything in unless it's on these 6 or 7 ports". thanks.
 
Old 09-17-2003, 03:39 PM   #2
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
hmmmm not sure if I am a fan of putting a firewall on every server. If this machine is behind a firewall you may complicate things more if anyone wants to add say DHCP to this server. Lock it down and disable everything you don't need to be running.

check the stickys above for more info........
 
Old 09-19-2003, 05:48 PM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
edit /etc/services file and hash out all ports in that file EXCEPT the port you want it to listen on e.g 53 for DNS. use either netstat -a to check all ports that listening and chkconfig --list. Once services and ports have been id then disable them or remove them.

There are other ways of doing this but this should doit

chow
 
Old 09-19-2003, 08:44 PM   #4
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Quote:
Originally posted by cyph3r7
hmmmm not sure if I am a fan of putting a firewall on every server. If this machine is behind a firewall you may complicate things more if anyone wants to add say DHCP to this server. Lock it down and disable everything you don't need to be running.

check the stickys above for more info........
wow, why not put a firewall on every server? if your firewall gets cracked, then that leaves all of your other servers butt naked to an attack. firewall everything is my motto. you never put all your eggs in one basket. if they wanted to add a DHCP server to it, editing a firewall script should be easy if they are capable of adding the server.

this would especially be the case if you have clients on your network behind the firewall with you that belong to Kazaa users.

Last edited by Robert0380; 09-19-2003 at 08:46 PM.
 
Old 09-25-2003, 10:51 AM   #5
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
No kazaa, but my net admin certainly knows how to set up DHCP and how to do any firewalling and/or poking holes in our firewall as is necissary. I don't though....which is why i'm learning anyways, i am still working on this, i'll let you know if i have any more questions.
 
  


Reply



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
SQUID - Blocking port 80 tekquest Linux - Software 2 08-27-2005 06:05 AM
Port Blocking adtomar Linux - Networking 6 12-14-2004 03:35 AM
how to circumvent port blocking? zero79 Linux - Networking 1 07-03-2004 07:37 AM
Isp blocking port 25 terek Linux - Networking 4 09-05-2003 07:38 PM
port blocking EyaL Linux - Security 3 10-19-2002 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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