LinuxQuestions.org
Help answer threads with 0 replies.
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 08-27-2003, 03:59 PM   #1
benazonafunk
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Rep: Reputation: 0
Unhappy bind nics


what is the easiest way to bind nic cards? I have 1 public ip, 3 nic cards in my red hat 9 box, and a LAN i need to NAT throught the public ip. i am also doing some port forwarding using iptables. DO i need the additional nic card? i have prepared my switch with a VLAN so i may accomplish this. thank you in advance.

Last edited by benazonafunk; 08-27-2003 at 07:09 PM.
 
Old 08-28-2003, 12:43 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
what do u mean by "bind" your NICS?

3 nics and a switch should be more than enough for a small network setup. What are you trying to do?

With the switch you only need 2 NIC cards, 1 for the external and 1 to connect to the switch.

for you nating rules you can use (and SHOULD use) iptables:

example:

iptables -A POSTROUTING -t nat -s $LAN -j SNAT --to $PUBLIC_IP

or if you have a dynamic public IP

iptables -A POSTROUTING -t nat -s $LAN -j MASQUERADE

(where $LAN=192.168.0.0/24 for example and $PUBLIC_IP is you public IP address)

a port forwarding example:

iptables -A PREROUTING -t nat -p tcp --dport 80 -j DNAT --to $WEBSERVER


that will forward all web requests (port 80) to the $WEBSERVER machine (where $WEBSERVER can be replaced with the ip of the webserver i.e. 192.168.1.200 or something like that).


for more help on iptables, you can either ask if u have specific questions or do search on the forums:

http://www.linuxquestions.org/questions/search.php
 
Old 08-28-2003, 11:36 AM   #3
benazonafunk
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I got that from your first reply to a different post. i really like your approach and appreciate your good advice. I just want to be certain that traffic is traveling INTO eth1(public ip) from the internet and out through eth0(private dhcp nat addresses), and vice-a-versa. How do I validate the cards with one another?
 
  


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
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
BIND/2 NICs on same server branden_burger Linux - Networking 10 12-27-2004 05:00 AM
How to bind services to exclusive nics? CrackerJackMack Linux - Networking 20 12-17-2002 02:04 PM
How do I revert to Bind 8 from Bind 9? digging4roots Linux - Newbie 3 06-08-2002 04:40 PM
To 'Bind' or not to 'Bind' that is the question jsurgeson Linux - Newbie 2 03-24-2002 03:10 AM

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

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