LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-11-2006, 04:21 AM   #1
zeusys
Member
 
Registered: Jun 2006
Posts: 31

Rep: Reputation: 0
Question iptables service doesn't start


when I try to start Firewall(iptables) by using
Code:
service iptables start
nothing happens.
how I can solve this problem?

Last edited by zeusys; 06-11-2006 at 06:05 AM.
 
Old 06-11-2006, 04:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how can we help you with so little information?? what do you even mean by "nothing happens"? does "iptables -L" list ruels? what are you expecting to happen? do you realise that the "#" symbol is not meant to actaully be typed by yourself, it's meant to signify a prompt, and if you type it will turn your command into a comment and be ignored.
 
Old 06-11-2006, 04:30 AM   #3
dimsh
Member
 
Registered: Aug 2005
Distribution: Debian, Ubuntu, Fedora
Posts: 74

Rep: Reputation: 15
with redhat there must be at list one saved iptables rule so the iptables service could start.

try doing the following:
Code:
iptables -A INPUT -i lo -j ACCEPT
service iptables save
service iptables start
this will add one rule and should start iptables.

as acid_kewpie said, you should at least mention some info about your dist. and what meant by no thig happened, I can realize what you mean by no thing happened because i ran into the same thing in the past.

Regards
 
Old 06-11-2006, 04:34 AM   #4
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
Quote:
Originally Posted by zeusys
when I try to start Firewall(iptables) by using
Code:
#service iptables start
nothing happens.
how I can solve this problem?
mose probably the # mark is your problem. The # is not and should not be a part of your command. it simply is there to act as a konsole prompt to make your reading easier and to let you know that it is a command you can type.
so basically, if you type
Code:
service iptables start
or
Code:
/etc/init.d/iptables start
your iptables should start with no doubt. still if you are unsure try
Code:
iptables -nL
to check-out the currently active rules.
 
Old 06-11-2006, 06:10 AM   #5
zeusys
Member
 
Registered: Jun 2006
Posts: 31

Original Poster
Rep: Reputation: 0
ummm,# is a wrong character I writed here.
I mean that by using this command no result returned is command line and when I use
Code:
service iptables status
it returns Firewall stopped.
I want to know what reasons can cause this problem?
and how I solve them?
 
Old 06-11-2006, 06:48 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this doens't sound like a problem at all. run "service iptables start" ni a console and copy and paste the entire thing here, including data before and after the command being executed.
 
Old 06-11-2006, 07:13 AM   #7
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
either your distro is broken or you are seriously confused. i suggest you to read this thread from top to bottom and again read once again.
 
  


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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
iptables and dynamic ip adresses (use of a dyndns service) markus1982 Linux - Security 6 09-02-2004 09:27 AM
Windows ftp service behind IPTABLES lscala Linux - Security 2 02-29-2004 07:30 PM
Iptables and VPN service on another file server Seal-X Linux - Networking 7 05-13-2003 06:50 AM
IPTABLES Service timeouts Paul_assheton Linux - Networking 2 04-27-2002 05:18 AM

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

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