LinuxQuestions.org
Help answer threads with 0 replies.
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 06-12-2006, 02:43 PM   #1
streamalot
LQ Newbie
 
Registered: Feb 2002
Posts: 13

Rep: Reputation: 0
Multiple Interfaces + Cisco 515 and default NIC


Debian Sarge
Kernel 2.6.15

I have a box that is in our DMZ behind a couple of routers. The box has 3 interfaces for different apache virtual sites. To get back out of the firewall to the public internet each IP needs to be setup in a translation group on the Cisco. The problem is that I am defaulting out of the one of the new IP's which does not have a translation group setup on the cisco. An easy fix would be to add the translation group for the new IP, but I would rather not do that.

With that said, how do I force public traffic to go out a certain IP/Interface? Everything is leaving from 192.168.1.52 and I would like it to leave via 192.168.1.50...Is this a perfect use for Iptables? If so, what is the easiest way to accomplish this?

/etc/network/interfaces

# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.1.50
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
hostname projects
dns-nameserver 192.168.187.1 192.168.178.2

auto eth1:0
iface eth1:0 inet static
address 192.168.1.51
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

auto eth1:1
iface eth1:1 inet static
address 192.168.1.52
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

Thanks a bunch!
 
  


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
vsftpd using multiple interfaces BottleNeck7 Linux - Networking 2 02-14-2006 11:00 AM
multiple interfaces, default gateway sopiaz57 Linux - Networking 6 05-03-2005 03:02 PM
1 nic, 2 interfaces show up.. grcore Linux - Hardware 8 01-08-2005 02:46 PM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 06:01 PM
Multiple interfaces prroblem liuyangtj Linux - Networking 9 09-25-2001 04:20 AM


All times are GMT -5. The time now is 06:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration