Using a spare PC as a router

Started by JB, September 30, 2003, 06:33:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JB

Is it possible to setup a spare pc i have as a router and have it connected to the net permanently?  I've downloaded and installed a copy of windows 2000 advanced server mainly for the NAT capabilities it has, and also tried setting the server up as a NAT server but am somewhat unsure where i'm going wrong.  

In basic terms i've done the following.
1:) started NAT in the 'routing and remote access' section of 'administrative tools'
2:) setup my adsl modem as the external part, and the nic as the internal part.
3:) on the client machine ive set my default gateway as the IP of the server.
4:) forwarded port 80 incoming and outgoing to my machine.

However is there something i'm missing? that stands out at all?  More ports?  Some sort of easy configuration guide?

Please dont say to me use ICS because i've tried that and it's just not what i want.

If anyone helps me out and fixes me probs then there's sure to be a good stiff drink in it for ya, IF your going to the LAN.  I aint posting no pint of beer nowhere.

 
 

DogMeat

[SIGPIC][/SIGPIC]
Some pixies. No cars. No talent.

smilodon

You will need a floppy disk though  ;)
smilodon
Whatever's gone wrong it's not my fault.

Anonymous

QuoteOriginally posted by JB@Sep 30 2003, 06:33 PM
Is it possible to setup a spare pc i have as a router and have it connected to the net permanently? I've downloaded and installed a copy of windows 2000 advanced server mainly for the NAT capabilities it has, and also tried setting the server up as a NAT server but am somewhat unsure where i'm going wrong.

In basic terms i've done the following.
1:) started NAT in the 'routing and remote access' section of 'administrative tools'
2:) setup my adsl modem as the external part, and the nic as the internal part.
3:) on the client machine ive set my default gateway as the IP of the server.
4:) forwarded port 80 incoming and outgoing to my machine.

However is there something i'm missing? that stands out at all? More ports? Some sort of easy configuration guide?
JB, you don't say what problems you are experiencing (just that something seems to have gone wrong). More info please and we'll see what bull we can pass your way  ;)

Doorman

QuoteOriginally posted by BlueBall+Sep 30 2003, 07:00 PM-->
QUOTE (BlueBall @ Sep 30 2003, 07:00 PM)










     

Anonymous

QuoteOriginally posted by Doorman@Sep 30 2003, 07:29 PM
Bet I know which bit was edited. ;)
I bet you do as well :)

JB

As i know feck all about Linux and unless it turns there's a 'click here for Linux installed and running as you like button' then i won't be installing that.

Well the main problem is that the 2nd machine, with the internal IP i dunno how to set it up so it sees the internet and i dunno how to set it up so it see's the internet.  technically 2 points, but such a big one it's worth mentioning twice. (ahh.. classic red dwarf joke)

I also believe i have to forward ports for such things as Steam, Kazaa, mIRC, etc, etc.  Just how do i find out what ports to forward and what to stop?

 
 

Anonymous

my preferred solution would be to get the windows server to run dhcp and allocate all you need from that (IPs, Gateways, DNS addresses etc). However, if you are "uncomfortable" with setting up DHCP then a manual approach on the client machine will suffice.

I'm assuming that you ran the NAT wizard OK and that is working. I have also made a big assumption and that is that the NAT service will allow traceroutes through.

First, check the IP address and mask of the LAN NIC on your server. Suggest you use 192.168.1.1 and a mask of 255.255.255.0. NB that it is best not to allocate a default gateway to the internal NIC on an MS server (it is more secure that way).

Based on the IP of your NIC allocate an IP to your client PC (such as 192.168.1.2) and give it the same mask. You should provide the IP of the server NIC as the default gateway of your client.

At this point I suggest testing the connection. Try to traceroute to homer.deadmen.co.uk by IP not by NAME (193.110.88.20). If that works we can move on, if not then check that you can ping your server - if not, go drink heavily to raise your spirits then check for typos

If the ping to homer works we now need to tell your client machine how to resolve names. Look at the config of your DSl Modem?cable modem and see what DNS servers are allocated.  Put these into the IP config of your client PC and then try traceroute to homer by NAME and not IP. If that works then go drink heavily to celebrate as everything works.

let us know how this goes and we'll move onto to the next part (joined up IP ;))

tugs

Smoothwall is a nice easy firewall for linux. I know you aren't likely to go the linux route, but it had to be said. Many linux installs _are_ pretty much point and click these days - and once it's set up, who cares anyway? not like it's your day to day machine...

Presuming smoothwall is still free, of course.
tugs
CCIE, MCSE, GIT, LIAR, FOOL

DogMeat

QuoteOriginally posted by JB@Sep 30 2003, 08:12 PM
As i know feck all about Linux and unless it turns there's a 'click here for Linux installed and running as you like button' then i won't be installing that.
You obviously didn't bother to click the link.

Good luck with your continued pissing about with windows.

DM
[SIGPIC][/SIGPIC]
Some pixies. No cars. No talent.

TeaLeaf

I have to admit that I didn't click the link either - my distinctly limited linux knowledge was a mental block in that respect.  :(   However I have now and am pleasantly surprised - it looks real nice - and works with a Microsoft Wizard interface ::

Check it out JB.......

TL.
TL.
Wisdom doesn\'t necessarily come with age. Sometimes age just shows up all by itself.  (Tom Wilson)
Talent wins games, but teamwork and intelligence wins championships. (Michael Jordan)

JB

Am i wrong in thinking Linux doesnt support usb?  Only i use a usb modem to connect to the net.

 
 

tugs

A cursory web search (i.e. google "linux usb modem support") would indicate that you are wrong, and linux does support USB and indeed USB modems. Whether all linux distributions support USB, and whether those that do have USB support all USB devices is a different question. And coyotelinux appears not to support non-serial modems based on the "system requirements" on the front page.

That's not to say that I'd say linux's USB support exactly rocks, but it's there of a sort.

Of course, if you're happy playing with Windows, then it's a moot point.
tugs
CCIE, MCSE, GIT, LIAR, FOOL

Rad_Man

I gave up on the linux coyote thing and just went to pc world(cough cough) and purchased a belkin Cable modem router with 100Mb 4 port switch and built in manageable firewall. COST : £40.00

Works a treat , supports VPN connections both ways and is a breeze to install, added bonus LIFETIME WARRANTY
"Do, or do not. There is no \'try\'."

tugs

QuoteOriginally posted by Rad_Man@Oct 1 2003, 11:38 AM
I gave up on the linux coyote thing and just went to pc world(cough cough) and purchased a belkin Cable modem router with 100Mb 4 port switch and built in manageable firewall. COST : £40.00

Works a treat , supports VPN connections both ways and is a breeze to install, added bonus LIFETIME WARRANTY
I'm curious - true (e.g. Stateful) firewall, or "NAT Firewall"?
tugs
CCIE, MCSE, GIT, LIAR, FOOL