LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS,dhcp,firewall,samba (https://www.linuxquestions.org/questions/linux-networking-3/dns-dhcp-firewall-samba-21462/)

rob_roman23 05-21-2002 09:23 AM

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!

hubergeek 05-21-2002 11:05 AM

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. :)

rob_roman23 05-21-2002 11:40 AM

I will keep looking for stuff and post it here thanks dude

Mux 05-21-2002 05:39 PM

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

finegan 05-21-2002 05:59 PM

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

rob_roman23 05-21-2002 09:49 PM

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)

finegan 05-21-2002 10:49 PM

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

rob_roman23 05-21-2002 11:04 PM

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!

rob_roman23 05-24-2002 01:25 PM

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!


All times are GMT -5. The time now is 01:08 PM.