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 >
Using netfilter/iptables

Reply  
Thread Tools
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
14-Jun-2004, 02:40 PM #16
Lynch is right -- you need a hub or switch or router (in which case you don't n eed the router PC to do routing; it just becomes another workstation on the LAN). I completely missed that you did not include any of this hardware in your description, which was my fault, not yours! Anyway, you might consider using one of these solutions (I'd recommend a router with an integrated firewall) instead of using the PC to do routing, unless you just want to experiment and learn (which is an excellent reason). Note that your router PC will always have to be on for other workstations on the LAN to access the internet; using a separate router avoids this problem. You can pick up a four-port router fairly cheaply, especially if you don't need the latest and greatest capabilities (e.g., 108 Mbs wireless) -- and there are some very good deals available even on the current technology (e.g., http://www.amazon.com/exec/obidos/tg...onics&n=507846) With router prices so reasonable, and the additional protection of a firewall, there's almost no reason to consider a hub or switch (my opinion).

Sorry for the confusion.
__________________
The slowest component still sits at the keyboard.
Dirk Gently's Avatar
Member with 106 posts.
 
Join Date: May 2003
Location: Philadelphia, PA, USA
Experience: Intermediate
14-Jun-2004, 04:19 PM #17
Oh, it's fine. Glad to have it cleared up now. You see, I was using a router for a while, a netgear... RP614, i think? Anyway, it was driving me nuts, wouldn't forward ports correctly, disconnected me continually... I tried everything, changing settings, MTU, even updating the firmware multiple times. Anyway, the reason I'm trying to go the "hard" way now is exactly as you said; I just want to experiment and learn ;-) Having a router and this separate PC would, of course, be redundant, but I think it would be very useful to have a linux terminal always available on my "network" (the "always on" is not a problem; the computer I'm using now, with Windows 2000, is usually on for weeks straight, although I like to boot into different OS's sometimes, which disrupts the connection of the other one...)
Anyway, I just found my old Redhat 8 CD's which reminded me of something, I need a DHCP server running to get the "client" computers to be able to connect automatically, don't I?? No wonder it wasn't working... If I installed RH8 could I use it in this way? I mean, does it come with the right tools? Thanks again!
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
14-Jun-2004, 04:42 PM #18
In one of my last networking classes I took, we setup our server with Red Hat 7.2. It was our Samba and DHCP server. It was also running Iptables and was doing NAT translation. I am trying to find the documentation for you in the pile of crap I have down in my server room.
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
14-Jun-2004, 04:51 PM #19
Dirk Gently's Avatar
Member with 106 posts.
 
Join Date: May 2003
Location: Philadelphia, PA, USA
Experience: Intermediate
14-Jun-2004, 08:48 PM #20
Hey, thanks again! I'd really prefer to use a somewhat "standard" Distro, for the learning and functionality aspects, although I don't know if I could get a GUI running (64MB RAM). I'll use something like IPcop or smoothwall if I have to, though. So I'd need NAT, done with iptables, along with DHCP, you think? "Server room"? That sounds impressive. Anyway, thanks for putting the effort into this, I really appreciate it!
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
15-Jun-2004, 03:22 AM #21
Note that you do not have to use dynamically-assigned IP addresses; instead, you can use static IP addresses for each workstation on your LAN, removing the need for a dhcp server. This is also a great first step, since you can verify that everything works properly before throwing DHCP into the mix.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
Dirk Gently's Avatar
Member with 106 posts.
 
Join Date: May 2003
Location: Philadelphia, PA, USA
Experience: Intermediate
15-Jun-2004, 03:28 AM #22
Oh, well, that sounds just fine, then. But, I just realized, where do the client IP addresses come "into the mix" at all? I realized they aren't mentioned at all in those iptables rules I tried before (umm... is that a problem?)
liviu's Avatar
Member with 116 posts.
 
Join Date: Mar 2004
Location: Charleston-SC, USA
19-Jun-2004, 11:54 AM #23
Well, look what I found about your subject (iptables masquerade) :

http://www.linuxdig.com/howto/ldp/IP...rade-HOWTO.php

It's quite new, and there you can find a bunch of fresh HowTo's:
http://www.linuxdig.com/documents/howto.php

HTH,
liviu
Dirk Gently's Avatar
Member with 106 posts.
 
Join Date: May 2003
Location: Philadelphia, PA, USA
Experience: Intermediate
21-Jun-2004, 12:38 AM #24
Hey thanks, that looks very promising! I'm afraid I'm just about to leave home for a week but I'll work my way through it as soon as i get back again. Again, thanks to all for the help.
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 11:12 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.