Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #61084 > unrolled thread
| Started by | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| First post | 2019-12-01 20:34 +0100 |
| Last post | 2019-12-02 15:41 -0700 |
| Articles | 20 on this page of 89 — 10 participants |
Back to article view | Back to alt.os.linux
NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-01 20:34 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-01 14:42 -0700
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 13:23 +0100
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-02 14:45 +0000
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 16:05 +0100
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 22:24 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 10:29 -0700
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 18:44 +0100
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-02 17:56 +0000
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 19:53 +0100
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 22:29 +0100
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-03 15:54 +0100
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 16:27 +0100
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-03 22:17 +0100
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 23:12 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 09:14 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 19:15 +0100
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-01 22:46 +0100
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 13:58 +0100
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 14:45 +0100
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 16:15 +0100
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-02 17:36 +0000
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 18:53 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 11:27 -0700
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 20:10 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 13:16 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 23:36 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 15:57 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 00:17 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 16:41 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 04:12 +0100
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-03 01:59 +0000
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 19:16 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-02 21:00 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 20:12 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-02 21:52 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 21:17 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-03 02:46 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 09:03 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-03 14:28 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 16:30 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-03 19:59 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 19:37 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 19:22 +0100
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-03 14:34 -0600
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 23:23 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 16:46 -0700
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-03 18:02 +0000
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 12:57 -0700
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-03 22:11 +0000
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 16:37 -0700
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 16:59 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-03 20:27 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-03 19:44 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-03 21:32 -0600
Re: NFS error-proof mount at boot time John Hasler <jhasler@newsguy.com> - 2019-12-04 07:27 -0600
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-04 08:31 -0600
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-04 16:59 +0000
Re: NFS error-proof mount at boot time John Hasler <jhasler@newsguy.com> - 2019-12-04 17:05 -0600
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-05 19:38 +0100
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-05 14:25 -0600
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-06 14:26 +0100
Re: NFS error-proof mount at boot time John Hasler <jhasler@newsguy.com> - 2019-12-06 10:06 -0600
Re: NFS error-proof mount at boot time Aragorn <thorongil@telenet.be> - 2019-12-07 03:35 +0100
Re: NFS error-proof mount at boot time flatfish <flatfish@songwriter.net> - 2019-12-04 20:51 -0500
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 04:13 +0100
Re: NFS error-proof mount at boot time "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-02 13:27 -0500
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 11:35 -0700
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 20:16 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 13:31 -0700
Re: NFS error-proof mount at boot time "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-02 20:02 -0500
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 23:12 +0100
Re: NFS error-proof mount at boot time William Unruh <unruh@invalid.ca> - 2019-12-03 01:45 +0000
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 19:23 -0700
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 11:12 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 22:59 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 10:55 -0700
Re: NFS error-proof mount at boot time Soviet_Mario <SovietMario@CCCP.MIR> - 2019-12-02 20:52 +0100
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 14:36 -0700
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 00:08 +0100
Re: NFS error-proof mount at boot time Ken Hart <kwhart1@frontier.com> - 2019-12-03 20:45 -0500
Re: NFS error-proof mount at boot time "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-02 13:08 -0500
Re: NFS error-proof mount at boot time "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 22:50 +0100
Re: NFS error-proof mount at boot time "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-02 12:51 -0500
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 11:29 -0700
Re: NFS error-proof mount at boot time "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-02 13:45 -0500
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 12:40 -0700
Re: NFS error-proof mount at boot time Bit Twister <BitTwister@mouse-potato.com> - 2019-12-02 16:30 -0600
Re: NFS error-proof mount at boot time Grant Taylor <gtaylor@tnetconsulting.net> - 2019-12-02 15:41 -0700
Page 3 of 5 — ← Prev page 1 2 [3] 4 5 Next page →
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 16:30 -0700 |
| Message-ID | <qs6r7j$14m$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61240 |
On 12/3/19 1:28 PM, Bit Twister wrote: > I would expect that I would see any mac/ip that is not in the reference > to show up in the hourly arp check. I completely agree with your logic given the caveat that it's limited to the /current/ entries in the local system's ARP cache. There are a number of ways that the local system's ARP cache won't have entries for all systems on the network. > But I am depending to the arp probe to return those "unknown" mac ids. The "unknown" entries were populated by the standard ARP process. What is generating the probes that you are talking about? Remember, that the ARP cache is the results of the ARP process. So if nothing is currently trying to actively talk to something, then the entries will not be updated, will likely expire out, and remain "unknown". The "expire out" is also very important. > You have much more experience than me. Read: Battle scars. > I saw a post which used the arp command/results around Wed 06 Nov > 19:26 2019 and had the bright idea to capture and check the output > for entries not on my lan. I commend you for your efforts. I think that your script does what you expect save for the above mentioned caveat. > Regardless of what arp would give you in your setup, I would expect > your first arp probe to get you a "normal" result. Comparing from > then on would/should show other mac ids if the show up. What you've put together will let you know if the current contents of the ARP cache differ from the previous (reference) contents of the ARP cache. The catch is that the "current contents of the ARP cache" can easily be (and frequently is) a subset of what's actually on the network. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-12-03 19:59 -0600 |
| Message-ID | <slrnque4ot.5ps.BitTwister@wb.home.test> |
| In reply to | #61246 |
On Tue, 3 Dec 2019 16:30:15 -0700, Grant Taylor wrote: > On 12/3/19 1:28 PM, Bit Twister wrote: >> I would expect that I would see any mac/ip that is not in the reference >> to show up in the hourly arp check. > > I completely agree with your logic given the caveat that it's limited to > the /current/ entries in the local system's ARP cache. > > There are a number of ways that the local system's ARP cache won't have > entries for all systems on the network. I can agree with all the above. Not hunting for all entries on the network. Just the possible chance of a node asking for ip for a mac id. > >> But I am depending to the arp probe to return those "unknown" mac ids. > > The "unknown" entries were populated by the standard ARP process. > > What is generating the probes that you are talking about? No idea, I think I had started wondering about it when I saw arp entries in systemd journal asking who has (stuff I can not remember) > What you've put together will let you know if the current contents of > the ARP cache differ from the previous (reference) contents of the ARP > cache. I understand. The reference file is only updated by hand. Code snippet did test if reference file did not exist, create one. > > The catch is that the "current contents of the ARP cache" can easily be > (and frequently is) a subset of what's actually on the network. I agree completely with your response. I just want to catch a point in time when a system shows something different during an arp check.
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 19:37 -0700 |
| Message-ID | <qs7674$e8m$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61253 |
On 12/3/19 6:59 PM, Bit Twister wrote: > I can agree with all the above. Not hunting for all entries on the > network. > > Just the possible chance of a node asking for ip for a mac id. > > No idea, I think I had started wondering about it when I saw arp > entries in systemd journal asking who has (stuff I can not remember) > > I understand. The reference file is only updated by hand. Code snippet > did test if reference file did not exist, create one. > > I agree completely with your response. I just want to catch a point > in time when a system shows something different during an arp check. That all sounds perfectly reasonable. I think that scratching a curiosity itch is always a good thing. Sometimes it causes more scratching. As long as you understand what you are doing, what it means, and what the potential limitations are, then by all means, scratch the curiosity itch. :-D -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-12-03 19:22 +0100 |
| Message-ID | <0olibg-tbe.ln1@Telcontar.valinor> |
| In reply to | #61216 |
On 03/12/2019 09.46, Bit Twister wrote: > On Mon, 2 Dec 2019 21:17:54 -0700, Grant Taylor wrote: >> On 12/2/19 8:52 PM, Bit Twister wrote: >>> My /etc/ethers file has mac and FQDN. Script compares >>> arp --numeric |sort -V --key=1 >>> output to a reference file using diff. Code snippet follows: >> >> Okay. >> >> 1) How do you ensure that your ARP cache includes all hosts and doesn't >> miss one or more hosts that your local workstation has not been talking >> to? E.g. if two hosts are talking directly between each other. > > All desktops are running my custom script hourly. Any difference found > is sent/mailed to network system admin, (me) > > >> 2) It looks like that code snippet compares the output of two >> invocations of the arp command that you listed. > > Very true, reference file has to be generated that matches output of > of a valid hourly test shot result. > >> 3) I don't see any reference to /etc/ethers in that code snippet. > > You won't. arp command converts found mac id into ip used in /etc/ethers > and dumps the whole result to output. > >> n) What am I missing? > > Static configuration files and actual operation result. :) > > $ grep webcam3 /etc/ethers > cc:79:cf:03:c8:43 webcam3.home.test > > $ grep webcam3 /etc/hosts > 192.168.11.196 webcam3.home.test webcam3 > > $ arp --numeric | sort --version-sort --key=1 | grep cc:79:cf:03:c8:43 > 192.168.11.196 ether cc:79:cf:03:c8:43 CM enp3s0 > What populates /etc/ethers? mine is empty, just some comments from the packager, that seems to imply that /I/ edit the file with certain syntax. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-12-03 14:34 -0600 |
| Message-ID | <slrnqudhlr.ovr.BitTwister@wb.home.test> |
| In reply to | #61236 |
On Tue, 3 Dec 2019 19:22:24 +0100, Carlos E.R. wrote: > On 03/12/2019 09.46, Bit Twister wrote: >> On Mon, 2 Dec 2019 21:17:54 -0700, Grant Taylor wrote: >>> On 12/2/19 8:52 PM, Bit Twister wrote: >>>> My /etc/ethers file has mac and FQDN. Script compares >>>> arp --numeric |sort -V --key=1 >>>> output to a reference file using diff. Code snippet follows: >>> >>> Okay. >>> >>> 1) How do you ensure that your ARP cache includes all hosts and doesn't >>> miss one or more hosts that your local workstation has not been talking >>> to? E.g. if two hosts are talking directly between each other. >> >> All desktops are running my custom script hourly. Any difference found >> is sent/mailed to network system admin, (me) >> >> >>> 2) It looks like that code snippet compares the output of two >>> invocations of the arp command that you listed. >> >> Very true, reference file has to be generated that matches output of >> of a valid hourly test shot result. >> >>> 3) I don't see any reference to /etc/ethers in that code snippet. >> >> You won't. arp command converts found mac id into ip used in /etc/ethers >> and dumps the whole result to output. >> >>> n) What am I missing? >> >> Static configuration files and actual operation result. :) >> >> $ grep webcam3 /etc/ethers >> cc:79:cf:03:c8:43 webcam3.home.test >> >> $ grep webcam3 /etc/hosts >> 192.168.11.196 webcam3.home.test webcam3 >> >> $ arp --numeric | sort --version-sort --key=1 | grep cc:79:cf:03:c8:43 >> 192.168.11.196 ether cc:79:cf:03:c8:43 CM enp3s0 >> > > > What populates /etc/ethers? mine is empty, just some comments from the > packager, that seems to imply that /I/ edit the file with certain syntax. Yup, same here. I did my first arp request, cut/pasted desired info into /etc/ethers. Other than a point in time probe, I was hunting for an easy method to catch unknown mac ids on each of my systems.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-12-03 23:23 +0100 |
| Message-ID | <0s3jbg-uuk.ln1@Telcontar.valinor> |
| In reply to | #61241 |
On 03/12/2019 21.34, Bit Twister wrote:
> On Tue, 3 Dec 2019 19:22:24 +0100, Carlos E.R. wrote:
>> On 03/12/2019 09.46, Bit Twister wrote:
>>> On Mon, 2 Dec 2019 21:17:54 -0700, Grant Taylor wrote:
...
>> What populates /etc/ethers? mine is empty, just some comments from the
>> packager, that seems to imply that /I/ edit the file with certain syntax.
>
> Yup, same here. I did my first arp request, cut/pasted desired info into
> /etc/ethers.
>
> Other than a point in time probe, I was hunting for an easy method
> to catch unknown mac ids on each of my systems.
Ok... what purpose is there in filling up that file? I mean in a normal
system. I don't think I have ever used it in two decades.
There is a man page, but only says the syntax. It mentions "man rarp",
but I don't have it installed. The command is not even distributed (in
openSUSE). I have "rarpd", though, but the man says:
WARNING
This facility is deeply obsoleted by BOOTP and later DHCP
protocols. However, some clients really still need this to boot.
Apparently, rarpd answered using that /etc/ethers file, filling a
purpose similar to what dhcp does now: that is, giving a "fixated"
address to a machine that requests an IP.
Ok, that's clear then. That file is indeed edited manually.
A different thing altogether is doing a survey of the network segment
and storing somewhere what IPs are found and their MACs.
--
Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 16:46 -0700 |
| Message-ID | <qs6s6v$qq7$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61245 |
On 12/3/19 3:23 PM, Carlos E.R. wrote: > Ok... what purpose is there in filling up that file? I mean in a > normal system. I don't think I have ever used it in two decades. That is a very good question. My experience is similar to yours. Hence my interest in something actually using it. I /think/ that some old networking auto-configuration, which predated DHCP, used it. > There is a man page, but only says the syntax. It mentions "man rarp", > but I don't have it installed. The command is not even distributed > (in openSUSE). I have "rarpd", though, but the man says: > > WARNING > This facility is deeply obsoleted by BOOTP and later DHCP protocols. > However, some clients really still need this to boot. Yep. These are the auto-configuration methods I was referring to. Reverse ARP — "Here is my MAC address. What is my IP?" BOOT Protocol — precursor to / subset of DHCP The /etc/ethers file /used/ /to/ /be/ where the RARP daemon (rarpd) and / or BOOTP daemon would receive requests and look up information in. The operative words are "used to be" and "RARP" / "BOOTP". All really old things that haven't been used in 25+ years. > Apparently, rarpd answered using that /etc/ethers file, filling a > purpose similar to what dhcp does now: that is, giving a "fixated" > address to a machine that requests an IP. ;-) > Ok, that's clear then. That file is indeed edited manually. Probably. But something could manage the contents for you. > A different thing altogether is doing a survey of the network segment > and storing somewhere what IPs are found and their MACs. Yep. This is much more likely to provide a more complete and more accurate list of what's on the network. Not withstanding things specifically filtering. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-12-03 18:02 +0000 |
| Message-ID | <qs6804$4t2$1@dont-email.me> |
| In reply to | #61210 |
On 2019-12-03, Grant Taylor <gtaylor@tnetconsulting.net> wrote: > On 12/2/19 8:52 PM, Bit Twister wrote: >> My /etc/ethers file has mac and FQDN. Script compares >> arp --numeric |sort -V --key=1 >> output to a reference file using diff. Code snippet follows: > > Okay. > > 1) How do you ensure that your ARP cache includes all hosts and doesn't > miss one or more hosts that your local workstation has not been talking > to? E.g. if two hosts are talking directly between each other. YOur computer sends out a broadcast message Who has <IP adress> and the computer on th enetwork that has that IP address responds with its MAC address. The cache is useful, but not necessary. > > 2) It looks like that code snippet compares the output of two > invocations of the arp command that you listed. > > 3) I don't see any reference to /etc/ethers in that code snippet. > > n) What am I missing? > > >
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 12:57 -0700 |
| Message-ID | <qs6ep6$h4e$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61234 |
On 12/3/19 11:02 AM, William Unruh wrote: > YOur computer sends out a broadcast message Who has <IP adress> and the > computer on th enetwork that has that IP address responds with its MAC > address. I'm aware of how ARP works. But there is no guarantee that: 1) You system will cache information for a connection it's not involved in. 2) You will still have the information in cache. 3) The two other communicating systems even use ARP. My point is that you can't rely on the ARP cache having information about all systems on the network. > The cache is useful, but not necessary. The cache is often incomplete. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-12-03 22:11 +0000 |
| Message-ID | <qs6mjc$604$1@dont-email.me> |
| In reply to | #61239 |
On 2019-12-03, Grant Taylor <gtaylor@tnetconsulting.net> wrote: > On 12/3/19 11:02 AM, William Unruh wrote: >> YOur computer sends out a broadcast message Who has <IP adress> and the >> computer on th enetwork that has that IP address responds with its MAC >> address. > > I'm aware of how ARP works. > > But there is no guarantee that: > > 1) You system will cache information for a connection it's not involved in. > 2) You will still have the information in cache. > 3) The two other communicating systems even use ARP. > > My point is that you can't rely on the ARP cache having information > about all systems on the network. > >> The cache is useful, but not necessary. > > The cache is often incomplete. And if it does not have the info for some IP, it will ask. If the system never talks to or wants to talk to that IP, then it will not have the info and will never need it. If it needs it it will get it. And if necessary you could do a for ((i=0;i<254;i++)); do ping -c1 -w1 192.168.0.$i done before hand to make sure that the cache gets filled up with live systems. > > >
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 16:37 -0700 |
| Message-ID | <qs6rko$b0v$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61243 |
On 12/3/19 3:11 PM, William Unruh wrote: > And if it does not have the info for some IP, it will ask. Displaying the ARP cache does not cause the system to go through an ARP process. It simply lists what's in the cache. > If the system never talks to or wants to talk to that IP, then it > will not have the info and will never need it. Bingo! There can be systems on the network that are not in the ARP cache. Ergo looking at the ARP cache is not a viable method of knowing about ALL systems on the network. > If it needs it it will get it. Yes, /if/ the system /needs/ it. Nothing about looking at the ARP cache is an active process. Thus nothing about looking at the ARP cache causes the system to do anything. > And if necessary you could do a > for ((i=0;i<254;i++)); do > ping -c1 -w1 192.168.0.$i > done This is an active process that causes the system to actively try to communicate with IPs, thereby inducing the normal ARP process. > before hand to make sure that the cache gets filled up with live > systems. Such a ping scan will help quite a bit. But this is still not guaranteed to get ARP entries for everything. Especially if the normal ARP process is interfered with in any way; arptables, iptables, /proc or /sys knobs related to ARP. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 16:59 -0700 |
| Message-ID | <qs6sue$c0e$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61210 |
On 12/2/19 9:17 PM, Grant Taylor wrote:
> 1) How do you ensure that your ARP cache includes all hosts and doesn't
> miss one or more hosts that your local workstation has not been talking
> to? E.g. if two hosts are talking directly between each other.
I was thinking about two things when I asked this question:
1) Run this on the gateway to have better information about systems
talking through the gateway. This would /likely/ be a superset of
systems vs discrete workstations only having a subset of information of
the systems they are talking to.
LocalA talks to RemoteM via LocalR
LocalB talks to RemoteN via LocalR
LocalC talks to RemoteO via LocalR
LocalC talks to LocalS
LocalD talks to LocalE
LocalE talks to LocalD
LocalS talks to LocalC
LocalR talks to LocalA on behalf of RemoteM
LocalR talks to LocalB on behalf of RemoteN
LocalR talks to LocalC on behalf of RemoteO
LocalR talks to LocalS on behalf of RemoteP
LocalS talks to RemoteP via LocalR
Notice how LocalR knows about more systems than any of the other local
machines?
LocalA knows about 1; LocalR
LocalB knows about 1; LocalR
LocalC knows about 2; LocalR and LocalS
LocalD knows about 1; LocalE
LocalE knows about 1; LocalD
LocalR knows about 4; LocalA, LocalB, LocalC, and LocalS
LocalS knows about 2; LocalC and LocalR
So, the choice of which system to run the script on is important.
2) It's also important to know that if LocalD and LocalE are very
careful, there is a reasonable chance that none of the other systems
will know that they are talking to each other.
--
Grant. . . .
unix || die
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-12-03 20:27 -0600 |
| Message-ID | <slrnque6bn.5ps.BitTwister@wb.home.test> |
| In reply to | #61250 |
On Tue, 3 Dec 2019 16:59:30 -0700, Grant Taylor wrote: > On 12/2/19 9:17 PM, Grant Taylor wrote: >> 1) How do you ensure that your ARP cache includes all hosts and doesn't >> miss one or more hosts that your local workstation has not been talking >> to? E.g. if two hosts are talking directly between each other. > > I was thinking about two things when I asked this question: > > 1) Run this on the gateway to have better information about systems > talking through the gateway. Problem here is gateway is in router. All systems running named and all lan nodes are in /etc/hosts. > This would /likely/ be a superset of > systems vs discrete workstations only having a subset of information of > the systems they are talking to. Agree, and as a rule, all systems would only be talking on my LAN. Exception is my browsing node. That is the one used for Internet surfing and external mail. > 2) It's also important to know that if LocalD and LocalE are very > careful, there is a reasonable chance that none of the other systems > will know that they are talking to each other. Never expected this kludge would be really effective. Just using it to see what might show up. I am nervous because my webcams have been cracked and are scanning for open ports on my three desktop nodes. My ck_connection script sends me email about dropped/blocked firewall packets. Latest logs show webcam is now using sequential source ports to probe all destination ports. Guessing script kiddie thinks I have blocked original source port(s) from previous attempts.
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-12-03 19:44 -0700 |
| Message-ID | <qs76jj$na5$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #61255 |
On 12/3/19 7:27 PM, Bit Twister wrote: > Problem here is gateway is in router. All systems running named and > all lan nodes are in /etc/hosts. *nod* You can only do what the equipment allows you to do. > Agree, and as a rule, all systems would only be talking on my LAN. I'd be tempted to remove the gateway (or enter a fake gateway) from any system that doesn't need to talk outside of the LAN. > Exception is my browsing node. That is the one used for Internet > surfing and external mail. That seems relatively normal. > Never expected this kludge would be really effective. Oh, don't get me wrong. I think that it is effective for quite a bit. Just be mindful that it's not 100% full proof. But if it does show you that your web cam is connecting to your workstation, then you can trust that information with a very high degree of certainty. Tools don't need to be perfect. If they do what you want, and you know what they are, and are not, capable of, then by all means, use them. > Just using it to see what might show up. :-) > I am nervous because my webcams have been cracked and are scanning > for open ports on my three desktop nodes. }:-| I'd personally think seriously about defending myself against them or updating them or replacing them, /if/ doing such was an option. > My ck_connection script sends me email about dropped/blocked firewall > packets. <thumbs up> > Latest logs show webcam is now using sequential source ports to probe > all destination ports. Guessing script kiddie thinks I have blocked > original source port(s) from previous attempts. I question if it's been owned and is now part of a bot net. :-( -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-12-03 21:32 -0600 |
| Message-ID | <slrnquea5u.f2q.BitTwister@wb.home.test> |
| In reply to | #61257 |
On Tue, 3 Dec 2019 19:44:22 -0700, Grant Taylor wrote: > On 12/3/19 7:27 PM, Bit Twister wrote: > >> I am nervous because my webcams have been cracked and are scanning >> for open ports on my three desktop nodes. > > }:-| > > I'd personally think seriously about defending myself against them Running Mageia distribution which installs/starts shorewall by default is blocking all inbound connections. I only accept udp port 53 to get through for webcams. Contacted tech support, got factory flash file, cracked cam would not allow firmware update. USA China trade war causing less selections and can no longer get web cam unless ordering from China shop. > or updating them or replacing them, /if/ doing such was an option. Not interested in same cam since it is crackable from wireless side. Current quick search for cheap small wireless/ethernet cams only turning up cams accessible through cloud service only. Current product picture at https://www.wansview.com/cn/proinfo.aspx?proid=15&categoryid=4&aids=2 is a little bit bigger than real thing. > >> My ck_connection script sends me email about dropped/blocked firewall >> packets. > ><thumbs up> > >> Latest logs show webcam is now using sequential source ports to probe >> all destination ports. Guessing script kiddie thinks I have blocked >> original source port(s) from previous attempts. > > I question if it's been owned and is now part of a bot net. :-( Yeah, thinking/hopping not, since it looking obvious with its lan scans and usually scanning after school lets out on weekdays and been going on for months. Good bot master would keep a lower profile. Since I am behind my ISP router with another router, I better get into the ISP router and see if I can block the mac id of web cam.
[toc] | [prev] | [next] | [standalone]
| From | John Hasler <jhasler@newsguy.com> |
|---|---|
| Date | 2019-12-04 07:27 -0600 |
| Message-ID | <87immwgr07.fsf@dhh.gt.org> |
| In reply to | #61255 |
Bit Twister writes: > Problem here is gateway is in router. You have a modem that, like most, purports to be an all-singing all-dancing doitall modem/router/firewall/access point? Put it in bridge mode and run your own router connected to the modem by wire. The firmware in those things is always crap. They are frequently cracked. > I am nervous because my webcams have been cracked and are scanning for > open ports on my three desktop nodes. Surely you scrapped them immediately. What brand? It would be good to know what not to buy. > Latest logs show webcam is now using sequential source ports to probe > all destination ports. Guessing script kiddie thinks I have blocked > original source port(s) from previous attempts. How are they able to reach the cameras? "Internet of things" crap should on its own subnet firewalled from both the LAN and the Internet. -- John Hasler jhasler@newsguy.com Dancing Horse Hill Elmwood, WI USA
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2019-12-04 08:31 -0600 |
| Message-ID | <slrnqufgpt.3ss.BitTwister@wb.home.test> |
| In reply to | #61263 |
On Wed, 04 Dec 2019 07:27:36 -0600, John Hasler wrote: > > How are they able to reach the cameras? Via wireless. Had 4 cams using wireless connection to lan. One was bricked by the criminal, I moved two back to Ethernet and they are no longer doing scans. Cams are wansview k1
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-12-04 16:59 +0000 |
| Message-ID | <qs8old$pq7$2@dont-email.me> |
| In reply to | #61266 |
On 2019-12-04, Bit Twister <BitTwister@mouse-potato.com> wrote: > On Wed, 04 Dec 2019 07:27:36 -0600, John Hasler wrote: >> >> How are they able to reach the cameras? > > Via wireless. Had 4 cams using wireless connection to lan. > One was bricked by the criminal, I moved two back to Ethernet and they > are no longer doing scans. Do you mean that you are being attacked by your neighbours, or lbysome car sitting outside your house? Wireless does not have that much of a range. > > Cams are wansview k1
[toc] | [prev] | [next] | [standalone]
| From | John Hasler <jhasler@newsguy.com> |
|---|---|
| Date | 2019-12-04 17:05 -0600 |
| Message-ID | <87zhg7g08q.fsf@dhh.gt.org> |
| In reply to | #61273 |
William Unruh writes: > Do you mean that you are being attacked by your neighbours... Or by the malware controlling his neighbors' computers. -- John Hasler jhasler@newsguy.com Dancing Horse Hill Elmwood, WI USA
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-12-05 19:38 +0100 |
| Message-ID | <8evnbg-2v4.ln1@Telcontar.valinor> |
| In reply to | #61273 |
On 04/12/2019 17.59, William Unruh wrote: > On 2019-12-04, Bit Twister <BitTwister@mouse-potato.com> wrote: >> On Wed, 04 Dec 2019 07:27:36 -0600, John Hasler wrote: >>> >>> How are they able to reach the cameras? >> >> Via wireless. Had 4 cams using wireless connection to lan. >> One was bricked by the criminal, I moved two back to Ethernet and they >> are no longer doing scans. > > Do you mean that you are being attacked by your neighbours, or lbysome > car sitting outside your house? Wireless does not have that much of a > range. Doesn't need be. The cameras would connect via wifi to an access point and the router. It would be interesting to know how they got into the cameras, but most of these IoT call home; the apps on phones, after registration, also come the same home, and thus you can see the photos outside of home. Maybe those cameras have a hole on their wifi setup but not on the eth setup. > > >> >> Cams are wansview k1 <https://www.wsj.com/articles/what-i-learned-from-the-hacker-who-spied-on-me-11549559728> Unfortunately needs a subscription to read it all :-( -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
Page 3 of 5 — ← Prev page 1 2 [3] 4 5 Next page →
Back to top | Article view | alt.os.linux
csiph-web