LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-08-2001, 11:25 AM   #16
TWOFOURALPHA
LQ Newbie
 
Registered: Jun 2001
Posts: 9

Original Poster
Rep: Reputation: 0

Raz,
That's worked a treat. Thanks very much.
<offers tin>
Please help yourself to a biscuit.

Further investigation has led me to conclude that rc.firewall is not running at all, which would explain why the rules are not working when they are in there.

I have:
#chown root rc.firewall
#chmod 700 rc.firewall

Linuxconf tells me, under service control that firewall is 'enabled', however every other service in there is either 'Automatic - Running' or 'Manual' ( not running )

Status controller lets me 'enable','temp-disable' or 'disable'

This is rc.firewall, isn't it? If not where is this controlled from, and could I use that?

Cheers,
Mike
 
Old 06-11-2001, 02:56 AM   #17
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Hi,

Goto the dir where the rc.firewall lives and do a "ls -l"
Does it look like this:
-rwx------ 1 root root 14998 Jun 8 16:07 rc.firewall

If yours looks like this but doesn't work, it's because you have some esc chars in it from when you copied it off the website.

I wouldn't use linuxconf to work out if the firewall is running.

go into the /etc/rc.d/rc5.d directory and look for a file like has the word iptables or netfilter in it.
This is the file that linuxconf is trying to restart.

just run it like this to see what happens: example
/etc/rc.d/rc5.d/S08iptables status
/etc/rc.d/rc5.d/S08iptables stop
/etc/rc.d/rc5.d/S08iptables start

Once the iptables daemon is running the rc.local file should run the rc.firewall file or any other one you put in there.

/Raz
 
Old 06-11-2001, 05:54 AM   #18
TWOFOURALPHA
LQ Newbie
 
Registered: Jun 2001
Posts: 9

Original Poster
Rep: Reputation: 0
Raz,

OK, I can't find any files called 'xxxIPTABLES' or 'xxxNETFILTER' in any of the rc(x).d directories, or anything similar, however, I have learned two important lessons today:

1. Don't copy scripts from the internet, leaving all the control characters all over the place.
2. If you do copy scripts from the internet, _remember_ that there _is_ a difference between 'iptables' and 'IPTABLES'

Thanks very much for all your help, I can get on with some decent rules now that I have got that to work.
Thanks again,

Mike
 
Old 06-11-2001, 09:47 AM   #19
ektoric
LQ Newbie
 
Registered: Jun 2001
Location: Austin, TX
Distribution: FC5/6
Posts: 23

Rep: Reputation: 15
TWOFOURALPHA,
1. yes, unix (and therefore linux) is a case sensitive OS, therefore, iPtAblEs is different from IpTaBLeS =)

2. the files in /etc/rc.d/rc5.d/* are links to files in /etc/rc.d/init.d/*
rc5.d are the services to start if you are running runlevel 5 (graphical multiuser). Similarly, rc3.d are services for runlevel 3, text multiuser. To modify any files, you should probably edit the original file and not the link. See /etc/inittab (try man inittab) for runlevel info.

3. For the suggestion made by razbot, i believe he means for you to look at any "files" that contain iptables.. not any file*names* that contain iptables. "grep" is a command that will search the contents of a file, man grep for more info on it. Try this:
cd /etc/rc.d/init.d
grep iptables *
(grep for "iptables" in all files in current directory)
 
  


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
Required Linux for a newbie kobra Linux - Software 20 06-27-2005 10:54 AM
Linux newbie urgent help required!!!!! sagar_23999 Linux - General 2 03-10-2005 10:14 AM
Help required on some basic Questions on Linux lionelx Linux - Software 8 09-27-2004 01:56 PM
Experience in Linux required... tomplate Linux - Software 3 05-06-2002 12:23 PM
HELP required for LINUX boot sasi Linux - Software 1 12-10-2001 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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