#30 raw sockets for spoofing source IP address/port

open
nobody
None
5
2013-04-29
2007-10-31
No

Hi!

This patch adds support for sending UDP messages with spoofed IP address and UDP port (please review the code):

regarding the patch for call.cpp: the first 2 chunks are only indent fixes

description:

source_ip parameter:

If given, SIPp will send UDP packets with the given source IP address. For this, SIPp will open
a raw socket and creates the IP and UDP header manually. This can be used to send UPD messages with
spoofed source IP address (e.g. for NAT tests). For using this feature you have to start SIPp with
root privileges. Of course this works only when using UDP. When using other transport protocols this
parameter will be ignored. Use the <strong>source_port</strong> parameter to specify a source port.</td>

source_port parameter:

When spoofing src IP address with the <strong>source_ip</strong> parameter, this port will be used as
UDP source port. If not present the default setting is port 5060. If the <strong>source_ip</strong> parameter
is not present, this parameter will be ignored.</td>

example:
<send source_ip="192.168.1.100" source_port="1234">: Send SIP message using UDP
with spoofed source IP address 192.168.1.100 und source port 1234.

Discussion

  • Klaus Darilion

    Klaus Darilion - 2007-10-31

    Logged In: YES
    user_id=1318360
    Originator: YES

    File Added: sipp-trunk-rawsockets-patch.txt

     
  • Olivier Boulkroune

    Logged In: YES
    user_id=1475960
    Originator: NO

    to be reviewed

     
  • lvlolvlo

    lvlolvlo - 2013-04-29

    This patch does not work on newer versions of SIPp. Any chance of an update to this to work w/current version?

     

Log in to post a comment.