Linux “ip route” changes source address of TCP but not UDP The Next CEO of Stack OverflowWhy is my TCP throughput much greater than UDP throughput?nfs mount works for tcp but not over udptcpdump captures network-wide UDP traffic, but not TCPIs any solution to make interactive TCP/UDP server under Linux?Iptables Help redirecting specific TCP/UDP Ports to VPN (tun1)Are /dev/udp,tcp standardized or available everywhere?Using tc, I want TCP and UDP to use the same bufferHow to create/setup vpn using only SSH?NAT ETH1 PORT 5000 Traffic to PPP0Linux's Internet domain socket, transport protocols (TCP/UDP)'s socket and port

Anatomically Correct Strange Women In Ponds Distributing Swords

Is there a way to save my career from absolute disaster?

How do we know the LHC results are robust?

Sending manuscript to multiple publishers

Why do remote companies require working in the US?

Novel about a guy who is possessed by the divine essence and the world ends?

Do I need to enable Dev Hub in my PROD Org?

What does convergence in distribution "in the Gromov–Hausdorff" sense mean?

Is it professional to write unrelated content in an almost-empty email?

Which tube will fit a -(700 x 25c) wheel?

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

How do scammers retract money, while you can’t?

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

How do I avoid eval and parse?

Can I run my washing machine drain line into a condensate pump so it drains better?

Why do we use the plural of movies in this phrase "We went to the movies last night."?

Why do airplanes bank sharply to the right after air-to-air refueling?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Multiple labels for a single equation

WOW air has ceased operation, can I get my tickets refunded?

Are there any limitations on attacking while grappling?

Preparing Indesign booklet with .psd graphics for print

Which kind of appliances can one connect to electric sockets located in a airplane's toilet?

What flight has the highest ratio of time difference to flight time?



Linux “ip route” changes source address of TCP but not UDP



The Next CEO of Stack OverflowWhy is my TCP throughput much greater than UDP throughput?nfs mount works for tcp but not over udptcpdump captures network-wide UDP traffic, but not TCPIs any solution to make interactive TCP/UDP server under Linux?Iptables Help redirecting specific TCP/UDP Ports to VPN (tun1)Are /dev/udp,tcp standardized or available everywhere?Using tc, I want TCP and UDP to use the same bufferHow to create/setup vpn using only SSH?NAT ETH1 PORT 5000 Traffic to PPP0Linux's Internet domain socket, transport protocols (TCP/UDP)'s socket and port










3















When sending packets from an application that binds to a local address TCP uses a different source address than UDP. For example, bind to 10.10.0.51 (alias IP), the src addr for UDP is 10.10.0.51 but the src addr for TCP is 10.10.0.2 (primary IP address of the machine). This is observed using tcpdump packet capture.



The output of "ip route show" includes this line: "10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2"



My question: why does TCP use the source address from the routing table but UDP uses the source address the application binds to?



This is on CentOS 6.



[user@host ~]$ ip route show
10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2
10.20.0.0/22 via 10.10.0.1 dev eth1
10.145.192.0/18 dev eth0 proto kernel scope link src 10.145.194.226
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
169.254.0.0/16 dev eth2 scope link metric 1004
default via 10.145.255.254 dev eth0



[user@host ~]$ uname -a
Linux machinename 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux



[user@host ~]$ ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:56:01:c3:96 brd ff:ff:ff:ff:ff:ff
inet 10.145.194.226/18 brd 10.145.255.255 scope global eth0
inet6 fe80::250:56ff:fe01:c396/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:56:01:c3:97 brd ff:ff:ff:ff:ff:ff
inet 10.10.0.2/22 brd 10.10.3.255 scope global eth1
inet 10.10.0.51/22 scope global secondary eth1:1
inet 10.10.0.52/22 scope global secondary eth1:2
inet 10.10.0.53/22 scope global secondary eth1:3
inet 10.10.0.54/22 scope global secondary eth1:4
inet 10.10.0.55/22 scope global secondary eth1:5
inet6 2002::10:10:0:55/96 scope global
valid_lft forever preferred_lft forever
inet6 2002::10:10:0:54/96 scope global
valid_lft forever preferred_lft forever
inet6 2002::10:10:0:53/96 scope global
valid_lft forever preferred_lft forever
inet6 2002::10:10:0:52/96 scope global
valid_lft forever preferred_lft forever
inet6 2002::10:10:0:51/96 scope global
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe01:c397/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:56:01:c3:98 brd ff:ff:ff:ff:ff:ff
5: ip6tnl0: <NOARP> mtu 1460 qdisc noop
link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00


EDIT:
The application in question is SIPp.



sipp -sn uac -i 10.10.0.51 -t tn -p 5060 -m 1 -r 1 10.10.0.1

sipp -sn uac -i 10.10.0.51 -t un -p 5060 -m 1 -r 1 10.10.0.1


EDIT 2:



[user@host ~]$ ss -tplan | grep 5060
LISTEN 0 100 10.10.0.51:5060 *:* users:(("sipp",14837,3))
SYN-SENT 0 1 10.10.0.2:50903 10.10.0.1:5060 users:(("sipp",14837,7))

[user@host ~]$ ss -uplan | grep 5060
UNCONN 0 0 10.10.0.51:5060 *:* users:(("sipp",14850,3))









share|improve this question




























    3















    When sending packets from an application that binds to a local address TCP uses a different source address than UDP. For example, bind to 10.10.0.51 (alias IP), the src addr for UDP is 10.10.0.51 but the src addr for TCP is 10.10.0.2 (primary IP address of the machine). This is observed using tcpdump packet capture.



    The output of "ip route show" includes this line: "10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2"



    My question: why does TCP use the source address from the routing table but UDP uses the source address the application binds to?



    This is on CentOS 6.



    [user@host ~]$ ip route show
    10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2
    10.20.0.0/22 via 10.10.0.1 dev eth1
    10.145.192.0/18 dev eth0 proto kernel scope link src 10.145.194.226
    169.254.0.0/16 dev eth0 scope link metric 1002
    169.254.0.0/16 dev eth1 scope link metric 1003
    169.254.0.0/16 dev eth2 scope link metric 1004
    default via 10.145.255.254 dev eth0



    [user@host ~]$ uname -a
    Linux machinename 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux



    [user@host ~]$ ip address show
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:50:56:01:c3:96 brd ff:ff:ff:ff:ff:ff
    inet 10.145.194.226/18 brd 10.145.255.255 scope global eth0
    inet6 fe80::250:56ff:fe01:c396/64 scope link
    valid_lft forever preferred_lft forever
    3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:50:56:01:c3:97 brd ff:ff:ff:ff:ff:ff
    inet 10.10.0.2/22 brd 10.10.3.255 scope global eth1
    inet 10.10.0.51/22 scope global secondary eth1:1
    inet 10.10.0.52/22 scope global secondary eth1:2
    inet 10.10.0.53/22 scope global secondary eth1:3
    inet 10.10.0.54/22 scope global secondary eth1:4
    inet 10.10.0.55/22 scope global secondary eth1:5
    inet6 2002::10:10:0:55/96 scope global
    valid_lft forever preferred_lft forever
    inet6 2002::10:10:0:54/96 scope global
    valid_lft forever preferred_lft forever
    inet6 2002::10:10:0:53/96 scope global
    valid_lft forever preferred_lft forever
    inet6 2002::10:10:0:52/96 scope global
    valid_lft forever preferred_lft forever
    inet6 2002::10:10:0:51/96 scope global
    valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:fe01:c397/64 scope link
    valid_lft forever preferred_lft forever
    4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:50:56:01:c3:98 brd ff:ff:ff:ff:ff:ff
    5: ip6tnl0: <NOARP> mtu 1460 qdisc noop
    link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00


    EDIT:
    The application in question is SIPp.



    sipp -sn uac -i 10.10.0.51 -t tn -p 5060 -m 1 -r 1 10.10.0.1

    sipp -sn uac -i 10.10.0.51 -t un -p 5060 -m 1 -r 1 10.10.0.1


    EDIT 2:



    [user@host ~]$ ss -tplan | grep 5060
    LISTEN 0 100 10.10.0.51:5060 *:* users:(("sipp",14837,3))
    SYN-SENT 0 1 10.10.0.2:50903 10.10.0.1:5060 users:(("sipp",14837,7))

    [user@host ~]$ ss -uplan | grep 5060
    UNCONN 0 0 10.10.0.51:5060 *:* users:(("sipp",14850,3))









    share|improve this question


























      3












      3








      3


      1






      When sending packets from an application that binds to a local address TCP uses a different source address than UDP. For example, bind to 10.10.0.51 (alias IP), the src addr for UDP is 10.10.0.51 but the src addr for TCP is 10.10.0.2 (primary IP address of the machine). This is observed using tcpdump packet capture.



      The output of "ip route show" includes this line: "10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2"



      My question: why does TCP use the source address from the routing table but UDP uses the source address the application binds to?



      This is on CentOS 6.



      [user@host ~]$ ip route show
      10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2
      10.20.0.0/22 via 10.10.0.1 dev eth1
      10.145.192.0/18 dev eth0 proto kernel scope link src 10.145.194.226
      169.254.0.0/16 dev eth0 scope link metric 1002
      169.254.0.0/16 dev eth1 scope link metric 1003
      169.254.0.0/16 dev eth2 scope link metric 1004
      default via 10.145.255.254 dev eth0



      [user@host ~]$ uname -a
      Linux machinename 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux



      [user@host ~]$ ip address show
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
      link/ether 00:50:56:01:c3:96 brd ff:ff:ff:ff:ff:ff
      inet 10.145.194.226/18 brd 10.145.255.255 scope global eth0
      inet6 fe80::250:56ff:fe01:c396/64 scope link
      valid_lft forever preferred_lft forever
      3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
      link/ether 00:50:56:01:c3:97 brd ff:ff:ff:ff:ff:ff
      inet 10.10.0.2/22 brd 10.10.3.255 scope global eth1
      inet 10.10.0.51/22 scope global secondary eth1:1
      inet 10.10.0.52/22 scope global secondary eth1:2
      inet 10.10.0.53/22 scope global secondary eth1:3
      inet 10.10.0.54/22 scope global secondary eth1:4
      inet 10.10.0.55/22 scope global secondary eth1:5
      inet6 2002::10:10:0:55/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:54/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:53/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:52/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:51/96 scope global
      valid_lft forever preferred_lft forever
      inet6 fe80::250:56ff:fe01:c397/64 scope link
      valid_lft forever preferred_lft forever
      4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
      link/ether 00:50:56:01:c3:98 brd ff:ff:ff:ff:ff:ff
      5: ip6tnl0: <NOARP> mtu 1460 qdisc noop
      link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00


      EDIT:
      The application in question is SIPp.



      sipp -sn uac -i 10.10.0.51 -t tn -p 5060 -m 1 -r 1 10.10.0.1

      sipp -sn uac -i 10.10.0.51 -t un -p 5060 -m 1 -r 1 10.10.0.1


      EDIT 2:



      [user@host ~]$ ss -tplan | grep 5060
      LISTEN 0 100 10.10.0.51:5060 *:* users:(("sipp",14837,3))
      SYN-SENT 0 1 10.10.0.2:50903 10.10.0.1:5060 users:(("sipp",14837,7))

      [user@host ~]$ ss -uplan | grep 5060
      UNCONN 0 0 10.10.0.51:5060 *:* users:(("sipp",14850,3))









      share|improve this question
















      When sending packets from an application that binds to a local address TCP uses a different source address than UDP. For example, bind to 10.10.0.51 (alias IP), the src addr for UDP is 10.10.0.51 but the src addr for TCP is 10.10.0.2 (primary IP address of the machine). This is observed using tcpdump packet capture.



      The output of "ip route show" includes this line: "10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2"



      My question: why does TCP use the source address from the routing table but UDP uses the source address the application binds to?



      This is on CentOS 6.



      [user@host ~]$ ip route show
      10.10.0.0/22 dev eth1 proto kernel scope link src 10.10.0.2
      10.20.0.0/22 via 10.10.0.1 dev eth1
      10.145.192.0/18 dev eth0 proto kernel scope link src 10.145.194.226
      169.254.0.0/16 dev eth0 scope link metric 1002
      169.254.0.0/16 dev eth1 scope link metric 1003
      169.254.0.0/16 dev eth2 scope link metric 1004
      default via 10.145.255.254 dev eth0



      [user@host ~]$ uname -a
      Linux machinename 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux



      [user@host ~]$ ip address show
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
      link/ether 00:50:56:01:c3:96 brd ff:ff:ff:ff:ff:ff
      inet 10.145.194.226/18 brd 10.145.255.255 scope global eth0
      inet6 fe80::250:56ff:fe01:c396/64 scope link
      valid_lft forever preferred_lft forever
      3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
      link/ether 00:50:56:01:c3:97 brd ff:ff:ff:ff:ff:ff
      inet 10.10.0.2/22 brd 10.10.3.255 scope global eth1
      inet 10.10.0.51/22 scope global secondary eth1:1
      inet 10.10.0.52/22 scope global secondary eth1:2
      inet 10.10.0.53/22 scope global secondary eth1:3
      inet 10.10.0.54/22 scope global secondary eth1:4
      inet 10.10.0.55/22 scope global secondary eth1:5
      inet6 2002::10:10:0:55/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:54/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:53/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:52/96 scope global
      valid_lft forever preferred_lft forever
      inet6 2002::10:10:0:51/96 scope global
      valid_lft forever preferred_lft forever
      inet6 fe80::250:56ff:fe01:c397/64 scope link
      valid_lft forever preferred_lft forever
      4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
      link/ether 00:50:56:01:c3:98 brd ff:ff:ff:ff:ff:ff
      5: ip6tnl0: <NOARP> mtu 1460 qdisc noop
      link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00


      EDIT:
      The application in question is SIPp.



      sipp -sn uac -i 10.10.0.51 -t tn -p 5060 -m 1 -r 1 10.10.0.1

      sipp -sn uac -i 10.10.0.51 -t un -p 5060 -m 1 -r 1 10.10.0.1


      EDIT 2:



      [user@host ~]$ ss -tplan | grep 5060
      LISTEN 0 100 10.10.0.51:5060 *:* users:(("sipp",14837,3))
      SYN-SENT 0 1 10.10.0.2:50903 10.10.0.1:5060 users:(("sipp",14837,7))

      [user@host ~]$ ss -uplan | grep 5060
      UNCONN 0 0 10.10.0.51:5060 *:* users:(("sipp",14850,3))






      tcp route udp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      Rui F Ribeiro

      41.8k1483142




      41.8k1483142










      asked Jun 16 '14 at 19:54









      aikcharaikchar

      365




      365




















          1 Answer
          1






          active

          oldest

          votes


















          2














          I was able to confirm (to an extent) that the issue is with SIPp and not in Linux in general.



          I have created a ticket with SIPp: https://sourceforge.net/p/sipp/bugs/147/



          My troubleshooting was as follows:



          On "server" side open netcat:



          nc -v -l 10.10.0.55 5060


          On "client side open netcat:



          nc -v -s 10.10.0.5 10.10.0.55 5060


          Output on "server" side:



          Connection from 10.10.0.5 port 5060 [tcp/*] accepted


          Output on "client" side:



          Connection to 10.10.0.55 5060 port [tcp/sip] succeeded!


          When I don't specify a specific IP on the "client" side:



          nc -v 10.10.0.55 5060


          Then the output on the "server" side is:



          Connection from 10.10.0.4 port 5060 [tcp/*] accepted


          This means that specifying a specific IP address works and it's SIPp that doesn't work that way when using the -i flag.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f137464%2flinux-ip-route-changes-source-address-of-tcp-but-not-udp%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            I was able to confirm (to an extent) that the issue is with SIPp and not in Linux in general.



            I have created a ticket with SIPp: https://sourceforge.net/p/sipp/bugs/147/



            My troubleshooting was as follows:



            On "server" side open netcat:



            nc -v -l 10.10.0.55 5060


            On "client side open netcat:



            nc -v -s 10.10.0.5 10.10.0.55 5060


            Output on "server" side:



            Connection from 10.10.0.5 port 5060 [tcp/*] accepted


            Output on "client" side:



            Connection to 10.10.0.55 5060 port [tcp/sip] succeeded!


            When I don't specify a specific IP on the "client" side:



            nc -v 10.10.0.55 5060


            Then the output on the "server" side is:



            Connection from 10.10.0.4 port 5060 [tcp/*] accepted


            This means that specifying a specific IP address works and it's SIPp that doesn't work that way when using the -i flag.






            share|improve this answer





























              2














              I was able to confirm (to an extent) that the issue is with SIPp and not in Linux in general.



              I have created a ticket with SIPp: https://sourceforge.net/p/sipp/bugs/147/



              My troubleshooting was as follows:



              On "server" side open netcat:



              nc -v -l 10.10.0.55 5060


              On "client side open netcat:



              nc -v -s 10.10.0.5 10.10.0.55 5060


              Output on "server" side:



              Connection from 10.10.0.5 port 5060 [tcp/*] accepted


              Output on "client" side:



              Connection to 10.10.0.55 5060 port [tcp/sip] succeeded!


              When I don't specify a specific IP on the "client" side:



              nc -v 10.10.0.55 5060


              Then the output on the "server" side is:



              Connection from 10.10.0.4 port 5060 [tcp/*] accepted


              This means that specifying a specific IP address works and it's SIPp that doesn't work that way when using the -i flag.






              share|improve this answer



























                2












                2








                2







                I was able to confirm (to an extent) that the issue is with SIPp and not in Linux in general.



                I have created a ticket with SIPp: https://sourceforge.net/p/sipp/bugs/147/



                My troubleshooting was as follows:



                On "server" side open netcat:



                nc -v -l 10.10.0.55 5060


                On "client side open netcat:



                nc -v -s 10.10.0.5 10.10.0.55 5060


                Output on "server" side:



                Connection from 10.10.0.5 port 5060 [tcp/*] accepted


                Output on "client" side:



                Connection to 10.10.0.55 5060 port [tcp/sip] succeeded!


                When I don't specify a specific IP on the "client" side:



                nc -v 10.10.0.55 5060


                Then the output on the "server" side is:



                Connection from 10.10.0.4 port 5060 [tcp/*] accepted


                This means that specifying a specific IP address works and it's SIPp that doesn't work that way when using the -i flag.






                share|improve this answer















                I was able to confirm (to an extent) that the issue is with SIPp and not in Linux in general.



                I have created a ticket with SIPp: https://sourceforge.net/p/sipp/bugs/147/



                My troubleshooting was as follows:



                On "server" side open netcat:



                nc -v -l 10.10.0.55 5060


                On "client side open netcat:



                nc -v -s 10.10.0.5 10.10.0.55 5060


                Output on "server" side:



                Connection from 10.10.0.5 port 5060 [tcp/*] accepted


                Output on "client" side:



                Connection to 10.10.0.55 5060 port [tcp/sip] succeeded!


                When I don't specify a specific IP on the "client" side:



                nc -v 10.10.0.55 5060


                Then the output on the "server" side is:



                Connection from 10.10.0.4 port 5060 [tcp/*] accepted


                This means that specifying a specific IP address works and it's SIPp that doesn't work that way when using the -i flag.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jun 16 '14 at 22:45

























                answered Jun 16 '14 at 22:28









                aikcharaikchar

                365




                365



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f137464%2flinux-ip-route-changes-source-address-of-tcp-but-not-udp%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.