LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2004, 12:48 AM   #46
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46

BTW, if you do want to try editting the shorewall files directly, they are all in /etc/shorewall and the main ones are rules, interfaces, policy, zones and each file has some help and hints included... For interfaces you may just need

net ppp0

and not put the detect option....

the zones are simple and your pc is considered as the firewall or fw when dealing with rules and the ppp interface will be called net

but hopefully DRAKFIREWALL will configure it now...
 
Old 08-23-2004, 12:48 AM   #47
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
Under services, I stopped Smb from running.

Well, I thought I I shutdown the SMB but it FAILED to shutdown. I clicked the Sop button and there it said failed to shutdown smb services. But, "On Boot" its unchecked.

And under DrakFirewall, I unticked everything except CUPS. Now I dont know what to do from here. Where and how could I configure the iptables?

Last edited by unixfreak; 08-23-2004 at 12:54 AM.
 
Old 08-23-2004, 12:59 AM   #48
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I opened up GEDIT, and I located /etc/shorewall: Heres what I saw below. What do I have change from here?

Commands are:
#
# shorewall start Starts the firewall
# shorewall restart Restarts the firewall
# shorewall stop Stops the firewall
# shorewall status Displays firewall status
#
#### BEGIN INIT INFO
# Provides: shorewall
# Required-Start: $network
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: starts and stops the shorewall firewall
### END INIT INFO

# chkconfig: 2345 25 90
# description: Packet filtering firewall
#

################################################################################
# Give Usage Information #
################################################################################
usage() {
echo "Usage: $0 start|stop|rstopped|restart|status"
exit 1
}

################################################################################
# E X E C U T I O N B E G I N S H E R E #
################################################################################
command="$1"

case "$command" in

start|restart|status|clear)

exec /sbin/shorewall $@
;;
rstopped)
exec /sbin/shorewall stop
;;
stop)
exec /sbin/shorewall clear
;;
*)

usage
;;

esac
 
Old 08-23-2004, 01:00 AM   #49
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
You are configuring IPTABLES. Drakfirewall configures the config files for the shorewall script and the shorewall script is just a nice 'easy' frontend to the IPTABLES...

The shorewall config files are just a easier layout to deal with and when you start shorewall it will set up IPTABLES as needed...

After you set up your shorewall rules byy whatever method you chose. you can start (or restart) shorewall.

iptables -L

will then list the iptables rules it has set up...
 
Old 08-23-2004, 01:00 AM   #50
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
Also I must need the SMB stopped somehow.

Under services, I stopped Smb from running.

Well, I thought I I shutdown the SMB but it FAILED to shutdown. I clicked the Sop button and there it said failed to shutdown smb services. But, "On Boot" its unchecked.
 
Old 08-23-2004, 01:05 AM   #51
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Well, in mandrake 10 the shorewall config files are in

/etc/shorewall/rules
/etc/shorewall/interfaces

and so forth, but they may have been somewhere else in earlier versions...

DRAKFIREWALL should have set it all up fro you, but I'm assuming it didn't??? Did you run drakfirewall as root????

The file you are looking at looks like the startup script and not what you want to edit. You want the config files.
 
Old 08-23-2004, 01:12 AM   #52
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
BTW, there is plenty of reading on

www.shorewall.net
 
Old 08-23-2004, 01:16 AM   #53
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
When first open up MCC it does ask me for the root password.

All I want to do now is shutdown SMB services and it sends as FAILED to shutdown.
 
Old 08-23-2004, 02:03 AM   #54
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Failed usually means it wasn't running...

you can check theses services with

/etc/init.d/smb status

to see if it's running or not.

But the smb running or not running has nothing to do with the firewall. I have smb running and the firewall works fine...

Oh, and make sure you change things with drakfirewall. I found sometimes you have to click the top box - everything - no firewall - and click okay (to open everything up) and restart it. that resets everything. Then you open it again and untick the boxes and hit okay and restart it and it should firewall everything...

And you sometimes need to redial the ppp interface as well...
 
Old 08-23-2004, 11:02 AM   #55
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
Great news. I went to www.grc.com and I tested the File Sharing. The results were that Unable to connect to NetBios and bla bla bla...........

But, the only problem now, is I did a Common Ports Test and every port was CLOSED. (Not Opened) but Closed.

I want all my ports to be STEALTH. But how could I do this. And everytime I start Shorewall. I cant view webpages.





You mean to restart the machine??

Because I clicked Everything-No firewall and it keeps on resetting to the CUPS. I dont know why its doing that. I even tried it with the firewall set to running and stopped.

Maybe its corrupted, I don't know. When I first install this, it was indeed set to Everything.

Last edited by unixfreak; 08-23-2004 at 11:14 AM.
 
Old 08-23-2004, 04:07 PM   #56
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I would say something has been corrupted, yes. This should be all very easy and you should not be having these problems. I'm not sure what you need to do to fix it tho... There must be some other mandrake config file that has been corrupted somehow. I'll have to look through my system and see what I can find.

The other option would be to download guard dog or firestarter and see if they will set up a firewall for you.
 
Old 08-23-2004, 06:40 PM   #57
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I already did. I extracted the files and I dont know what to do from there. There are many files that has been extracted but I do not know which one to choose.
 
Old 08-23-2004, 08:23 PM   #58
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I started Shorewall and went to Mandrake Control Center and clicked on DrakFirewall. Then it asked me if what Services would you like the Interent to connect to?

I unticked everything but when I go back in there CUPS is always checked. But nothing else. Then I clicked on OK.

I dont how yours worked.

I would like to know how you did it please.
 
Old 08-23-2004, 08:38 PM   #59
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Edited to protect the innocent.

Last edited by Mephisto; 08-23-2004 at 09:21 PM.
 
Old 08-23-2004, 08:52 PM   #60
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
Thanks for your honesty. I knew I did something wrong in there. Sorry.

Thanks alot.
 
  


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
Is Mandrake vulnerable to viruses, worms, and spyware? wardialer Linux - Security 5 10-05-2004 11:59 PM
Viruses nick_krym Linux - Newbie 6 04-02-2004 08:00 AM
Viruses teyesahr Linux - Newbie 2 09-09-2003 11:55 AM
viruses nautilus_1987 Linux - General 5 10-04-2002 11:30 PM
Viruses? Will Linux - Security 2 11-08-2001 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:16 AM.

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