Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Want to make a Network Gateway

Reply  
Thread Tools
Omega_Shadow's Avatar
Senior Member with 4,324 posts.
 
Join Date: Aug 2004
Location: Somewhere south of Hell
Experience: Bringing Linux to the Masses
28-Nov-2006, 02:09 AM #1
Want to make a Network Gateway
Simply put, got a computer with two nic cards; one connected to the router, my home network and the internet. Then other, connected to an auxiliary computer in my room for testing and experimentation. I want the auxiliary computer to access the internet as well as the local network. So far, after running the internet connection sharing wizard in the control center of the "gateway" pc, I can't get aux to connect to squat.

Any ideas?

"gateway" OS:
PCLinuxOS .93a BigDaddy
__________________
I'm not here. I am just more likely to be here then not be here. It's physics, I don't expect you to understand.
drgoodtrips's Avatar
Computer Specs
Junior Member with 17 posts.
 
Join Date: Nov 2006
Experience: Developer
28-Nov-2006, 06:59 PM #2
Quote:
Originally Posted by Omega_Shadow
Simply put, got a computer with two nic cards; one connected to the router, my home network and the internet. Then other, connected to an auxiliary computer in my room for testing and experimentation. I want the auxiliary computer to access the internet as well as the local network. So far, after running the internet connection sharing wizard in the control center of the "gateway" pc, I can't get aux to connect to squat.

Any ideas?

"gateway" OS:
PCLinuxOS .93a BigDaddy
I take it you want to be able to use the "gateway" box as more than just a glorified router? If not, there are tiny Linux distributions that you can put on the box, which actually allow Windows configuration the way a router you purchase at Circuit City might.

If you want to use the box, I imagine that you'll need to use the "ipchains" command. I believe something like:

ipchains -A input -i <your second NIC interface i.e. eth1> -s <your test box ip> -d <your router ip> -j ACCEPT

is a good starting point. I don't remember if that will accomplish what you want on its own, or if you also have to tell it separately to forward. From there, you can simply configure your test box to connect to your router's IP, as per normal. Linux will see those requests and pass them along, provided they're from the test box's static IP.

(Note - I might not have the ipchains syntax right off the top. You can either consult the man pages or, if it doesn't exist, download it. I think most Linux distributions include it)
Omega_Shadow's Avatar
Senior Member with 4,324 posts.
 
Join Date: Aug 2004
Location: Somewhere south of Hell
Experience: Bringing Linux to the Masses
28-Nov-2006, 08:07 PM #3
Yeah, don't want to turn my primary computer into just a router

Will try ipchains. If you find out anymore info I would love to hear about it. Even if I can't use the info right away I like learning about networking.
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
28-Nov-2006, 08:25 PM #4
I am confused. If you have a router, why not just connect everything to the router.
Omega_Shadow's Avatar
Senior Member with 4,324 posts.
 
Join Date: Aug 2004
Location: Somewhere south of Hell
Experience: Bringing Linux to the Masses
28-Nov-2006, 10:09 PM #5
Router is full. Only has four ports for cat5 and this test computer is not worth going out and buying a wireless adapter or a new router. Just some old POS I put together from parts I had laying around.

Not to mention it gives me the chance to learn some more about networking with linux
__________________
I'm not here. I am just more likely to be here then not be here. It's physics, I don't expect you to understand.
fenderfreek's Avatar
Computer Specs
Senior Member with 201 posts.
 
Join Date: Mar 2006
Location: Raleigh, NC
Experience: Advanced
29-Nov-2006, 11:11 AM #6
Try using Firestarter in gnome, or maybe Kmyfirewall in KDE. I haven't used the latter much at all, but it seems more full featured. Both are GUI ipchains/iptables editors, so you can use them for routing/firewall configuration. Kmyfirewall has a nice little wizard and all sorts of tools to make configuration a lot easier, though I'm rather unfamiliar with it, so I can't give you any specifics.
Routing and firewall config from the console isn't something I do much, almost never really, but using a GUI makes it go a lot more quickly since I don't have to learn new command and syntaxes.
__________________
NCSU CSC Major
Registered Linux user #433004
  • Dell Vostro 1500 with Ubuntu 7.10
  • Intel Q6600 Quad Desktop running XP Pro
If this helped you, please take the time to rate the value of this post: http://rate.affero.net/fenderfreek/

Windows [n.] - A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
29-Nov-2006, 04:43 PM #7
Quote:
Originally Posted by Omega_Shadow
Router is full. Only has four ports for cat5 and this test computer is not worth going out and buying a wireless adapter or a new router. Just some old POS I put together from parts I had laying around.

Not to mention it gives me the chance to learn some more about networking with linux
I would be you could pick up an old hub or switch for under $10, maybe even cheaper.
Omega_Shadow's Avatar
Senior Member with 4,324 posts.
 
Join Date: Aug 2004
Location: Somewhere south of Hell
Experience: Bringing Linux to the Masses
29-Nov-2006, 06:11 PM #8
But what's the fun in that?

Thanx fenderfreak. Will try that when I get home. Right now I am fighting my windoze work computer
Omega_Shadow's Avatar
Senior Member with 4,324 posts.
 
Join Date: Aug 2004
Location: Somewhere south of Hell
Experience: Bringing Linux to the Masses
02-Dec-2006, 03:50 AM #9
at first I thought it wasnt working but then I realized I didnt have a crossover cable going to have to pick up an adapter or make a cable in the morning. The simple mistakes are the ones that hurt the pride the most
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:58 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.