LinuxQuestions.org
Visit Jeremy's Blog.
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 05-19-2004, 07:31 AM   #1
John Micheal
Member
 
Registered: Apr 2004
Location: Germany
Distribution: RedHat 9
Posts: 38

Rep: Reputation: 15
Thumbs down iptables problem , please help


greetings all ,

i am new user for linux , i want to setup my linux server to be the firewall of my network .

i use redhat 9 , when i installed it i choosed no firewall .

now i don't have a file /etc/sysconfig/iptables , is that normal ?
should i create it to enable the iptables commands to work ???

i know i have 3 built in chains , and i guess i know the use of every one , but what if i created a new one . when it will be used ??

i guess input chain just used when a packet arrived to the station , so what if i made a chain and named it as " linux " , when this one will be used ?

please help
 
Old 05-19-2004, 10:55 AM   #2
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Hello.


I have a firewalling router which is running SuSE and several desktop computers running Gentoo. On neither of them I have a file called /etc/sysconfig/iptables. I would say that this is a RedHat-only thing so I can't really help you there.

I might be wrong but i _guess_ that for an iptables firewall to work (in general) you don't need this file as there are ways to add rules to the chains (read man iptables). Only if you intend to use the firewall that comes with RedHat you might need it. But I'm sure you can install it with RedHat's package manager or with its configuration program.

If you just want to make a 'simple' firewall for your home network you might as well only use the three built-in chains. The way I see it the possibility to make custom chains is for much more complicated and sophisticated firewalls. Those custom chains will only be used if you add a rule to one of the three standard chains that 'send' a packet to this chain. To do this you can set a rule's target to the name of your chain.

For example instead of -j DROP you would type -j LINUX if your custom chain was called LINUX. Then the rules of the LINUX chain will be applied to the packet.
 
Old 05-19-2004, 10:57 AM   #3
manya
Member
 
Registered: Apr 2004
Posts: 194

Rep: Reputation: 15
its easy yaar

My dear friend

first of all check whether iptables service is on for that runlevel if it is not ononby giving command

chkconfig --level 3 iptables on

service iptables restart

this should create file in /etc/sysconfig/iptables

also ip_forward should be enable in kernel to work your firewall


try this out........

regards
Manya
 
Old 05-19-2004, 12:06 PM   #4
rocordial
LQ Newbie
 
Registered: May 2004
Location: Romania, Europe
Distribution: Slackware 8.1
Posts: 28

Rep: Reputation: 15
Re: iptables problem , please help

Quote:
Originally posted by John Micheal
i know i have 3 built in chains , and i guess i know the use of every one , but what if i created a new one . when it will be used ??

i guess input chain just used when a packet arrived to the station , so what if i made a chain and named it as " linux " , when this one will be used ?
About the channels i suggest to read the tutorials on iptables official page:

www.netfilter.org

Those tutorials are short and straight to the point.
 
Old 05-22-2004, 03:01 AM   #5
John Micheal
Member
 
Registered: Apr 2004
Location: Germany
Distribution: RedHat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Dear All,

thanks so much for your kindly help

really thanks so much .

Be well .
 
  


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
problem iptables stomach Linux - Software 3 09-22-2005 02:21 PM
problem with iptables Israfel2000 Linux - Security 3 07-18-2004 12:30 AM
iptables problem bhagat_panwar Linux - Software 0 08-27-2003 06:45 AM
iptables problem? poulaum Linux - Networking 12 02-27-2003 03:57 PM
Problem with IPTABLES jfall Linux - Networking 3 11-04-2002 03:10 PM

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

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