LinuxQuestions.org
Visit Jeremy's Blog.
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 10-29-2004, 11:03 AM   #1
imsam
Member
 
Registered: Dec 2003
Posts: 64

Rep: Reputation: 15
Question Newbie needs help configuring iptables


Hi,

I'm setting up a DNS server using Scientific Linux and I would like it to be very secure. It should only accept DNS queries, zone transfers. I should also be able to connect to my server using putty.

I'd appreciate some pointers on how to achieve this.
 
Old 10-30-2004, 07:05 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
This would be really simple, I ripped it from "The best damn firewall book...."


IPTABLES -P INPUT DROP
IPTABLES -F INPUT
IPTABLES -P OUTPUT DROP
IPTABLES -F OUTPUT
IPTABLES -X
IPTABLES -Z
IPTABLES -N drop-and-log-it
IPTABLES -A drop-and-log-it -j LOG --log-level info
IPTABLES -A drop-and-log-it -j DROP
IPTABLES A INPUT s 0/0 d 0/0 p tcp dport 53 j ACCEPT
IPTABLES A INPUT s 0/0 d 0/0 p udp dport 53 j ACCEPT
IPTABLES A INPUT s 0/0 d 0/0 p tcp dport 22 j ACCEPT

This is in no way "very secure", this would represent the minimal firewall that I can think up at 5 in the morning. I'd suggest buy that book, or another but I like how that one is laid out. Its more like a pocket reference.

Last edited by musicman_ace; 10-30-2004 at 07:09 AM.
 
  


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
Configuring iptables at start up gezzam Mandriva 2 03-24-2005 02:12 AM
Help configuring iptables needed. Fenster Linux - Newbie 7 09-15-2004 03:26 PM
need help configuring IPTables to allow Samba through Hockeyfan Linux - Networking 2 05-31-2004 10:47 PM
configuring IPtables e1000 Slackware 8 11-09-2003 03:51 AM
Configuring IPTABLES goldfish Linux - Newbie 6 10-15-2003 05:14 PM

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

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