LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-08-2002, 10:44 PM   #1
rami9009
LQ Newbie
 
Registered: Jul 2002
Location: Toronto
Posts: 1

Rep: Reputation: 0
Linux Firewall Design Tool......Help!!!


Gents

I am trying to install a Firewall on my Redhat 7.3 server using this “Linux Firewall Design Tool” by Robert L. Ziegler on his website: http://www.linux-firewall-tools.com/...all/index.html
I am using DHCPCD to dynamically obtain an IP address from my ISP.
I followed all the steps until I reached
6.Create the /etc/dhcpc/dhcpcd-eth0.exe script. Insert any additional functionality from the example dhcpcd-eth0.exe as needed.
7.Execute the script from the command line the first time.

I am lost here! How do you create this “/etc/dhcpc/dhcpcd-eth0.exe” script
And what script does he meant by “Execute the script from the command line” I tried executing this “/etc/dhcpc/dhcpcd-eth0.exe” it came back with an error message “bad intrepeter: No such file or directory”
I tried running the script “rc.firewall” I got the exact previous message!!!!
What is going wrong here????
Again, I am sure that the Script file “rc.firewall” is correct, but how do you run it to make it active???

Thanx in Advance for anybody that will spare a moment to help

Rami
 
Old 07-08-2002, 11:10 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I don't use that tool so I'm not going to try and explain that, but maybe this will help.

to be able to run something you need to supply the path/filename

for instance:

if you are in the directory that the file is in you can express the path several ways
the easiest is ./
so ./filename will point to filename in the current dir
also you could type /full/path/to/filename
or $PWD/filename
$pwd is a variable for the current dir

the other problem is that when you do point to the file you must have permission to exec it.

ls -l /path/filename

[root@Micro root]# ls -l /etc/rc.d/rc.firewall
-rw-r--r-- 1 root root 123 Jun 20 19:24 /etc/rc.d/rc.firewall


you have no permission to exec this file even as root

[root@Micro root]# chmod 755 /etc/rc.d/rc.firewall

[root@Micro root]# ls -l /etc/rc.d/rc.firewall
-rwxr-xr-x 1 root root 123 Jun 20 19:24 /etc/rc.d/rc.firewall

now anybody can exec this script (of course this is not a good idea, you should only allow root to run it

[root@Micro root]# chmod 700 /etc/rc.d/rc.firewall

[root@Micro root]# ls -l /etc/rc.d/rc.firewall
-rwx------ 1 root root 123 Jun 20 19:24 /etc/rc.d/rc.firewall


now only root can access and exec the file
here's how it works

-421421421
there are three sets of permissions, one for owner, one for group, and one for everybody


so 700 is -421------ or -rwx------

read, write, execute
 
  


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
website design tool For Linux lumba Linux - General 9 05-05-2005 06:47 AM
Linux Firewall Design Question? gensis Linux - Security 2 10-06-2004 05:28 PM
What's the best Web Design tool? fryak General 7 06-19-2004 03:15 PM
web design tool sethgeekx86 Linux - Software 4 04-21-2004 01:13 PM
I need a tool for network design ?!? ynunes Linux - Software 1 03-18-2004 07:52 AM

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

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