LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-03-2009, 08:41 AM   #1
qwefgh
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
iptables problem


Hi there! I new in Linux, I have a Centos5 since sunday and well I have to configure the iptables security of this cpu, I read a lot of examples of iptables in the internet and also anothers Thread from here but Really a don't know what to do, I saw lots of codes but firts of all I don't know where I have to write that and my teacher don't want to help me in this homework, if you could tell me what to do step by step I would be really grateful.

I tried to write the codes in applications --> accessories --> Terminal

but it seems that isn't there, thanks in advance!
 
Old 03-03-2009, 12:57 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,910

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Quote:
Originally Posted by qwefgh View Post
...in this homework...
You will be aware that the statute of limitations for this site says that any answer to a homework question can be misleading, funny and/or educational but must not be something the the OP can submit for marks (paraphrasing a lot)?

Quote:
I tried to write the codes in applications --> accessories --> Terminal
I don't know why you think it should be, unless you are thinking of some other operating system? Thinking of another operating system is often unhelpful.

Quote:
...in this homework...
Does that rule out using an 'easy' (well, graphical) front-end to iptables? There is no end of them, and some education can be gleaned by spelunking (looking through) the code that they produce?

What about 'apropos iptables'? Does that give you any clues as to things you might want to look through with 'man'? (Extra clue: start on 'save' and 'restore' before 'man iptables' itself; they should take you a bit further on your quest for knowledge, particularly the bit about instantiating and removing rule sets.)

My suspicion is that when you have looked through these, you will have a better idea about putting in place and removing rule sets, but little idea about appropriate rules. If that is true and if you can show some specific example of the confusion you are now in, ask again.
 
Old 03-03-2009, 01:22 PM   #3
qwefgh
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for answering salasi I didn't know that rule, This is a homework but no for my school, a brother of a friend gave it to me (he is my teacher in programming because I want it to learn).

The best code I found was this one and is very well explained but i don't know WHERE I have to write it.

Another thing for example is that all the lines in that link have # (it's mean a comment if I'm not mistaken)

http://www.sns.ias.edu/~jns/files/iptables_ruleset

another useful link was:

http://www.knowplace.org/pages/howto...le_options.php
 
Old 03-04-2009, 12:40 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,910

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Quote:
Originally Posted by qwefgh View Post

Another thing for example is that all the lines in that link have # (it's mean a comment if I'm not mistaken)
No they don't; a clear majority do have # characters, and they are comments (you could call this 'well commented'); the remainder don't and they actually do the work. This is a bash script and could be reside in almost any directory and be run; if you want it to run every time your computer starts up, you need to look at what your distro does for that.
to be honest, an installing iptables page probably isn't what you need right now. Try
http://forums.pcper.com/showthread.php?t=432469
or
http://www.higherpass.com/linux/Tuto...tables-Primer/
or
http://artoflinux.blogspot.com/2008/...beginners.html
or
http://www.linuxhomenetworking.com/w...Using_iptables
or even
http://iptables-tutorial.frozentux.n...-tutorial.html
if you want the works.
 
  


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
Strange IPTables or Perhaps its not IPtables problem? helptonewbie Linux - Security 4 01-28-2009 07:54 AM
iptables problem herbo Linux - Security 9 12-18-2007 11:10 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
Problem of iptables 80mail Linux - Networking 5 07-29-2005 12:17 AM
problem with iptables bladrag Linux - Networking 2 03-24-2004 03:08 PM


All times are GMT -5. The time now is 09:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration