NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
irish-rbr50
Dec 26, 2020Aspirant
rbr50v2 and failed login attempts to rpis
I have an rbr50 as my main router/wifi in front of a cable modem running in modem mode. I recently added 2 raspberry pis devices as pi-hole dns servers on my home network. However I now find a st...
- Dec 28, 2020
> The cable modem is supplied by my ISP, virgin media Ireland and, in
> modem mode has, 1 option, modem mode or router mode.Still not as useful a description as, say, a maker and model number
might be. But, if it really is in modem-only mode, it shouldn't matter.
Is the IP address of the WAN/Internet interface on the RBR50v2 a public
address?> I have no port forwarding rules, port triggering is disabled, UPnP is
> disabled.Did you verify that the ADVANCED > Advanced Setup > UPnp : UPnP
Portmap Table is empty?I'm out of possible causes. If you're really getting outside-world
connections to multiple port-22 destinations, then I don't know what,
other than UPnP, could do it. Of course, with Netgear router firmware,
almost any bug is possible, including leaving UPnP enabled/active when
the indicator says that it's not.
My next step would be to configure an explicit dead-end
port-forwarding rule for (external) port 22, as suggested above.
Presumably, that would supercede any residual/misguided UPnP activity
for that port. If UPnP actually is active, then attempting to add that
rule might fail with a complaint like:The specified port(s) are being used by other configurations.
Please check your configurations of USB Readyshare, Remote
Management, Port forwarding, Port Triggering, UPnP Port Mapping
table, RIP, and Internet connection type.If that were to happen, then I'd disconnect everything except one
computer from the router's LAN (wired and wireless), restart the router,
and try it again. (Then restore the normal LAN connections.)
irish-rbr50
Dec 27, 2020Aspirant
Thanks for the prompt reply.
The cable modem is supplied by my ISP, virgin media Ireland and, in modem mode has, 1 option, modem mode or router mode.
Correct, there was no port forwarding configured (I even disabled port triggering even though there was no rule added).
And correct again, UPnP was enabled, by default. I have promptly disabled it and have not seen a login attempt on my RPIs since.
Thanks again.
irish-rbr50
Dec 28, 2020Aspirant
... and the messages are back.
It appeared to work for an hour or so and I went off doing other things. However the error messages came back, but initially the ssh attempts appeared to be coming from the Orbi itself. Then after a while the IP addresses switched back to external ones.
I have no port forwarding rules, port triggering is disabled, UPnP is disabled.
I did find a mention of similar symptom on a "unraid" box in a different thread and their conclusion was that it was Armor. I logged into https://armor.netgear.com/... and looked atm my router but there is no configuration detail to say what it is doing, but the error messages continue on my RPIs
pi@pi2:/var/log $ tail -f auth.log
Dec 28 15:25:15 pi2 sshd[22684]: Failed password for invalid user duser from 91.121.30.186 port 58788 ssh2
Dec 28 15:25:15 pi2 sshd[22684]: Received disconnect from 91.121.30.186 port 58788:11: Bye Bye [preauth]
Dec 28 15:25:15 pi2 sshd[22684]: Disconnected from 91.121.30.186 port 58788 [preauth]
Dec 28 15:25:15 pi2 sshd[22686]: Invalid user ubuntu from 49.234.101.196 port 54414
Dec 28 15:25:15 pi2 sshd[22686]: input_userauth_request: invalid user ubuntu [preauth]
Dec 28 15:25:15 pi2 sshd[22686]: pam_unix(sshd:auth): check pass; user unknown
Dec 28 15:25:15 pi2 sshd[22686]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=49.234.101.196
Dec 28 15:25:18 pi2 sshd[22686]: Failed password for invalid user ubuntu from 49.234.101.196 port 54414 ssh2
Dec 28 15:25:18 pi2 sshd[22686]: Received disconnect from 49.234.101.196 port 54414:11: Bye Bye [preauth]
Dec 28 15:25:18 pi2 sshd[22686]: Disconnected from 49.234.101.196 port 54414 [preauth]
Dec 28 15:25:58 pi2 sshd[22702]: Invalid user teamspeak3 from 51.105.5.16 port 58178
Dec 28 15:25:58 pi2 sshd[22702]: input_userauth_request: invalid user teamspeak3 [preauth]
Dec 28 15:25:58 pi2 sshd[22702]: pam_unix(sshd:auth): check pass; user unknown
Dec 28 15:25:58 pi2 sshd[22702]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=51.105.5.16
Dec 28 15:26:00 pi2 sshd[22702]: Failed password for invalid user teamspeak3 from 51.105.5.16 port 58178 ssh2
Dec 28 15:26:00 pi2 sshd[22702]: Received disconnect from 51.105.5.16 port 58178:11: Bye Bye [preauth]
Dec 28 15:26:00 pi2 sshd[22702]: Disconnected from 51.105.5.16 port 58178 [preauth]
Dec 28 15:26:07 pi2 sshd[22714]: Invalid user ftpuser from 51.254.102.19 port 47660
Dec 28 15:26:07 pi2 sshd[22714]: input_userauth_request: invalid user ftpuser [preauth]
Dec 28 15:26:07 pi2 sshd[22714]: pam_unix(sshd:auth): check pass; user unknown
Dec 28 15:26:07 pi2 sshd[22714]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=51.254.102.19
Dec 28 15:26:09 pi2 sshd[22714]: Failed password for invalid user ftpuser from 51.254.102.19 port 47660 ssh2
Dec 28 15:26:09 pi2 sshd[22714]: Received disconnect from 51.254.102.19 port 47660:11: Bye Bye [preauth]
Dec 28 15:26:09 pi2 sshd[22714]: Disconnected from 51.254.102.19 port 47660 [preauth]
- antinodeDec 28, 2020Guru
> The cable modem is supplied by my ISP, virgin media Ireland and, in
> modem mode has, 1 option, modem mode or router mode.Still not as useful a description as, say, a maker and model number
might be. But, if it really is in modem-only mode, it shouldn't matter.
Is the IP address of the WAN/Internet interface on the RBR50v2 a public
address?> I have no port forwarding rules, port triggering is disabled, UPnP is
> disabled.Did you verify that the ADVANCED > Advanced Setup > UPnp : UPnP
Portmap Table is empty?I'm out of possible causes. If you're really getting outside-world
connections to multiple port-22 destinations, then I don't know what,
other than UPnP, could do it. Of course, with Netgear router firmware,
almost any bug is possible, including leaving UPnP enabled/active when
the indicator says that it's not.
My next step would be to configure an explicit dead-end
port-forwarding rule for (external) port 22, as suggested above.
Presumably, that would supercede any residual/misguided UPnP activity
for that port. If UPnP actually is active, then attempting to add that
rule might fail with a complaint like:The specified port(s) are being used by other configurations.
Please check your configurations of USB Readyshare, Remote
Management, Port forwarding, Port Triggering, UPnP Port Mapping
table, RIP, and Internet connection type.If that were to happen, then I'd disconnect everything except one
computer from the router's LAN (wired and wireless), restart the router,
and try it again. (Then restore the normal LAN connections.)- irish-rbr50Dec 31, 2020Aspirant
Looks like the attempts stopped a some hours after I sent the previous email but before I made any changes....
The cable modem really is in modem-only mode, and provides an ISP supplied IP public address. It is relatively static, but has occasionally changed after resets.
For some reason, the ssh attempts stopped at 16:01 local time on the 29th. Up to that, there had been 10-15 a minute since I noticed. Is there a cron job in the router that 'delayed' the application of the config settings?
Either way, the login attempts have stopped but to be sure, per your suggestion, I shrunk the DHCP range and added an SSH forwarding rule to one of the unused IP addresses.
Thanks for the help and suggestions.
FWIW, Of the 2,404 usernames in the short log, the top 25 attempted logins make for a curious list:
$ egrep Invalid /var/log/auth.log | awk -F" " '{print $8}' | sort | uniq -c | sort -n | tail -25
50 netman
53 osmc
67 ftpuser
80 git
80 nagios
84 oracle
87 guest
102 postgres
156 from
160 test
192 ubuntu
235 tech
248 telecomadmin
256 admin1
258 administrator
263 profile1
272 MikroTik
272 web
273 default
282 demo
284 ubnt
301 user1
323 support
402 user
785 admin
- antinodeDec 31, 2020Guru
> Looks like the attempts stopped a some hours after I sent the previous
> email but before I made any changes....Sounds like a mystery.
> [...] Is there a cron job in the router that 'delayed' the application
> of the config settings?I doubt it. But what do I know?
> [...] the login attempts have stopped but to be sure, [...]
What could go wrong?
> FWIW, Of the 2,404 usernames in the short log, the top 25 attempted
> logins make for a curious list: [...]I assume that the malware writers did some research on popular user
names and passwords. Especially cases where some package/account is
installed with a (constant) default password.Around here, SSH is not at port 22, so about all I see (with
credentials) are FTP attacks. My outward facing server runs VMS, so
most of the popular Unix and Windows user names don't apply. On rare
occasions someone/thing tries "SYSTEM", but my password seems to be
good enough. (And, after N failures, break-in avoidance takes over, and
stops even good credentials from working for a while from that source.Thirty or forty years ago (pre-Internet), a VMS installation assigned
a password of "MANAGER" to the "SYSTEM" account (similar for a few
others: FIELD+SERVICE, ...), and left it up to the system manager to add
some security, but in recent decades the installation procedure demands
non-trivial passwords for the automatically-created accounts.