<HTML>
<HEAD>
<TITLE>Multiple networks source address</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hello,<BR>
<BR>
I ran into a seemingly strange issue using openser to proxy an invite from the public internet to a private ipsec tunnel on my network.<BR>
<BR>
The problem appears to be caused by the fact that the packet is sent out to on the correct interface ( eth1 in my case ) but still is using the source address of et0 in the ip header. &nbsp;This is causing my ipsec tunnel to ignore the packet.<BR>
<BR>
Is there anyway to control the source addr in the IP header?<BR>
<BR>
Using a simple python script to send a upd packet across the same path I have verified this is not a tunnel issue.<BR>
<BR>
Example<BR>
et0: 4.X.X.229 packet arrives on this interface<BR>
eth1: 10.X.X.13 packet is sent out this interface<BR>
<BR>
RURI is re-written and t_relay is used to send the packet to <BR>
destination: 10.X.X.115<BR>
<BR>
Here is a partially redacted packet as captured by tethereal:<BR>
<BR>
Frame 1 (982 bytes on wire, 982 bytes captured)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Arrival Time: Jan &nbsp;2, 2007 16:49:35.536412000<BR>
&nbsp;&nbsp;&nbsp;&nbsp;[Time delta from previous packet: 0.000000000 seconds]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;[Time since reference or first frame: 0.000000000 seconds]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Frame Number: 1<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Packet Length: 982 bytes<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Capture Length: 982 bytes<BR>
&nbsp;&nbsp;&nbsp;&nbsp;[Frame is marked: False]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;[Protocols in frame: eth:ip:udp:sip:sdp]<BR>
Ethernet II, Src: DellComp_f6:27:19 (00:06:5b:f6:27:19), Dst: DellComp_ec:8d:a3 (00:06:5b:ec:8d:a3)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Destination: DellComp_ec:8d:a3 (00:06:5b:ec:8d:a3)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address: DellComp_ec:8d:a3 (00:06:5b:ec:8d:a3)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... ...0 .... .... .... .... = IG bit: Individual address (unicast)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Source: DellComp_f6:27:19 (00:06:5b:f6:27:19)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address: DellComp_f6:27:19 (00:06:5b:f6:27:19)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... ...0 .... .... .... .... = IG bit: Individual address (unicast)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Type: IP (0x0800)<BR>
<FONT COLOR="#FF0000"><B>Internet Protocol, Src: 4.X.X.229 (4.X.X.229), Dst: 10.X.X.108 (10.X.X.108) &nbsp;------&gt; should source from 10.X.X.13 not 4.X.X.229<BR>
</B></FONT> &nbsp;&nbsp;&nbsp;Version: 4<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Header length: 20 bytes<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Differentiated Services Field: 0x10 (DSCP 0x04: Unknown DSCP; ECN: 0x00)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0001 00.. = Differentiated Services Codepoint: Unknown (0x04)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... ..0. = ECN-Capable Transport (ECT): 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.... ...0 = ECN-CE: 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Total Length: 968<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Identification: 0x0076 (118)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Flags: 0x04 (Don't Fragment)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0... = Reserved bit: Not set<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.1.. = Don't fragment: Set<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;..0. = More fragments: Not set<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Fragment offset: 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Time to live: 64<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Protocol: UDP (0x11)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Header checksum: 0x1dfe [correct]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Good: True]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Bad : False]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Source: 4.X.X.229 (4.X.X.229)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Destination: 10.X.X.108 (10.X.X.108)<BR>
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 6060 (6060)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Source port: 5060 (5060)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Destination port: 6060 (6060)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Length: 948<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Checksum: 0x1c67 [incorrect, should be 0x222a]<BR>
Session Initiation Protocol<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Request-Line: INVITE sip:+1720560XXXX@10.X.X.108:6060 SIP/2.0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method: INVITE<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Resent Packet: False]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Message Header<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record-Route: &lt;sip:4.X.X.229;lr;ftag=as0473b81f&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Via: SIP/2.0/UDP 4.X.X.229;branch=z9hG4bK7a42.e0b9bac5.0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transport: UDP<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sent-by Address: 4.X.X.229<BR>
<BR>
<BR>
<BR>
.....<BR>
<BR>
<BR>
Any clues on how to fix this problem?<BR>
<BR>
Thanks,<BR>
<BR>
T.R.<BR>
</SPAN></FONT>
</BODY>
</HTML>