LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 12-09-2004, 10:44 AM   #1
Tinochelli
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 18

Rep: Reputation: 0
Routing between 2 NICs


I am getting a little confused with the process of setting up routing on a fedora C2 box. All i want to do is firstly forward traffic from the Eth1 (192.168.0.1) out to the Eth0 (10.61.0.0) network.

At the moment i have no traffic getting routed so i have turned off the fire using:

service iptables stop
chkconfig iptables off

this made no difference. my routing table is as follows

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 homer 255.255.255.255 UGH 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
10.61.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.61.0.3 0.0.0.0 UG 0 0 0 eth0


Internal Network = Eth1 (192.168.0.1)
External Network= Eth 0 (10.61.0.0)

What is wrong with this setup?

Thanks in advance
 
Old 12-09-2004, 10:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
it's all down to your iptables rules, you need to enable NAT on the box that's doing the routing. you might like to look at a GUI like firestarter for doing this, or look at the ipmasq howto.
 
Old 12-09-2004, 10:53 AM   #3
Tinochelli
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 18

Original Poster
Rep: Reputation: 0
ok, i think i would prefer to do it via ipmasq as opposed to a s/w package.

if u hav any links or advice that u think may prove useful they would b much appreciated.

thanks for reply so quickly

Tino
 
Old 12-09-2004, 10:56 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
There's no place like google.

http://www.google.com/search?q=ipmasq+howto
 
Old 12-09-2004, 11:33 AM   #5
Tinochelli
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 18

Original Poster
Rep: Reputation: 0
what is the process of routing internal packets to an outside network like the internet.

Fedora C2

1.Setup LAN
2. Enable NAT
3. Routing Table Entries

Is this right ?

am i missing anything>?

Help as opposed to links would be greatly appreciated

thanks in advance
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem routing between 2 nics linuxdoctor Linux - Networking 3 08-17-2004 06:18 PM
routing/forwarding between multiple (3+) nics sublime Linux - Networking 2 07-26-2004 02:22 AM
routing two NICs to internet pero Linux - Networking 4 01-09-2004 04:36 PM
dual nics and routing dhill Linux - Networking 2 11-18-2003 10:12 AM
Routing with 3 nics _TK_ Linux - Networking 2 09-25-2001 11:32 AM


All times are GMT -5. The time now is 06:36 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
Open Source Consulting | Domain Registration