LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-11-2007, 11:12 AM   #1
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Rep: Reputation: 15
Firewall Error


I am using the firewall script taken from online generation at "http://www.slackware.com/~alien/efg/".
I am getting the following error:
/etc/rc.d/rc.inet2: /etc/rc.d/rc.firewall: \
bin/sh^M: bad interpretor: No such file of \
directory

Why I am getting this error?

I have done chmod +x on this script as given in the beginnig of this file.

Regards
 
Old 06-11-2007, 12:28 PM   #2
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Can you please post your /etc/rc.d/rc.firewall script, from the top. Thanks.
 
Old 06-11-2007, 01:07 PM   #3
bzyk
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Debian, Slackware
Posts: 42

Rep: Reputation: 15
Hi.

I think, that this is problem with "windows-like" end of line. Do you copy and paste it in windows?
Just delete that "^M" mark and the end of /bin/sh, and watch all you rules to delete this mark.
 
Old 06-11-2007, 11:47 PM   #4
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Since the firewall script is more than 25000 words, I am unable to post it due this restriction imposed at LQ.

I did check that ther were no ^M characters in the firewall content as seen on Slacware box. But still I will apply the equation to remove those if they were somehow invisible. I shall come back withthe result.

Regards
 
Old 06-12-2007, 01:19 AM   #5
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Yes, it was the problem of windwos like end of line.

Thanks to all those who replied
Regards
 
  


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
Arno IPTables firewall: error 4294967295 gbowden Linux - Networking 2 05-31-2007 09:31 AM
firewall-config: relocation error Baracuda Linux - General 3 10-07-2005 12:33 PM
iptables install error...(for a firewall) b0uncer Linux - Security 1 01-06-2004 09:38 AM
Guarddog Firewall Error leeach Linux - General 1 10-03-2003 02:59 PM
firewall error? couldn't load target "accept ...ipt_accept? error piratebiter Linux - Security 1 09-19-2003 06:37 PM


All times are GMT -5. The time now is 11:46 AM.

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