LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-31-2005, 12:08 AM   #1
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 210

Rep: Reputation: 30
Question Double Team


Hi there,
I just want to make it clear... Suppose I have 2 real IPs A.A.A.A and B.B.B.B
Now, there are 2 subnets... 192.168.0.0/24 and 172.16.0.0/24
I have 2 NICs. One I can use for real IPs and Other one is for private IPs. Or I can use 2 diff nics for 2 diff private IPs... Here is my NAT rules...

Code:
A.A.A.A -->NAT+PortFwd (just to hide the machine) -->172.16.0.2/24
B.B.B.B -->NAT only to share the net --->192.168.0.0/24 network
Now, is it possible??
 
Old 01-01-2006, 03:46 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
I think it needs a bit more explanation pls..
 
Old 01-01-2006, 03:52 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by aq_mishu
Hi there,
I just want to make it clear... Suppose I have 2 real IPs A.A.A.A and B.B.B.B
Now, there are 2 subnets... 192.168.0.0/24 and 172.16.0.0/24
I have 2 NICs. One I can use for real IPs and Other one is for private IPs. Or I can use 2 diff nics for 2 diff private IPs...
You can use one IP for one NIC or two IPs on one NIC. It's your choice. However... Not all iptables rules are possible when you have multiple IPs on one interface.

Quote:
Code:
A.A.A.A -->NAT+PortFwd (just to hide the machine) -->172.16.0.2/24
B.B.B.B -->NAT only to share the net --->192.168.0.0/24 network
Now, is it possible??
Why not? I see no problem.
 
Old 01-15-2006, 03:19 AM   #4
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 210

Original Poster
Rep: Reputation: 30
Then How??

Then how??
 
Old 01-16-2006, 04:55 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
When you write NAT rules (using iptables) you can specify the interface it applies to. When the IPs are on different interfaces, that's all you need. At which point do you have doubts?
 
  


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
Double the desktop, not double the fun! bizshop Suse/Novell 3 08-26-2005 12:22 PM
anyone like to sponor my team...? questionasker General 1 03-03-2004 06:40 AM
ThanX Conectiva Team :-) Xterminator Conectiva 0 08-05-2003 12:54 PM
Starting a Team jt1020 General 13 05-29-2003 07:26 AM
We've got a Seti@HOME team, so how about a Folding@HOME team? Thymox LQ Suggestions & Feedback 9 04-30-2003 07:42 PM


All times are GMT -5. The time now is 12:58 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration