Hi All,
For your information, I find a workaround (with the precious help of Marc, see 
below. Thanks to you Marc !!) that allow my client scenario to use the correct 
IP address as source IP (at IP layer): I add a specific static route with the 
correct vlanID:<sub-if> outgoing to reach the requested next hop.
Interesting tip: after the sipp client process is started, removing/modifying 
this static route does not change the next new calls of the client scenario.
So, it allows me to start multiple Sipp client-server couple instance in 
parallel in a single script:
  
  add static route to reach my SIP equipement with outgoing-if vlanXXX:1 
(vlanXXX is 802.1q bound to eth0)
  launch sipp server scenario on interface eth1

  launch sipp client scenario with option -i 10.0.0.1 (ip @ of vlanXXX:1)
  remove static route to reach my SIP equipement with outgoing-if vlanXXX:1
 


  add static route to reach my SIP equipement with outgoing-if vlanXXX:2
  launch sipp server scenario on interface eth1

  launch sipp client scenario with option -i 10.0.0.2 (ip @ of vlanXXX:2)
  remove static route to reach my SIP equipement with outgoing-if vlanXXX:2
 

  add static route to reach my SIP equipement with outgoing-if vlanXXX:3
  launch sipp server scenario on interface eth1

  launch sipp client scenario with option -i 10.0.0.3 (ip @ of vlanXXX:3)
  remove static route to reach my SIP equipement with outgoing-if vlanXXX:3

 
  ....
 
Thanks to the SipP community for the help on this issue,
Best regards,
Cyrille
 
 
>I guess sipp uses as any application a source address based on the destination 
>(decided by kernel).
>You can influence this mechanism by routing the outgoing packet via the 
>correct outgoing interface.
>I'm using machines ith multiple interfaces (but not in same vlan) and specify 
>the application
>level address to use, and together with the correct routing this works fine.
> Best regards,
>  MarcVD
> 
>(-: from Marc VAN DIEST (BELGACOM)  ;-)
 

From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 31 Jul 2008 16:47:47 +0000CC: 
[EMAIL PROTECTED]; [EMAIL PROTECTED]: Re: [Sipp-users] Force source IP & source 
Port at IP laye


Hi,No, -i option only works for application level but not IP: For 
instance:Running Sipp with "-bind_local -i 10.0.1.5 -p 5060 10.0.1.1:5060 -t 
t1" options (10.0.1.5 exists on my system. As well as 10.0.1.4, see below). => 
Extract of the initial TCP syn packet for Wireshark:  Internet Protocol, Src: 
10.0.1.4 (10.0.1.4), Dst: 10.0.1.1 (10.0.1.1)  Transmission Control Protocol, 
Src Port: 59955 (59955), Dst Port: sip (5060), Seq: 0, Len: 0    Flags: 0x02 
(SYN) => Extract of the INVITE msg (from Wireshark) running over this TCP 
session:Internet Protocol, Src: 10.0.1.4 (10.0.1.4), Dst: 10.0.1.1 
(10.0.1.1)Transmission Control Protocol, Src Port: 59955 (59955), Dst Port: sip 
(5060), Seq: 1, Ack: 1, Len: 1259Session Initiation Protocol  Request-Line: 
INVITE sip:[EMAIL PROTECTED]:5060;transport=tcp;pt=FT SIP/2.0  Message Header   
 Via: SIP/2.0/TCP 10.0.1.5:5060;branch=z9hG4bK-17147-1-0;branched=TRUEBut I 
