Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-08-2001, 12:25 PM
|
#16
|
LQ Newbie
Registered: Jun 2001
Posts: 9
Original Poster
Rep:
|
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
|
|
|
06-11-2001, 03:56 AM
|
#17
|
Member
Registered: Apr 2001
Location: London
Posts: 408
Rep:
|
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
|
|
|
06-11-2001, 06:54 AM
|
#18
|
LQ Newbie
Registered: Jun 2001
Posts: 9
Original Poster
Rep:
|
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
|
|
|
06-11-2001, 10:47 AM
|
#19
|
LQ Newbie
Registered: Jun 2001
Location: Austin, TX
Distribution: FC5/6
Posts: 23
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 09:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|