<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<P>

<head>

<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Multiple networks source address</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Even if you come up with a mechanism to
change the Source address it does not solve the problem completely.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The reason is &#8220;The IP address in the
<st1:Street w:st="on"><st1:address w:st="on">Record Route</st1:address></st1:Street>
also needs to be changed(manipulated) so that Subsequent Requests for the same
call &#160;coming from the other end of the Tunnel are routed correctly.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Kasturi<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> T.R. Missner
[mailto:trmissner@bandwidth.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, January 02, 2007
11:12 AM<br>
<b><span style='font-weight:bold'>To:</span></b> devel@openser.org;
users@openser.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Users] Multiple networks
source address</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Verdana><span style='font-size:9.0pt;
font-family:Verdana'>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>
<b><font color=red><span style='color:red;font-weight:bold'>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>
</span></font></b>&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, <st1:PlaceName w:st="on">Src</st1:PlaceName> <st1:PlaceType
w:st="on">Port</st1:PlaceType>: 5060 (5060), <st1:place w:st="on"><st1:PlaceName
 w:st="on">Dst</st1:PlaceName> <st1:PlaceType w:st="on">Port</st1:PlaceType></st1:place>:
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.</span></font><o:p></o:p></p>

</div>

</body>

</html>
</P>