LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-21-2002, 09:23 AM   #1
rob_roman23
Member
 
Registered: May 2002
Location: Hoboken NJ
Distribution: Red Hat 7.1,7.3,8.0
Posts: 58

Rep: Reputation: 15
DNS,dhcp,firewall,samba


Please Help!

I recently got a cable modem and want to set up a firewall/file server/dns server/dhcp server. Basically a Proxy/gateway on steroids! Can Anyone please provide me with some links/advice/tips to setting this up on a rhat 7.1 box. Here is where i figure i start:

1. DHCP server (so i can get the network up and running / managed from one box)
2. ip masq ( so all my machines use the linux box as a proxy)
3. dns server ( so they all resolve properly)
4. samba (so i can share that 60g hard drive)
5. firewall (so people coming through my wireless won't be able to see all the p*&( i got!)

any suggestions! I am having a blast setting this up by the way!
 
Old 05-21-2002, 11:05 AM   #2
hubergeek
Member
 
Registered: Mar 2002
Location: Hackensack, NJ.
Distribution: RedHat 7.0
Posts: 75

Rep: Reputation: 15
http://www.ecst.csuchico.edu/~dranch...dex-linux.html

Checkout this link I think you'll find many usefull info there.

Hey, what do you know, you can at least try helping someone, even i you never get a reply to none of your post.
 
Old 05-21-2002, 11:40 AM   #3
rob_roman23
Member
 
Registered: May 2002
Location: Hoboken NJ
Distribution: Red Hat 7.1,7.3,8.0
Posts: 58

Original Poster
Rep: Reputation: 15
I will keep looking for stuff and post it here thanks dude
 
Old 05-21-2002, 05:39 PM   #4
Mux
Member
 
Registered: May 2002
Location: Bs.As., Argentina
Distribution: Slackware; Debian; Suse; RedHat
Posts: 66

Rep: Reputation: 15
IP-Masquerade-HOWTO

I've got almost the same setup at home and basically, the all-in-one solution for me (and probably you two), was the IP-Masquerade-HOWTO.

It will give you all you asked for (the howto deals also with a secure firewall), with the exception of samba, which you can check at the smb-howto.

--->> http://www.linuxdoc.org <<---

Mux
 
Old 05-21-2002, 05:59 PM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Re: DNS,dhcp,firewall,samba

Quote:
Originally posted by rob_roman23
Please Help!
1. DHCP server (so i can get the network up and running / managed from one box)
2. ip masq ( so all my machines use the linux box as a proxy)
3. dns server ( so they all resolve properly)
4. samba (so i can share that 60g hard drive)
5. firewall (so people coming through my wireless won't be able to see all the p*&( i got!)
1. The daemon that is built into redhat is dhcpd, check out the man page on it. Its really easy to build a dhcpd.conf file.

2. The built in IP masq/firewalling software for the 2.4.x kernel is iptables. I think RH comes with a bunch of utilities to manipulate your iptable ruleset for MASQ.

3. You don't need one. After you have MASQ working, you can just forward all of the client requests on to your gateway's DNS server. Actually, usually any DNS machine on the planet will do name resolution for anyone else. BIND is just a dangerous thing to run unless you're ready to patch it silly a lot. If you were running your own domain and wanted to do yur own DNS, then it might be worth it.

4. Samba... whew, You might want to fiddle with SWAT so you can configure it through a web browser. Basically, just start at it and start an entirely new thread if you get stuck.

5. firewall, back to iptables, see above. Offhand, if you are running a wireless LAN, and not running VPN which is a bit of a headache to set-up, just go around and meet all of your neighbors. If one of them is an uber-geek enough to airsnort his/her way onto your wireless network, they will if they want to. Make friends with them. Wireless isn't necessarily as open as printing your password in the New York Times, but it might as well be. Its just in this case it takes a high amount of geek proficiency to be able for someone else to see what your doing.

Luck,

Finegan
 
Old 05-21-2002, 09:49 PM   #6
rob_roman23
Member
 
Registered: May 2002
Location: Hoboken NJ
Distribution: Red Hat 7.1,7.3,8.0
Posts: 58

Original Poster
Rep: Reputation: 15
Aggreed on The DNS... Thanks Anyone ever have trouble setting up multiple NIC's. I am having the darndest time trying to get my nic to accept a DHCP ip (from my ISP)
 
Old 05-21-2002, 10:49 PM   #7
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
If they for certain use dhcp, some call their pppoe connection dhcp because the sales staff doesn't know a length of cat-5 from the rope they should be whipped with, uh, er... yeah where was I ranting, oh yeah, invoke the dhcp client daemon from the command line and see if that pulls it:

dhcpcd ethX (where X is whichever ethernet card. In this case, probably eth0 or eth1 depending on which you have hooked up to the modem, which to the hub/switch.)

If that grabs all of the addressing right, you should be able to edit /etc/sysconfig/networking-scripts/ifcg-ethX and have it come up correctly on boot, although one of the problems with my old Telocity set-up was if the power winked out, the machine would reboot, check the file system, and time-out on a dhcp connect before the DSL modem had gotten DSLAM, but nobody sucks quite as much as Telocity did 2 years ago.

Or, you can be lazy like me and put the line:

/sbin/dhcpcd ethX

in /etc/rc.d/rc.local, the last init file read on boot.

Cheers,

Finegan

Last edited by finegan; 05-21-2002 at 10:50 PM.
 
Old 05-21-2002, 11:04 PM   #8
rob_roman23
Member
 
Registered: May 2002
Location: Hoboken NJ
Distribution: Red Hat 7.1,7.3,8.0
Posts: 58

Original Poster
Rep: Reputation: 15
Nope Still Nothin.. The Daemon is running but i still don't have an ip address. Any other suggestions I did an ifconfig after the dhcpcd and it said the NIC was broadcasting... and eventually nothing happends... Any suggestions. From what i remember i am allowed 3 ipaddress from Optimum Online (my isp) I am only using one right now.....

Help!
 
Old 05-24-2002, 01:25 PM   #9
rob_roman23
Member
 
Registered: May 2002
Location: Hoboken NJ
Distribution: Red Hat 7.1,7.3,8.0
Posts: 58

Original Poster
Rep: Reputation: 15
I finally got it to work. I tried one last time befor i went and saw starwars for my second time. When i got back it had an ip address. Must have been the power of the force!
 
  


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
Easy setup for "DNS, DHCP, squid, qmail, samba, etc " mobassir Linux - Software 8 08-18-2004 07:31 AM
Which Firewall, Proxy, DHCP, DNS and Email server package would you recommend? davidas Linux - Software 3 04-14-2004 04:24 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 10:40 AM
Dns, Www, Mail, Firewall, Vpn, Ftp, Dhcp, Wins ricake Mandriva 2 03-30-2004 06:06 PM
DHCP is setup. Now, DNS before Samba?? itsjustme Linux - Networking 3 06-17-2003 08:33 AM


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