LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-22-2007, 05:59 AM   #1
compuslave
LQ Newbie
 
Registered: Aug 2007
Posts: 17

Rep: Reputation: 0
Newbie in search of router tut


Hi, Im just getting back into linux after a couple years off. My project I have started is an old PIII running slackware 12 with the new kernel. I got wireless installed and working somewhat but I still have some stuff to work out. I have a couple questions, first why is resolv.conf blank? Where do I manually configure the way I used to with resolv.conf? I want to use this computer as a firewall/router that sits right behind my modem then use its wireless card as an access point for all the other computers on the network. Can anyone direct me to a good tutorial on doing this? I dont even know where to start so for now Im just trying to trim my kernel down and get the things I know are wrong fixed. Any help is much appreciated, thanks in advance.

Todd
 
Old 08-22-2007, 07:37 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I do not use wireless but hopefully resolv.conf has contents

nameserver xxx.yyy.x.zzz...replace with numbers
nameserver xxx.yyy.x.zzb

until you fill up all the known primary and secondary ips for your isp.

Have not used slack in years but until a better reply start here pls
http://www.slackware.com/config/network.php
 
Old 08-22-2007, 08:58 AM   #3
compuslave
LQ Newbie
 
Registered: Aug 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks I will start there.
 
Old 08-22-2007, 10:32 AM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Is this machine getting it's IP via DHCP. If so, then the default setup on Slack should create the /etc/resolc.conf file with the information provided via DHCP. Unless you've configured the DHCP client specifically not to overwrite it.

Cheers.
 
Old 08-22-2007, 12:39 PM   #5
compuslave
LQ Newbie
 
Registered: Aug 2007
Posts: 17

Original Poster
Rep: Reputation: 0
I will have three interfaces. Two nics and one wireless card. eth0 will be plugged into my modem and will obtain its ip via dhcp, the second nic will be plugged into a plain jane linksys hub for the computers that need a hard wire. The wireless card will service the other computers through out the house. So Im guessing Ill have to set up a dhcp server on the machine and tie that server to whatever IP I give wlan0. Also I will have to setup nic #2 to gets ip from the local dhcp server. Im really not sure what all I need to do thats why I figured my best bet was to read a decent tutorial. Basicly I want all the traffic going through this machine so I can firewall the whole network how I see fit. Do you see any problems with that approach? Im still trying to get back into the swing of things since I havent touch linux in quite a while.

Edit: Also the reason I want this machine right on the modem is so I can access it from anywhere and run a webserver etc without having to buy a new IP address from the cable company.

Last edited by compuslave; 08-22-2007 at 12:41 PM. Reason: Left something out.
 
Old 08-22-2007, 02:17 PM   #6
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
I'm not sure how you would tell nic #2 and wlan0 to use "localhost" to resolve an IP. They will always try and broadcast a DHCP request. Why not give them static IPs, on your local subnet, and if you need it, run a DHCP server to support the remainder of the local network.

But the original question was about /etc/resolv.conf. Did you get that resolved. Which then raises another issue. If you are getting the nameservers, from your ISP, via DHCP on nic #1, how are you going to pass that information on to the rest of your internal network, if you go along the DHCP route.

Cheers.
 
Old 08-22-2007, 09:07 PM   #7
compuslave
LQ Newbie
 
Registered: Aug 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
But the original question was about /etc/resolv.conf. Did you get that resolved. Which then raises another issue. If you are getting the nameservers, from your ISP, via DHCP on nic #1, how are you going to pass that information on to the rest of your internal network, if you go along the DHCP route.
I did manually edit resolv.conf and that fixed alot of the problems I was having. As far as the rest of your question, I dont know. Since you put it that way it does sound kinda retarded. My tinkering in the last couple hours has lead to me to think that static for the internal computers is best like you said. I found some good info here and there but I have a fresh problem that Im going to post on a new thread. Im gonna need a ton of help getting this thing together, no scratch that Im gonna need a ton of help just understanding what I need to do! I know Ive bit off a rather large chunk as a newbie but I love the callenge. I dont mind reading so dont be afraid to send links to docs.
 
  


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
EMAC tut. >>BLACKHOLE<< Linux - General 8 01-05-2007 06:34 PM
Newbie needs search feature Banyon Linux - Newbie 3 07-16-2006 09:02 PM
Search All Linux Forums on the Internet (Wicked Newbie Resource) davethedope Linux - Newbie 3 07-11-2006 12:06 AM
Newbie Linux user in search of help... rootlinux Linux - Newbie 2 12-09-2001 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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