Networking Forums

Networking Forums > Computer Networking > Linux Networking > sending packets from alias address

Reply
Thread Tools Display Modes

sending packets from alias address

 
 
peter.glover@dsl.pipex.com
Guest
Posts: n/a

 
      02-01-2005, 07:28 PM
Hi

I wonder if anyone knows the answer to this little question. I
currently have two redhat ES3 servers running the cluster suite ha
package. I've been asked by my business to get all outbound ip packets
from the cluster(package) to appear from the alias ( cluster ip
asddress )? This is due to a requirement by internat NAT restrictions
for our application.
Anyone know of an easy solution?

Regards

Peter
 
Reply With Quote
 
 
 
 
Vincent Jaussaud
Guest
Posts: n/a

 
      02-02-2005, 02:48 PM
(E-Mail Removed) wrote:

> Hi
>
> I wonder if anyone knows the answer to this little question. I
> currently have two redhat ES3 servers running the cluster suite ha
> package. I've been asked by my business to get all outbound ip packets
> from the cluster(package) to appear from the alias ( cluster ip
> asddress )? This is due to a requirement by internat NAT restrictions
> for our application.
> Anyone know of an easy solution?


I don't know I understand your setup correctly, but If I do you could do
something like that:

You should first mark any relevant traffic using iptables owner/MARK
capabilities, then route the traffic according to that mark.

Something like:

iptables -t mangle -A OUTPUT -m owner --pid-number PID_of_your_APPS -j MARK
--set-mark 0x1

Then route the traffic accordingly:

ip route add table your_table default via $GATEWAY_IP dev $GATEWAY_DEV src
$CLUSTER_IP
ip rule add prio 10 fwmark 0x1 lookup your_table

Note: This will only work if the SRC IP has not been set by the application
itself. In such a case, you'll have to NAT the traffic before it goes out
the interface using iproute2 nat feature.

Hope that helps.
Vincent.

>
> Regards
>
> Peter


--
Kelkoo Security Manager / Networks & Systems Architect
JID: (E-Mail Removed) / Vincent.Jaussaud.AT.kelkoo.DOT.net
Kelkoo.com --- GNU/Linux Powered
 
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
Drawbacks of sending UDP packets larger than MTU? Nerdwurx Linux Networking 3 04-24-2010 01:35 AM
Why sending packets to broadcast IP? news@celticbear.com Linux Networking 2 06-26-2008 04:18 PM
sending Raw IP Packets Rajeshwaran Linux Networking 0 07-10-2006 01:28 PM
Sending UDP packets at a specified rate Spoon Linux Networking 6 04-20-2006 06:18 PM
RH9 Router sending ARP packets Jeff Admin Linux Networking 0 06-22-2004 08:53 PM



1 2 3 4 5 6 7 8 9 10 11