LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-14-2004, 06:49 PM   #1
Fantus
Member
 
Registered: Aug 2003
Location: California, USA
Distribution: Red Hat
Posts: 34

Rep: Reputation: 15
Question Slackware 9.2 vs FreeBSD 5.2.1


Hello!

Ok, a complete kinda/sorta newbie to FreeBSD, same with Slackware, but I've used various versions of Red Hat and Mandrake.
The question is this: What is the best way to make a DHCP/Gateway server? My mother has asked me to make a firewall for her small business. The choices I have is Slackware 9.2 and FreeBSD 5.2.1. The problem is that BSD is on the cutting edge, therefore there arent too many tutorials that I can find yet, and linux tutorials are so general, and usually lean toward Red Hat or something like that. The server computer is going to be a Pentium II with 256mb RAM and a 16mb video card.
So are there any tutorials/howtos that are geared toward these? I try not to be an idiot when it comes to these things, but I fall short of the mark.
Thanks a lot
 
Old 08-14-2004, 07:46 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Pity about the choices, really.

If the machine has that limited tasks I'd go
with OpenBSD and be done, FreeBSD 5.2.1
I wouldn't use at this stage, but rather go back
to 4.10 ...

Btw, where does the 2 behind the 9 for Slack come
from? Last thing I know it went from 9.1 to 10 ;)


I don't know of any tutorials geared at a
specific version, either.


Cheers,
Tink
 
Old 08-14-2004, 09:35 PM   #3
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Cutting edge???

FreeBSD has some of the best documentation around.
The FreeBSD manual on their site, also included in the installed docs. Real good stuff.
www.freebsddiary.org/
www.freebsdforums.org/
www.freebsdportal.com/
The Complete FreeBSD 4th by Greg Lehey
Absolute BSD
Just to name a few.

What's wrong with RedHat?

FBSD 5.2.1 has been really good to me.
 
Old 08-19-2004, 01:14 AM   #4
Fantus
Member
 
Registered: Aug 2003
Location: California, USA
Distribution: Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for your fast replies, guys.
I got a little mixed up on the 9.2/9.1 thingie Sorry bout that.
Tell me, why would 4.10 be better for my computer? 5.2.1 installed without a single hitch. The only problem is that it keeps rejecting my client computer (win2k) from the dhcp server.
Another distro I ran across (literally tripped over it....teenagers have messy rooms) was 4.3. I'm reading the dhcpd.conf man page one more time before I try it out.
Any help?
 
Old 08-19-2004, 10:59 AM   #5
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Say with 5.x.x unless you see some problem you can't work around and then report the problem. FBSD 5.x.x has ACL with UFS2. Something you'll see more of in the future.
 
Old 08-19-2004, 10:09 PM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
If you're leaning towards Slack (or whatever Linux distro for that matter), but feeling uncomfortable about configuring iptables manually for your mom's co's topology (I assume there is some sort of networking involved), I'd recommend using gShield to simplify the process.

http://muse.linuxmafia.org/gshield/

It's kinda neat and easy for an iptables-challenged person like me... so in general I think it would help anyone who's trying to setup a router/gateway/firewall combo in a short time.

It took me about 20 minutes to get the router at my workplace working perfectly... and I'm only using a Celeron 366MHz with 128MB SDRAM
 
Old 08-20-2004, 12:52 PM   #7
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Rep: Reputation: 31
Talking

I had a similar problem needed a server/gateway firewall for my home network . I nstalled smoothwall on a spare machine did some simple configuring installed a couple of updates and I was in business with a firewall, dhcp server, web proxy, IDS (snort)
NAT and DNS all up and running. Just download the version with the docs read them and install.

www.smoothwall.org


 
Old 08-20-2004, 01:27 PM   #8
Fantus
Member
 
Registered: Aug 2003
Location: California, USA
Distribution: Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
Well, one last question before I go back to Slackware.
The Exact problem is this; I have three computers I'm trying to throw up into a network; the wannabe server, and two win2k clients.
When I hook the clients up to the server hub, and run ipconfig, all the settings come up fine.
But on the server side, these errors pop up:
fortress dhcpd: icmp_echorequest 192.168.4.253: permission denied
fortress dhcpd: send_packet: permission denied
fortress dhcpd: last message repeated 7 times
fortress dhcpd: last message repeated 10 times

and so on and so forth. Any more help? Thanks for everything so far, guys.
 
Old 08-20-2004, 04:23 PM   #9
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
Well since everybody seems to be tossing out their favorite firewall scripts, I might as well suggest mine. But ill also tell you why its my favorite and that is because unlike all the other ones previously listed, it is NOT one huge monolithic bash script that you need to edit. Monolithic scripts are fine for a personal firewall, but when you get into gateways that need to do NAT and port forwarding and the like, it can get pretty messy. And unlike smoothwall, its not its own distro, its all in bash so you can run it on any distro you want. The firewall im talking about is called IPkungfu of which you can get at http://freshmeat.net/projects/ipkungfu. As mentioned, unlike the other scripts it breaks down the differnt aspects of a firewall into their own config files. For example:

Code:
-rwxr--r--  1 root root  298 Jul  8 23:48 accept_hosts.conf*
-rwxr--r--  1 root root 2932 Jul 26 00:45 advanced.conf*
-rwxr--r--  1 root root 1846 Jul 28 02:04 custom.conf*
-rwxr--r--  1 root root  222 Jan 30  2004 deny_hosts.conf*
-rwxr--r--  1 root root 2974 Jan 30  2004 forward.conf*
-rwxr--r--  1 root root 4881 Aug 10 08:54 ipkungfu.conf*
-rwxr--r--  1 root root 1480 Aug 16 23:54 log.conf*
-rwxr--r--  1 root root  143 Mar 19 02:00 post.conf*
-rwxr--r--  1 root root  301 Jan 30  2004 pre.conf*
-rwxr--r--  1 root root  499 Jul 28 02:03 redirect.conf*
-rwxr--r--  1 root root 1851 Jul 28 02:05 vhosts.conf*
So as you can imagine, hosts you always want to allow for incomming connections go in accept_hosts.conf, and vhosts.conf is for port forwarding, ipkungfu.conf is the main config file and custom.conf is so you can add your own raw iptables commands if IPkungfu doesnt do some tricky thing you are looking for. The rest ill leave for you to figure out.

IPkungfu will autodetect alot of things for you including both of your NIC's, and if it finds two, it will automatically set up NAT for you. The only things you really have to tell it is the internal IP address block, 192.168.1.0/255.255.255.0 for example and what ports to open on the FIREWALL if any. For example you would allow port 80 if your firewall also ran the apache web server etc. These options are found in the main ipkungfu.conf file.

As I mentioned earlier, vhosts.conf is for port forwarding, which you will most likly have to do when using NAT. Here is a small snippit of my vhosts.conf file
Code:
0/0:192.168.1.7:2090-2091:2090-2091:tcp         # Paltalk
0/0:192.168.1.7:2090-2091:2090-2091:udp         #

0/0:192.168.1.7:6881-6999:6881-6999:tcp         # Bit Torrent

0/0:192.168.1.7:5000-5020:5000-5020:tcp         # DCC
As you can see the syntax is MUCH easier than the raw iptables rule it creates. Its basically
Code:
Allowed Network in:Internal IP of server:Incomming Port:Forwarded Port:Protocol
Note that most of the time the incomming and forwarded ports are the same but dont have to be.


As for your "fortress dhcpd" issues, I haven no friggen clue. I did a google search for that phrase and it found nothing. But if your external interface cannot get an IP from your modem then no firewall in the world is going to work.

Last edited by SiegeX; 08-20-2004 at 04:24 PM.
 
Old 08-20-2004, 05:16 PM   #10
jml75
Member
 
Registered: Jun 2004
Distribution: Ubuntu 7.10, Debian 4.0
Posts: 49

Rep: Reputation: 15
What I use is smoothwall. It is easy to setup and has a very nice webpage to configure it once it is installed. I use the red-green-orange network setup so the red is the internet, the green is the internal lan and the orange is the DMZ for servers. I connect a MAC OS X, slackware and a win 2k machine and it works perfectly eather with DHCP or static IPs. I used it with PPPoE and now on static hard coded IP and it is rock solid. It run's on a K6-2 500mhz with 128mg of ram.
 
Old 08-21-2004, 12:34 PM   #11
Fantus
Member
 
Registered: Aug 2003
Location: California, USA
Distribution: Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
Well then back to slackware go I! Probably for the best, I know every command in the book on slack, and in fbsd I was back to square one in learning.
Thanks for all your idea's guys, you've been a great help.
 
Old 09-03-2004, 04:34 AM   #12
kuyalfinator
Member
 
Registered: Jul 2003
Location: Los Angeles
Distribution: RedHat8 2.4.18-14 RedHat9 2.4.20-8 FreeBSD 5.2.1 Ubuntu 10_4 Mandrake 2.4.21-0.13mdk
Posts: 118

Rep: Reputation: 16
thanks for the info guys

This will help me set up freebsd in the future. Thanks for the info...
 
  


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
Reiserfs with slackware and freebsd argarc Slackware 11 03-13-2005 05:09 PM
what are the goodies between freeBSD and Slackware january *BSD 21 08-06-2004 07:36 PM
Slackware and FreeBSD?!! oldi *BSD 31 06-20-2004 04:54 PM
slackware or FreeBSD boolim Slackware 3 04-08-2004 06:26 PM
Slackware or freeBSD BrianG Linux - Distributions 2 05-17-2001 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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