LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-16-2004, 06:46 AM   #1
executive
LQ Newbie
 
Registered: Oct 2004
Posts: 10

Rep: Reputation: 0
Routing Problem


I have two interfaces eth0 and eth1 as follow.

eth0
IP: 10.0.0.50
Mask: 255.0.0.0

eth1
IP: :216.236.98.37
Mask: 255.255.255.240
GW: 216.236.98.33

I want to use eth1 as my external interface (for internet) and 216.236.98.33 as gateway and it was working perfect but now my internet performance goes down very badly. I am feeling that my routing table causing problem.

Here is my routing table output.

Destination Gateway Genmask Flags Metric Ref Use Iface
216.236.98.32 * 255.255.255.240 U 0 0 0 eth1
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 216.236.98.33 0.0.0.0 UG 0 0 0 eth1

Is it correct or I have to make some changes and I want to know is there any impact of NATing and MASQEURADing on routing table. If yes then here is my iptables rules list.

touch /var/lock/subsys/local
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -F -t mangle
iptables -Z -t mangle
iptables -F -t nat
iptables -Z -t nat
iptables -F
iptables -Z
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t mangle -A FORWARD -p tcp --dport 1863 -j TOS --set-tos Minimize-Delay
iptables -t mangle -A FORWARD -p tcp --dport 5000 -j TOS --set-tos Minimize-Delay
iptables -t mangle -A FORWARD -p tcp --dport 5050 -j TOS --set-tos Minimize-Delay

Please help me this problem making me mad.
 
  


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
routing problem DRagonRage Debian 8 09-21-2005 03:29 PM
routing problem DRagonRage Linux - Networking 1 09-21-2005 01:02 PM
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 02:59 AM
Another Routing problem Bambi Linux - Networking 2 06-03-2004 03:13 PM
routing problem nowonmai Linux - Networking 2 10-09-2003 07:59 AM

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

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