<DIV> </DIV>
<DIV><includetail>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="COLOR: #000">
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------ Original ------------------</DIV>
<DIV style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV id=menu_sender><B>From: </B> "linux-cluster-request"<linux-cluster-request@redhat.com>;</DIV>
<DIV><B>Date: </B> Sat, Aug 21, 2010 00:00 AM</DIV>
<DIV><B>To: </B> "linux-cluster"<linux-cluster@redhat.com>; <WBR></DIV>
<DIV></DIV>
<DIV><B>Subject: </B> Linux-cluster Digest, Vol 76, Issue 18</DIV></DIV>
<DIV> </DIV>Send Linux-cluster mailing list submissions to<BR>linux-cluster@redhat.com<BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>https://www.redhat.com/mailman/listinfo/linux-cluster<BR>or, via email, send a message with subject or body 'help' to<BR>linux-cluster-request@redhat.com<BR><BR>You can reach the person managing the list at<BR>linux-cluster-owner@redhat.com<BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of Linux-cluster digest..."<BR><BR><BR>Today's Topics:<BR><BR>   1. Re: IP Source NAT (Kit Gerrits)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Fri, 20 Aug 2010 08:29:16 +0200<BR>From: "Kit Gerrits" <kitgerrits@gmail.com><BR>To: "'linux clustering'" <linux-cluster@redhat.com><BR>Subject: Re: [Linux-cluster] IP Source NAT<BR>Message-ID: <4c6e20b2.097b0e0a.7b55.ffff9aa4@mx.google.com><BR>Content-Type: text/plain; charset="us-ascii"<BR><BR> <BR>Hello,<BR><BR>Most software allows you to configure the IP the software binds to.<BR>Aside from that, I am not aware of of any other methods, provided by<BR>clustering.<BR>(The IP is simply added 'inside' the IP stack of the host)<BR><BR>In your case that would mean configuring the source IP in your monitoring<BR>module (check_snmp) or the tool used inside the module (snmpget).<BR>Snmpget should be configurable through snmp.conf with the following option:<BR>     clientaddr [<transport-specifier>:]<transport-address><BR>           Specify source address used  by  command-line  tools,  see<BR>           snmpcmd(1) , and by snmpd when sending notifications.<BR>See:<BR>http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg08109.ht<BR>ml<BR><BR><BR>In case of an iptables solution, this might help:<BR>http://fixunix.com/snmp/65274-snmpget-snmpwalk-using-virtual-ip.html<BR><BR><BR>Regards,<BR><BR>Kit<BR><BR>-----Original Message-----<BR>From: linux-cluster-bounces@redhat.com<BR>[mailto:linux-cluster-bounces@redhat.com] On Behalf Of Bernd Broermann<BR>Sent: donderdag 19 augustus 2010 11:26<BR>To: linux-cluster@redhat.com<BR>Subject: [Linux-cluster] IP Source NAT<BR><BR>Hello Senol,<BR>Hello all,<BR><BR>I my special case I want to setup a 2 Node Active/Passiv failover Cluster<BR>with nagios ( nrpe/snmp ) as a service.<BR><BR>ClusterNode1IP -<BR>                -> vIP  ----------- Clients (connects only allowed from vIP)<BR>ClusterNode2IP -<BR><BR>The nrpe and snmp Agents only allow connects from the virtual IP of the<BR>Cluster.<BR><BR>An iptables nat rule should do that for these ports.<BR><BR>But is there a best practice ?<BR><BR>Thank you<BR><BR><BR><BR><BR><BR>Hi Bernd,<BR><BR>your comments too much close but;<BR><BR>- if u are build two node fail-over (as Acrive-Passive) you can give to vIP<BR>to active node starting,<BR>- if u are using two or more server at the moment (for Load Balancing) then<BR>your keywords "ipvsadm" and "Direct Routing".<BR><BR><BR>2010/8/18 Bernd Broermann <bernd broermann com><BR><BR>    Hello,<BR><BR>    How can I define a resource to make all outgoing network packets appear<BR>    to be the virtual IPaddress ?<BR><BR>    I mean something like the "ipsrcaddr" resource in OCF:heartbeat.<BR><BR>    Thanks for answers,<BR>    bernd<BR><BR>    --<BR>    Linux-cluster mailing list<BR>    Linux-cluster redhat com<BR>    https://www.redhat.com/mailman/listinfo/linux-cluster<BR><BR><BR><BR>--<BR>Linux-cluster mailing list<BR>Linux-cluster@redhat.com<BR>https://www.redhat.com/mailman/listinfo/linux-cluster<BR>No virus found in this incoming message.<BR>Checked by AVG - www.avg.com<BR>Version: 9.0.851 / Virus Database: 271.1.1/3082 - Release Date: 08/19/10<BR>20:35:00<BR><BR><BR><BR>------------------------------<BR><BR>--<BR>Linux-cluster mailing list<BR>Linux-cluster@redhat.com<BR>https://www.redhat.com/mailman/listinfo/linux-cluster<BR><BR>End of Linux-cluster Digest, Vol 76, Issue 18<BR>*********************************************<BR></DIV></includetail></DIV>