LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Firewall Error (https://www.linuxquestions.org/questions/slackware-14/firewall-error-560900/)

dpballey 06-11-2007 10:12 AM

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

simcox1 06-11-2007 11:28 AM

Can you please post your /etc/rc.d/rc.firewall script, from the top. Thanks.

bzyk 06-11-2007 12:07 PM

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.

dpballey 06-11-2007 10:47 PM

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

dpballey 06-12-2007 12:19 AM

Yes, it was the problem of windwos like end of line.

Thanks to all those who replied
Regards


All times are GMT -5. The time now is 11:07 PM.