LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-30-2005, 11:57 AM   #1
Hangetsu
LQ Newbie
 
Registered: Nov 2005
Location: Pennsylvania, USA
Distribution: openSuSE 10
Posts: 27

Rep: Reputation: 15
Quick Template to Lock Down iptables


I took a look for something like the title, but only found specific questions on iptables; If something like what I'm about to ask for already exists on the forums, I apologize in advance.

I'm planning for the near-future to only run a desktop version of SuSE 10 Linux -- No server services, etc. Is there a quick template I could use to set up my ipTables to only allow connections that I initiate? While I know Linux can be more secure than Windows, I knew alot more about locking down Windows than I do Linux!

Thanks for the help!
 
Old 11-30-2005, 04:37 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Code:
IPTABLES=/sbin/iptables

$IPTABLES -P INPUT DROP
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT DROP
$IPTABLES -F OUTPUT

$IPTABLES -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A INPUT -j DROP

$IPTABLES -A OUTPUT -o lo -j ACCEPT
$IPTABLES -A OUTPUT -j DROP
Should do it I think...
 
  


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
Template class with a template member... Nicholas Bishop Programming 3 02-21-2005 08:27 PM
IPTABLES - Need to lock my firewall down R4z0r Linux - Security 1 09-01-2004 05:27 PM
quick iptables question peok Linux - Networking 6 11-11-2003 02:34 PM
Quick iptables question... FlyingMoose Linux - Networking 2 08-01-2003 11:35 PM
Quick Iptables question moger Linux - General 1 01-01-2003 02:23 PM

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

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