Networking Forums

Networking Forums > Computer Networking > Linux Networking > IP Alias & IPtables, redirecting outbound traffic out specific interfaces

Reply
Thread Tools Display Modes

IP Alias & IPtables, redirecting outbound traffic out specific interfaces

 
 
paul.groth@gmail.com
Guest
Posts: n/a

 
      05-05-2006, 01:12 AM
Hi All,

I have a fedorra box, it has one physical adapter from which I've used
IP aliasing to create 10 virtual interfaces. All of these interfaces
exist on the same subnet 10.209.170.140-150). What I would like to do
is when traffic enters a virtual interface ie 10.209.170.145 it needs
to leave via the same interface. At the moment it leaves by the first
defined interface ie 10.209.170.140, for instance if I have squid
running on 10.209.170.145, the request enters that interface but the
upstream request leaves via 10.209.170.140.

So am I right in assuming that I will need to use IPtables to do this,
or is there another way. If I have to use iptables, anyone want to
give me a hint as to how to do it, last time I touched iptables was
over 2 years ago.

Thanks

Paul

 
Reply With Quote
 
 
 
 
hdecreis@gmail.com
Guest
Posts: n/a

 
      05-09-2006, 05:45 AM
Heya,

You speak here of two different things.

1/ ensuring a connection coming on one IP address will be answered by
the same interface it came from even if the box has another default
route. That is _iproute2_ work (make one routing table per interface
and make a rule mapping each interface to each table. plus a default
route in each table specifying src ip)

2/ managing which way squid requests leave is not AFAIK really
manageable dynamically based on what interface request came from
(upstream request is _not_ in any way related to the client query at
the network / kernel level).

cheers

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting outbound URL requests to LAN address before DNS lookup??? Shannon Network Routers 3 01-12-2008 02:54 AM
Redirect outbound traffic with IPTABLEs TravisT Linux Networking 5 05-02-2006 02:32 PM
IPTables filtering what should be allowed outbound traffic SmittyBroham Linux Networking 6 10-03-2005 05:42 PM
Redirecting Traffic vandresv@gmail.com Linux Networking 8 05-22-2005 06:01 AM
Redirecting traffic from AP Coenraad Loubser Linux Networking 5 04-29-2005 12:46 PM



1 2 3 4 5 6 7 8 9 10 11