don't know if it can be considered as a bug... Anyway, thanks for your help on 
this issue,Best regards,Cyrille> To: [EMAIL PROTECTED]> CC: [EMAIL PROTECTED]; 
[email protected]; [EMAIL PROTECTED]> Subject: RE: [Sipp-users] 
Force source IP & source Port at IP laye> From: [EMAIL PROTECTED]> Date: Wed, 
30 Jul 2008 12:31:56 -0400> > You should be able to use the -i option to SIPp 
to get the right IP. I'm > not sure if you'll get the port right though.> > 
Charles> > > > > Cyrille OLIVIER <[EMAIL PROTECTED]> > 07/30/2008 12:26 PM> > 
To> Charles P Wright/Watson/[EMAIL PROTECTED]> cc> Ricardo Fernandes <[EMAIL 
PROTECTED]>, > <[email protected]>, > <[EMAIL PROTECTED]>> 
Subject> RE: [Sipp-users] Force source IP & source Port at IP laye> > > > > > > 
Hi,> Thanks for your answer.> I don't speak neither about spoofing (it's bad 
;-) ) nor injection file > but I just want to specify *real* (= existing & 
configured) source IP for > my sipp messages.> My problem: on my eth0 device, 
I've got a single 802.1q vlan (mandatory in > my config): vlan431. On it, 2 
virtual interfaces:> 1/ vlan431:1 with IP 10.0.0.1> 2/ vlan431:2 with IP 
10.0.0.2> > I want to run 2 sipp client instance over TCP (with single socket, 
option > '-t t1' is used) in 2 terminals:> 1/ the first one will be launched 
with IP source 10.0.0.1 and TCP source > port 5060 (so the IP packet source 
field must be 10.0.0.1 and TCP datagram > source field will be 5060)> 2/ the 
second one will be launched with IP source 10.0.0.2 and TCP > source port 5060 
(so the IP packet source field must be 10.0.0.2 and TCP > datagram source field 
will be 5060)> > Currently, it does not work.> > Best regards,> Cyrille> > > 
To: [EMAIL PROTECTED]> > CC: [EMAIL PROTECTED]; 
[email protected]; > [EMAIL PROTECTED]> > Subject: Re: 
[Sipp-users] Force source IP & source Port at IP laye> > From: [EMAIL 
PROTECTED]> > Date: Wed, 30 Jul 2008 11:48:10 -0400> > > > No. If you want to 
"spoof" addresses it would be pretty hard to > > implement. If you just want to 
pick from one of your IP injection files, > > > you could implement it without 
major code changes.> > > > Charles> > > > > > > > > > Cyrille OLIVIER <[EMAIL 
PROTECTED]> > > Sent by: [EMAIL PROTECTED]> > 07/30/2008 10:40 AM> > > > To> > 
Ricardo Fernandes <[EMAIL PROTECTED]>, > > <[email protected]>> 
> cc> > > > Subject> > Re: [Sipp-users] Force source IP & source Port at IP 
laye> > > > > > > > > > > > > > Hi Ricardo & all,> > Thanks a lot for your 
answer.> > I will get the lastest version in the trunk source code,> > 
Unfortunatelly, i need to set the *source* IP and port of my sipp > > 
messages.> > so it leads to the 100$ question: does the "setsrc" or "setsource" 
> option > > also exists ?> > :)> > > > BR,> > Cyrille> > > > > Date: Wed, 30 
Jul 2008 15:31:57 +0100> > > From: [EMAIL PROTECTED]> > > To: [EMAIL 
PROTECTED]> > > Subject: Re: [Sipp-users] Force source IP & source Port at IP 
laye> > > > > > Hello,> > > > > > I think you had the same problem as me.> > > 
You can change the place here your sipp messages go to by specifying> > > the 
host and the port in the scenario file like this:> > > <nop>> > > <action>> > > 
<setdest host="112.12.12.12" port="5060" protocol="udp" />> > > </action>> > > 
<nop>> > > > > > This works in sipp with UDP, in TCP i don't know, never 
tried.> > > This will only work with the lastest version in the trunk source 
code,> > > the current binaries in the sourceforge stable version> > > will not 
recognized the setdest keyword.> > > > > > Ps:> > > If you are using windows 
get this version from the snapshots here:> > > 
http://sipp.sourceforge.net/snapshots/sipp-win32-2008-07-18.exe> > > > > > Hope 
it helps> > > Ricardo Fernandes> > > > > > > > > > > > On Wed, Jul 30, 2008 at 
2:31 PM, Cyrille OLIVIER > <[EMAIL PROTECTED]> > > wrote:> > > > Hi all,> > > > 
I worried a bit about this post ;)> > > > Actually, I don't need a very 
developped answer but just a short > (but > > clear> > > > ;) ) one.> > > > Of 
course, if needed, i can detail more> > > >> > > > Best regards & thanks a 
lot,> > > > Cyrille> > > >> > > > ________________________________> > > > From: 
[EMAIL PROTECTED]> > > > To: [email protected]> > > > Date: Thu, 
10 Jul 2008 10:13:50 +0000> > > > Subject: [Sipp-users] Force source IP & 
source Port at IP layer> > > >> > > >> > > > Dear sipp-users,> > > >> > > > 
Again, I asked my requests about SIPp client using TCP:> > > > Is it possible 
to force sipp to use specific IP source & Port > source, > > at IP> > > > 
layer, for "send" messages when TCP with single socket (option '-t > t1' > > 
used)> > > > ?> > > > I tried many things:> > > >> > > > 1/ -bind_local: seems 
unuseful.> > > > 2/ -i x.x.x.x -p yyyy options: it's only for some SIP headers 
but > not > > for IP> > > > packet header.> > > > 3/ <send -source_ip="x.x.x.x" 
-source_port="yyyy"> for INVITE > message: > > does> > > > not seems to work.> 
> > > 4/ look for this subject in mailing list archives: some conversation > > 
> are> > > > closed to my question but not similar at 100%> > > > ...> > > >> > 
> > Currently, I don't know which other workaround or things to do :(> > > > I 
would really appreciate any help about that> > > > Thanks a lot,> > > > BR,> > 
> > Cyrille> > > > ________________________________> > > > Discutez 
gratuitement avec vos amis en vidéo ! Téléchargez > Messenger, > > c'est> > > > 
gratuit !> > > > ________________________________> > > > Avec Windows Live 
Messenger restez en contact avec tous vos amis !> > > > Téléchargez Messenger, 
c'est gratuit !> > > > > > > 
-------------------------------------------------------------------------> > > 
> This SF.Net email is sponsored by the Moblin Your Move Developer's > > 
challenge> > > > Build the coolest Linux based applications with Moblin SDK & 
win > great> > > > prizes> > > > Grand prize is a trip for two to an Open 
Source event anywhere in > the > > world> > > > 
http://moblin-contest.org/redirect.php?banner_id=100&url=/> > > > 
_______________________________________________> > > > Sipp-users mailing list> 
> > > [email protected]> > > > 
https://lists.sourceforge.net/lists/listinfo/sipp-users> > > >> > > >> > > > > 
> Consultez vos emails sur votre mobile ! Créez un compte Hotmail, c'est > > 
gratuit !> > > 
-------------------------------------------------------------------------> > 
This SF.Net email is sponsored by the Moblin Your Move Developer's > > 
challenge> > Build the coolest Linux based applications with Moblin SDK & win 
great > > prizes> > Grand prize is a trip for two to an Open Source event 
anywhere in the > > world> > 
http://moblin-contest.org/redirect.php?banner_id=100&url=/> > 
_______________________________________________> > Sipp-users mailing list> > 
[email protected]> > 
https://lists.sourceforge.net/lists/listinfo/sipp-users> > > > > > > Discutez 
sur Messenger où que vous soyez ! Mettez Messenger sur votre > mobile !> 

Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile ! 
_________________________________________________________________
Votre correspondant a choisi Hotmail, un e-mail ultra sécurisé. Créez le votre 
gratuitement !
http://www.windowslive.fr/hotmail/default.asp
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to