Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an old computer with two network cards and I've installed Ubuntu Server 12.04 LTS on it. I have an old router d-link des-1024d.

I want to plug the internet into one network card and the router into the other. Then I want to plug 15 work stations into the router and be able to use the internet from the server's internet connection.

Also a bonus would be to allocate each workstation a certain amount of bandwidth and also to be able to block websites.

Also I want to be able to have a mapped network drive on the Win7 machines so they can transfer files to the server as backup.

I need a step by step guide as I don't usually do this.

share|improve this question

migrated from stackoverflow.com Mar 19 '13 at 10:28

This question came from our site for professional and enthusiast programmers.

2 Answers 2

You will need to setup your Ubuntu machine as a proxy server ...
Here you can find a brief explanation of what's a proxy server and a how to do turn your Ubuntu into a proxy!

share|improve this answer

You are actually asking 3 different questions here, each requires quite a bit of expertise, and its probably unreasonable to expect step-by-step for each one. Hopefully the information provided below will suffice to allow you to use Google, as each of these topics has been covered extensively elsewhere.

  1. To get routing going, you will probably use IPTables and NAT. A guide on doing this can be found here. (Its for an older version, but still applies).

  2. Windows File Sharing under Linux is normally done using SAMBA - You can find a howto http://ubuntuforums.org/showthread.php?t=202605

  3. Bandwidth control is the most complex subject. Look at mossey464's post on 28-04-2100 22:54 here. To understand how it works, go through this.. The key thing to remember though, is you always want to shape traffic on the outward leg (ie if you are shaping requests from the client to the world, you want to shape the world facing internet on the router, similarly for traffic from the world to the client you want to shape it on the internal interface on the router.

I would avoid the proxy route proposed by IMADJamil - as this will only provide a subset of connectivity, and comes with issues all of its own.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.