LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Closed Thread
  Search this Thread
Old 07-15-2011, 12:54 PM   #1
robertted
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Rep: Reputation: Disabled
Linux newbie looking for advise on a Home Network setup


I recently built a debian server (Squeeze) to get some much needed linux practice. After tinkering with it for a few days I have decided to try and redo my home network using the server as a firewall/monitoring station.

my plan

Cable Modem
|
Debian Server
|
wifi router
|
Laptop XP - Desktop Win7 - Netbook Ubuntu - XBOX 360 - Playstaion 3

I want to know how this will effect the speed of the other computers on the network. I plan on running an FTP server on the Debian box and am also wondering if puting a DNS server on it will improve the speed.

I basically want to get the best performance and security out of this setup. My wifi router has a built in firewall so should I just continue to run the cable modem through it?

I apprieciate any help or ideas.

Thank you
 
Old 07-15-2011, 02:30 PM   #2
robertted
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
The specs on the Debian Server sre:

Pentium D 2.8 GHz
2 Gb RAM
4 Gb swap file
80 Gb HDD (root)
1 Tb HDD (data)

I am thinking of upping the RAM to 4 Gb and changing the swap file to 8 Gb. Not sure if this will help much but it's worth a shot scince I already have the parts.
 
Old 07-15-2011, 03:40 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello robertted,

as of the swapspace and the memory, 2GB of Ram is enough for your server. And the swapspace is much too big. If you configure 256MB of Swapspace for a system with 2GB Ram it will hardly ever be used.

The rule that you need the double Ram as swapspace is from the old days. Nowadays you'll only need much swapspace if you have Laptop and want to suspend to Ram disk, in this case the swapspace must be at least as big as the physical Ram.

As of your network, just try it out. You will learn much with this setup.

Good luck

Markus

Last edited by markush; 07-15-2011 at 04:13 PM. Reason: made a mistake
 
1 members found this post helpful.
Old 07-15-2011, 03:54 PM   #4
robertted
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Markus. Learning is the goal here so I am glad to hear you say that. I think its going to feel wierd making such a small swap file though. It made sense to have a big one beacause I always put a the same sized paige file on my windows systems. I can't wait to get home and try it out though. I am having alot of fun learning this stuff. Should of done it years ago.
 
Old 07-15-2011, 04:07 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by markush View Post
Nowadays you'll only need much swapspace if you have Laptop and want to suspend to Ram, in this case the swapspace must be at least as big as the physical Ram.
Just a small correction here, you need that swap-space for suspend to disk, not suspend to RAM.
 
1 members found this post helpful.
Old 07-15-2011, 04:09 PM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
@TobiSGD: thanks, I made a mistake

Markus
 
Old 07-15-2011, 04:22 PM   #7
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
So this debian server your putting up in front of your home router, is this going to be a bridged firewall or is it going to act as a router on it's own? I'm asking because if you put another PC in front of your router , that PC is going to grab your routable IP from the cable modem , and then you will have to enable nat/dhcp or ip forwarding on the debian server in order to allow regular network traffic from your internal LAN segment. I foresee this post ending up in the Network section later on as you try to get it working as a firewall.

Speaking from my experiences I do not use commodity routers anymore , I use desktop hardware and firewall distro's like Untangle, and PFSense, which work very very well for me and my purposes. There are many things to consider as you set this up, and I'm not saying you can not set it up that way , but it will require an additional network card on the debian box and it will have to have IP forwarding setup and routes. For me it was always easier just setting up a firewall distro and then adding another machine on a port forward. Your debian server has more hardware and will probably work better as a router/server than your current embedded router, and will provide you with more options, such as a caching dns server , a caching proxy server, and other benefits. I really suggest using Untagle as it has many many extra software you can use, and it's debian based it's self.

I guess it all comes down to what your really wanting to accomplish. Your current router will work fine and you could set this box up as a regular server, if your wanting to capture network traffic and firewall it further you could get another NIC in the debian box and set it up as a transparent bridge and just sniff all day.
 
Old 07-15-2011, 04:35 PM   #8
robertted
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Tekhead2,

My original idea was to have the server securing and monitoring my entire network. I already installed and extra network card and I planned to enable NAT/DHCP. The main reason I am doing this is for experience. My main question is can I do all of this on the one server (including an FTP server) and not have it slow my internet connection down too much. I can always put together more hardware but my wife will start to complain if too much of it is sitting in our living room.
 
Old 07-15-2011, 05:32 PM   #9
robertted
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
tekhead2,

I was doing some reading on Untangle and it looks like it can accomplish exactly what I what to do. I can also install it on my debian server. I think I am going to give it a try this weekend and see if I can't get this setup working. Thanks for the help. I will let you know how it goes.
 
Old 07-16-2011, 06:17 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'm closing this thread (even though it's the original) in favour of
the more suitably placed duplicate. Sorry to all folks who responded
here; please carry your discussions on in the dupe.


Cheers,
Tink
 
  


Closed Thread


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
Setup Linux/sendmail from home network mfoley Linux - Server 3 01-21-2011 03:44 PM
Firewall advise, Running Debian_AMD64. Purley as a precaution on home network. Eeek Th£ Bear Linux - Security 7 08-03-2009 12:48 PM
How to setup Linux DNS server for a small office/home network? lhnw08 Linux - Server 16 07-24-2009 07:35 AM
newbie: lost internet whenever attempted to setup home network sirpelidor Linux - Networking 1 06-08-2005 06:18 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 10:02 PM


All times are GMT -5. The time now is 06:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration