LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-08-2005, 06:19 PM   #1
grimhammer
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian
Posts: 8

Rep: Reputation: 0
how to do? using a linux comp to act as router for a windows comp


Hi all.

I'm running slackware 10.0 with gnome 2.6 on a computer with dual network cards, one external PCI and one integrated on the motherboard. I'm also running a windows 2000 with a single integrated card. All three cards work, in the matter of hardware, so that's checked.

Now, what I want to do is to connect one of the cards on the slackware comp to my internet, the other card to the windows comp and share the connection between the two computers, so that they can both use it.

I've checked the status of the cards with ifconfig and they're all there, question is, how to do it all? I'm recently converted and if this is solved i'm a slacker for life

I've checked around a little but haven't yet found anything that can help me. Anyone know where to start in this mess? Like I said, I'm rather new to this.

*edit* If you need any other information I'd be happy to supply it



If you want the output from ifconfig, here it is:

eth0 Link encap:Ethernet HWaddr 00:80:48:1E:A7:A2
inet addr:194.47.142.113 Bcast:194.47.143.255 Mask:255.255.254.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51384 errors:0 dropped:0 overruns:0 frame:0
TX packets:6009 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10610200 (10.1 Mb) TX bytes:742159 (724.7 Kb)
Interrupt:12 Base address:0x5000

eth1 Link encap:Ethernet HWaddr 00:07:95:CA:F4:C7
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23386 (22.8 Kb) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x7000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:326 errors:0 dropped:0 overruns:0 frame:0
TX packets:326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24076 (23.5 Kb) TX bytes:24076 (23.5 Kb)

Last edited by grimhammer; 02-08-2005 at 06:22 PM.
 
Old 02-09-2005, 10:17 AM   #2
Bent Wookie
LQ Newbie
 
Registered: Aug 2004
Distribution: RedHat Debian Gentoo Suse
Posts: 1

Rep: Reputation: 0
I would suggest something like gshield, available at http://muse.linuxmafia.org/gshield/

I used it before deciding to dedicate an old Pentium classic machine with 4 ethernet interfaces to IPCop (http://www.ipcop.org/).

There are simpler scripts around, but why not protect the poor windows box from instant ownage by running a halfway decent firewall.

Have fun! You might learn something about iptables in the process - I sure did.
 
Old 02-09-2005, 10:29 AM   #3
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
The hard (but the best way :
http://iptables-tutorial.frozentux.n...-tutorial.html
http://www.ds9a.nl/2.4Networking/howto/

I know that's a bit of reading... but it answers lots of questions
 
Old 02-09-2005, 01:32 PM   #4
grimhammer
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
well, I'm pretty much just sitting here, scratching my head.

If I just want to get it to work before going under with those, can't it be done with route and ifconfig? Should be pretty easy, but I just can't get it to work

Current setup:
windows box ip : 192.168.0.10
linux box ip (leading to win box) : 192.168.0.1
linux box ip 2 (to the net, duh) : 194.47.142.113

now if I just want the traffic from the windows box to be redirected to 194.47.142.113, how would I accomplish that?
 
Old 02-09-2005, 02:46 PM   #5
troycus
Member
 
Registered: Sep 2003
Posts: 84

Rep: Reputation: 15
I've been tring to do something similar to what your doing for the longest time but to know avail.

I have DSL, i'm using linux redhat 9.0 and windows xp. I want to use the linux box as the main connection to the internet and my xp box to share the internet connection vis of a hub. My linux box has 2 ethernet cards installed. Eth0 is connected to the internet while eth1 is connected to the hub. I have my xp box connected to one of the ports in the hub.

The problem I'm running into to is that my linux box can connect to the internet through eth0 with know problem. when I turn on the second ethernet card eth1 I loose my internet connection. When I turn eth1 off I get my internet connection back.
 
Old 02-09-2005, 09:18 PM   #6
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
hey is this what you looking for:

http://207.58.143.178/forums/showthread.php?t=48464
 
Old 02-10-2005, 07:10 AM   #7
grimhammer
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
got anything that isn't distro-specific or works with slackware?
With that said, it's something like that that I'm looking for, easy and quick, will do all the tricky parts when I feel I know what I'm doing.
And with that said, I'm off to try it out m'self.
 
Old 02-10-2005, 10:22 AM   #8
nukenstien
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Rep: Reputation: 0
i have a very simple firewall script that block most traffic from trying to access you but lets out all traffic, because of the nature of the firewall if you want to use anything like bit torrent then your have to make a hole in the firewall before it will work. It is pretty much the same as using a di-link or linksys router, cause you have to forward traffic for bit torrent through those as well.

nuke
 
Old 02-10-2005, 09:56 PM   #9
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
Quote:
Originally posted by grimhammer
[B]got anything that isn't distro-specific or works with slackware?
/B]
uhmm..intsall SQUID package and follow same steps.

Get Squid from here: http://www.squid-cache.org/
 
  


Reply


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
Two comp network with belkin wireless card and router windell Linux - Wireless Networking 1 07-24-2005 05:49 AM
How do i turn an old comp into a router? NovaWo1f Linux - Networking 5 06-04-2004 06:06 PM
Getting linux up from a previously windows me comp Firebox Linux - Newbie 1 03-27-2004 06:59 PM
couldn't ping a WinXp comp from Fedora Comp tanbetien Fedora 5 12-04-2003 06:03 AM
Two domains, linux router, Route 1 domain to internel comp. lil_critter99 Linux - Networking 1 02-09-2002 02:16 AM


All times are GMT -5. The time now is 05:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration