LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-31-2002, 06:38 PM   #1
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Rep: Reputation: 16
Routing


OK, I need help with routing, I have a linux firewall with 2 NICS, one goes out to the internet, and the other goes out to my LAN. I do ipchains, ipmasq, and everything works fine. Here's the deal though. I want to give one of my NICS 2 ip address, I know how to do that, BUT What i need help on is routing, I want to tell my firewall to route all network traffic coming from this outside ip to a certain internal IP, how can i do that?
 
Old 01-31-2002, 11:30 PM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Lightbulb Here is my solution.

Hi ,

iam sorry but i didnt get ur needs. So i assume that u have two NIC's and that one of the NIC's has two IP address binded ( thru ip aliasing ). My answers are based on this assumptions.


1. If u want packets coming in from a external host with ip a.b.c.d to be redirected to another internal LAN ip address ( or ur aliased ip address ) ..... for this u need iproute2 util ..... basically used for bandwidth shapping Quality of Service ( QoS ), CBQ . There are numerous howto's and tutorials for accomplishing this ... search on www.google.com with the keywords "bandwidth shaping", QoS, CBQ, iproute2, etc.

But before rushing in for QoS solution please check out the functionality provided by iptables s/w ...... check out the following links :

http://www.linuxguruz.org/iptables/

check out all the scripts .... specially http://www.linuxguruz.org/iptables/s...rewall_016.txt

since i havent used iptables so i dont know if it will accomplish ur tasks or not hence i gave the solution for CBQ .... but if u have to choose between iptables and iproute2 for simple needs of yours i will definately recommend iptables since its relatively simple to configure.



2. packets coming in from a external host with ip a.b.c.d on port
X to be redirected port Y can be accomplished by ipchains or iptables util.

hope this is what ur looking for. Pls do close this thread if ur task is accomplshed by posting a reply mentioning so.

regards,
xanthium.


Last edited by xanthium; 01-31-2002 at 11:36 PM.
 
Old 02-01-2002, 10:32 AM   #3
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Original Poster
Rep: Reputation: 16
This weekend

You provided me with a lot of good information. I will do more research, and I will try it this weekend. I already do IP chains, so I will do either QoS or IP Tables, looks like IPtables will be the easier way, but we will see, thanks. I'll reply to this post and post what I came up with and what worked.
 
Old 02-08-2002, 05:06 PM   #4
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Original Poster
Rep: Reputation: 16
Unhappy Kernel upgrade

Ok, after reading and reading I found out what i have to do. Well, i need to
upgrade my kernel. I have red hat 6.2 with kernel 2.2.14, and I need kernel 2.4.xxx.

OK, i have a question, if i upgrade my kernel, will that reset all my current settings?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
routing jmono Linux - Networking 5 02-07-2006 07:20 AM
Ip Routing alanfullmer Linux - Networking 1 03-18-2005 01:20 PM
Routing gtkmike Linux - Networking 1 11-13-2003 10:21 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 04:11 PM
Routing in RH 8.0 Hybrid Blue Linux - Networking 2 10-12-2003 06:41 PM

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

All times are GMT -5. The time now is 03:01 PM.

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