LinuxQuestions.org
Visit Jeremy's Blog.
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 09-22-2006, 12:07 AM   #1
danj_fc5usr
LQ Newbie
 
Registered: Aug 2006
Location: Tri-Cities, Washington
Distribution: Fedora Core 5
Posts: 17

Rep: Reputation: 0
Route dumping settings.


I have finally gotten my FC5 firewall running, however here is the problem that I am having.

Current route -n output

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1

Here is how the routing is supposed to be, and if the above mentioned routing is wrong, let me know please!

LAN -> WAN packet transversal:

LAN -> eth0 -> IPTables & Squid -> eth1 -> WAN

WAN -> LAN packet transversal:

WAN -> eth1 -> IPTables & Squid -> eth0 -> LAN

Now, here is where my problem is, **IF** I go back and check the routing later tonight or tomorrow, this is how it looks:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

So far I have had to change the routing what seems like every time.

If there is something I can do, I'd like to know please!

Thanks!!
 
Old 09-22-2006, 07:05 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Does this happen on its own or does a change or network restart did this ?
 
Old 09-22-2006, 07:59 PM   #3
danj_fc5usr
LQ Newbie
 
Registered: Aug 2006
Location: Tri-Cities, Washington
Distribution: Fedora Core 5
Posts: 17

Original Poster
Rep: Reputation: 0
Well, it appears to change on it's own... Has not changed today though
 
Old 09-22-2006, 08:30 PM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
check ps -AH for dhcpcd or dhclient and please confirm there is no seperate dhcp server running on your lan side
 
Old 09-22-2006, 09:21 PM   #5
danj_fc5usr
LQ Newbie
 
Registered: Aug 2006
Location: Tri-Cities, Washington
Distribution: Fedora Core 5
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nathanael
check ps -AH for dhcpcd or dhclient and please confirm there is no seperate dhcp server running on your lan side
Well the only other device that could run DHCP, the router, is disabled. DHCP is running on this linux box, but eth0 / eth1 are configured for static at this time. If I put eth1 on WAN then it will be switched over.
 
Old 09-23-2006, 03:00 AM   #6
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
i assume it is dhcp3-server that you are using - you can tell a dhcp server which device to we working on - force it to run on eth0
or better yet - dissable the dhcp server for some time and see if that makes a diff - then you at least know if it is dhcp server at all that is causing the issue - though if the local routing table is alterd without your influence it either is a script locally or dhcp
even with statically assigned ip's it is still possible to retreive routing and dns info from a running dhcp server
you may want to check your /etc/dhclient /etc/dhclient-script or dhcpcd config (i do not know the files relevant for dhcpcd)
 
Old 09-23-2006, 03:46 PM   #7
danj_fc5usr
LQ Newbie
 
Registered: Aug 2006
Location: Tri-Cities, Washington
Distribution: Fedora Core 5
Posts: 17

Original Poster
Rep: Reputation: 0
Well, it appears as though the routing has fixed it's self, It's now gone 2 days without dumping the routing or disabling packet forwarding.

If I have any more problems, I will re-check my logs and see what could be causing it.

I will also try what you suggested Nathanael!

Thanks
 
  


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
Novell is dumping KDE, so I'll be dumping SuSE KimVette SUSE / openSUSE 10 11-12-2005 08:09 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
saving 'route' settings sparky_132 Linux - Wireless Networking 3 10-13-2004 04:42 AM
route settings get changed after reboot brynjarh Linux - Newbie 1 07-08-2004 01:03 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 12:14 PM

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

All times are GMT -5. The time now is 02:21 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