LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-22-2004, 09:33 PM   #1
rdd
LQ Newbie
 
Registered: May 2004
Posts: 11

Rep: Reputation: 0
Unhappy Need Linux machine to route / packet forward


Hello --

I post here a broken man. I've spent the entire day trying to reconfigure my (modest) home network (way to spend a day off, eh ), and am near to giving up for the night. Here is what I'm trying to accomplish:

Cable modem --> Linux machine (web server, Snort, Ethereal) --> WAP + 4-port switch --> internal network computers (3)

Now, my (main) problem lies in getting this Linux box to route/forward traffic on to the WAP and WAP-connected internal machines (I think). It has two NICs (obviously), both of which are functioning. I have eth0 connected to the cable modem, w/ dhcp addy. eth1 I've statically assigned a private IP. /etc/sysctl.conf net.ipv4.ip_forward = 1. WAP and the internal network are functioning fine amongst themselves. The Linux machine can access the internet (thank god - otherwise I wouldn't know what to do ). I *cannot* ping from Linux into the internal network, or vice versa. Firewalls have been (temporarily) turned off on all machines.

Two things come to my mind:
1) for some reason, routes that I have added for eth1 (to WAP and internal network) in the Network Configuration applet do not show up with a 'route' command. Strange, no? Is this a problem? Should I manually add them from the command line? (I would have already, but the syntax perplexes me)
2) Do I need additional "routing" software for a setup as simple as this? This hadn't even occurred to me as a possibility until I did some browsing around the boards tonight. Freesco, Smoothwall, etc....do I need one of these?? I am not opposed; I just hadn't thought a simple forwarding arrangement would require it. If I do need somethingalong these lines, any recommendations between these two, or for others? Obviously, I am not an expert at Linux/Networking/Routing, but I would like to learn the most "realistic" package, if not too difficult.

Well, that is it for now, I guess. Sorry for being so longwinded. Any helpful replies are greatly appreciated. I'd be glad to provide more detail as needed also.

Thank you kindly.
 
Old 06-24-2004, 02:16 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi!

I can't solve your problem - but a hint - can you post the output of netstat -r? Might help some other guru id what you are doing wrong.
 
Old 06-24-2004, 06:35 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,734

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
What is the WAP + 4-port switch? Make / model.

What are the IPs your assigning on eth1 & internal networks.
 
Old 06-24-2004, 09:59 AM   #4
rdd
LQ Newbie
 
Registered: May 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Hey guys --

thanks for your replies. I've actually given up, and gone back, "tail between legs", to my previous network config (with a few twists). I think I bit off too much this time around -- I'm going to spend a few months reading up on routing, linux firewalls, etc. before I try again. In the meantime, it is much safer for me to keep my linux box back behind my WAP firewall (which, incidentally, is a DLink Dl-614+).

Thanks for offering to help, though -- I may take you up on it again in a few months.

Cheers,
 
  


Reply



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
Apache, forward requests to a vmware virtual machine Hube Linux - Software 2 09-02-2004 09:58 AM
Linux router packet forward problem netguy2000 Linux - Networking 1 03-26-2004 07:30 AM
Linux router - setting up a DMZ or default machine to route to Rooboy Linux - Networking 12 02-18-2004 03:44 PM
get msg from the packet passed through in a Linux route using C becky_starr Programming 12 02-18-2004 08:25 AM
(Very) Silly question about route packet filtering Half_Elf Linux - Networking 0 10-04-2003 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration