[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[LDM #FVT-875334]: LDM source IP used when connecting to remote server
- Subject: [LDM #FVT-875334]: LDM source IP used when connecting to remote server
- Date: Thu, 27 Jun 2019 16:24:10 -0600
Robert,
I see what's happening: the ldmd(1) processes that are using IP address
128.117.110.220 are *receiving/downstream" LDM processes that were created as a
result of REQUEST entries in the LDM configuration-file. They use the system's
routing table to determine which interface/IP-address to use at their (local)
end. The bind() system function isn't involved at all.
I'm not sure this is a bug.
You should be able to configure your routing table so that these processes use
the IP address you want.
> Could it be an issue with running Pacemaker HA. Notice that ifconfig
> does not show the HA ips. You have to run "ip addr" to see them. You
> command output is after these two commands.
>
> [root@punk ~]# ifconfig -a
> em1 Link encap:Ethernet HWaddr F8:BC:12:4E:B9:78
> inet addr:128.117.110.220 Bcast:128.117.110.255
> Mask:255.255.255.0
> inet6 addr: fe80::fabc:12ff:fe4e:b978/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:10154218312 errors:0 dropped:1 overruns:0 frame:0
> TX packets:3482273909 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:14426259536716 (13.1 TiB) TX bytes:1724514192694
> (1.5 TiB)
> Interrupt:35
>
> em2 Link encap:Ethernet HWaddr F8:BC:12:4E:B9:79
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Interrupt:38
>
> em3 Link encap:Ethernet HWaddr F8:BC:12:4E:B9:7A
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Interrupt:34
>
> em4 Link encap:Ethernet HWaddr F8:BC:12:4E:B9:7B
> inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
> inet6 addr: fe80::fabc:12ff:fe4e:b97b/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:5613548 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3772113 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:671950093 (640.8 MiB) TX bytes:436427883 (416.2 MiB)
> Interrupt:36
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:65536 Metric:1
> RX packets:349229 errors:0 dropped:0 overruns:0 frame:0
> TX packets:349229 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:38957613 (37.1 MiB) TX bytes:38957613 (37.1 MiB)
>
> [root@punk ~]# ip addr
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
> 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: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
> qlen 1000
> link/ether f8:bc:12:4e:b9:78 brd ff:ff:ff:ff:ff:ff
> inet 128.117.110.220/24 brd 128.117.110.255 scope global em1
> inet 128.117.110.222/24 brd 128.117.110.255 scope global secondary em1
> inet 128.117.110.43/24 brd 128.117.110.255 scope global secondary em1
> inet6 fe80::fabc:12ff:fe4e:b978/64 scope link
> valid_lft forever preferred_lft forever
> 3: em2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
> link/ether f8:bc:12:4e:b9:79 brd ff:ff:ff:ff:ff:ff
> 4: em3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
> link/ether f8:bc:12:4e:b9:7a brd ff:ff:ff:ff:ff:ff
> 5: em4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
> qlen 1000
> link/ether f8:bc:12:4e:b9:7b brd ff:ff:ff:ff:ff:ff
> inet 10.0.0.2/24 brd 10.0.0.255 scope global em4
> inet6 fe80::fabc:12ff:fe4e:b97b/64 scope link
> valid_lft forever preferred_lft forever
>
>
>
> [root@punk ~]# netstat --inet -t -a -n
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
> tcp 0 0 0.0.0.0:22
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:35480
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:34233
> 0.0.0.0:* LISTEN
> tcp 0 0 128.117.110.222:443
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:5666
> 0.0.0.0:* LISTEN
> tcp 0 0 128.117.110.43:388
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:718
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:45231
> 0.0.0.0:* LISTEN
> tcp 0 0 0.0.0.0:111
> 0.0.0.0:* LISTEN
> tcp 0 0 128.117.110.222:80
> 0.0.0.0:* LISTEN
> tcp 0 0 128.117.110.220:80
> 0.0.0.0:* LISTEN
> tcp 0 0 128.117.110.43:388
> 128.117.109.50:40293 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12884 TIME_WAIT
> tcp 0 0 128.117.110.220:46822
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:46830
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32568 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32538 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32696 TIME_WAIT
> tcp 0 0 128.117.110.220:46818
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:38014
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.43:388
> 128.117.109.50:40292 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32584 TIME_WAIT
> tcp 0 0 128.117.110.220:38046
> 140.172.138.66:443 TIME_WAIT
> tcp 0 237 128.117.110.220:80
> 137.75.68.151:32863 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32534 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32581 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32561 TIME_WAIT
> tcp 0 0 128.117.110.220:975
> 128.117.110.61:2049 ESTABLISHED
> tcp 0 1712580 128.117.110.220:80
> 214.38.156.83:51856 ESTABLISHED
> tcp 0 0 128.117.110.220:46832
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:627
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:22
> 128.117.107.40:54211 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32636 TIME_WAIT
> tcp 0 0 128.117.110.220:22
> 128.117.110.22:57902 ESTABLISHED
> tcp 0 0 128.117.110.220:631
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32540 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32603 TIME_WAIT
> tcp 0 0 128.117.110.220:41351
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32601 TIME_WAIT
> tcp 0 0 128.117.110.220:46796
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32826 TIME_WAIT
> tcp 0 0 128.117.110.220:628
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 214.38.156.83:51854 TIME_WAIT
> tcp 0 0 128.117.110.43:388
> 128.117.109.50:40294 ESTABLISHED
> tcp 0 0 128.117.110.220:46820
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32571 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32855 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32688 TIME_WAIT
> tcp 0 0 128.117.110.220:46794
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:46792
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32562 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32558 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32587 TIME_WAIT
> tcp 0 0 128.117.110.220:59430
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:60187
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32556 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 132.206.51.22:40394 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32554 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32825 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 66.112.152.41:39259 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 66.112.152.41:39258 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12896 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32544 TIME_WAIT
> tcp 0 0 128.117.110.220:633
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:51177
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32546 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32861 TIME_WAIT
> tcp 0 0 128.117.110.220:46788
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32593 TIME_WAIT
> tcp 0 0 128.117.110.220:22
> 128.117.110.22:46044 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32783 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 66.112.152.41:39255 TIME_WAIT
> tcp 0 0 128.117.110.220:46784
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12887 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 66.112.152.41:39254 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12895 TIME_WAIT
> tcp 0 0 128.117.110.220:924
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.43:388
> 128.117.109.50:40290 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32572 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32588 TIME_WAIT
> tcp 0 0 128.117.110.220:46828
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:38036
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:38012
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32536 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32592 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32533 TIME_WAIT
> tcp 0 0 128.117.110.220:629
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32569 TIME_WAIT
> tcp 0 0 128.117.110.220:41888
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12883 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 214.38.156.83:51852 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 132.206.51.22:40458 TIME_WAIT
> tcp 0 0 128.117.110.220:46778
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:38044
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12885 TIME_WAIT
> tcp 0 0 128.117.110.220:894
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:46798
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12890 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32838 TIME_WAIT
> tcp 0 0 128.117.110.220:39310
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 66.112.152.41:39265 TIME_WAIT
> tcp 0 0 128.117.110.220:5666
> 128.117.110.22:59840 TIME_WAIT
> tcp 0 0 128.117.110.220:38040
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:52492
> 204.227.96.200:388 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32555 TIME_WAIT
> tcp 0 0 128.117.110.220:38068
> 140.172.138.66:443 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32600 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32629 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32859 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32681 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12891 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32831 TIME_WAIT
> tcp 0 0 127.0.0.1:43378
> 128.117.110.222:80 TIME_WAIT
> tcp 0 0 128.117.110.220:52488
> 204.227.96.200:388 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32843 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32703 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32833 TIME_WAIT
> tcp 0 0 128.117.110.220:58670
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:630
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32779 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32760 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 214.38.156.83:51848 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12886 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32841 TIME_WAIT
> tcp 0 0 128.117.110.220:38034
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32564 TIME_WAIT
> tcp 0 0 128.117.110.220:46786
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:56006
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32853 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12889 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 132.206.51.22:40436 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32763 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 66.112.152.41:39264 TIME_WAIT
> tcp 0 0 128.117.110.220:49199
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:922
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:632
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:38066
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 132.206.51.22:40422 TIME_WAIT
> tcp 0 0 127.0.0.1:34465
> 128.117.110.222:80 TIME_WAIT
> tcp 0 0 128.117.110.220:35642
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32747 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.105.10:12892 TIME_WAIT
> tcp 0 0 128.117.110.43:388
> 128.117.109.50:40295 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32566 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32846 TIME_WAIT
> tcp 0 0 128.117.110.220:38048
> 140.172.138.66:443 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32590 TIME_WAIT
> tcp 0 0 128.117.110.220:46800
> 140.90.101.62:443 TIME_WAIT
> tcp 0 0 128.117.110.220:22
> 128.117.107.40:54215 ESTABLISHED
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32597 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32604 TIME_WAIT
> tcp 0 0 127.0.0.1:38579
> 128.117.110.222:80 TIME_WAIT
> tcp 0 0 128.117.110.220:36621
> 128.117.110.15:111 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32565 TIME_WAIT
> tcp 0 0 128.117.110.220:882
> 128.117.110.60:2049 ESTABLISHED
> tcp 0 0 128.117.110.220:1001
> 128.117.110.15:1013 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 214.38.156.83:51850 TIME_WAIT
> tcp 0 0 128.117.110.220:80
> 137.75.68.151:32549 TIME_WAIT
> What C file has the bind call to set up the connection to the remote
> feed sites?
>
> I know in ldmd.c you setup the bind() with the source IP for the
> listen().
>
> (void) memset(&addr, 0, len);
> addr.sin_family = AF_INET;
> * addr.sin_addr.s_addr = localIpAddr;*
> addr.sin_port = (short) htons((short) port);
> ... deleted
> if (bind(sock, (struct sockaddr *) &addr, len) < 0) {
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: FVT-875334
Department: Support LDM
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.