sshd: 210.123.134.56 OS10# system "sudo nano /etc/hosts.deny
sshd: ALL
if I do this - I can't login from other host except 210.123.134.56.
but when I login from trusted I see :
OS10 login: admin
Password:
Last login: Thu Dec 23 07:49:27 UTC 2021 on pts/0
Linux OS10 4.9.168 #1 SMP Debian 4.9.168-1+deb9u3 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-* Dell EMC Network Operating System (OS10) *-
-* *-
-* Copyright (c) 1999-2019 by Dell Inc. All Rights Reserved. *-
-* *-
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
This product is protected by U.S. and international copyright and
intellectual property laws. Dell EMC and the Dell EMC logo are
trademarks of Dell Inc. in the United States and/or other
jurisdictions. All other marks and names mentioned herein may be
trademarks of their respective companies.
System is loading.
this message showing until I cleared file /etc/hosts.deny
I do no understand why not working standard access-list on line vty in dellOS10
now I have many in log file million messages like this :
I try this many times. Its like in manual. but its wrong because There is no implicit deny rule. If none of the configured conditions match, the default behavior is to permit. If you need to deny traffic that does not match any of the configured conditions, explicitly configure a deny statement. with this configuration telnet all not working correctly too.
I do what say:
ip access-list ssh_telnet
seq 10 permit ip 10.96.102.0/24 any
!
ip access-list denyall
seq 10 deny ip any any
line vty
ip access-class ssh_telnet
ipv6 access-class denyall
but easy login from any other ip
show users
Index Line User Role Application Idle Login-Time Location Privilege-Level
----- ----- ------------ ------ ------------ ----- -------------------------- --------------------- ---------------
1 pts/0 admin sysadmin clish 50.4s 2021-12-23 T 11:20:36Z 10.96.102.254 [telnet] 15
2 pts/1 admin sysadmin bash 3.7s 2021-12-23 T 12:04:31Z 159.224.222.1 [ssh] 15
yes, actually I meant that, but I'm not sure why you can still access it from the other IP. It seems like we're missing something, but what? Just an idea using deny (for Extended IP ACLs) can be tried but I couldn't find it for OS10. Like for OS9 https://dell.to/3FoC7uB
I obviously misunderstood you at the beginning of the thread. With the additional information, it does look to me like you're doing things correctly. I did notice that you're firmware is behind, though. Would it be possible for you to try updating it to see if the behavior remains?
The reason that I ask is that because it does appear to be set up correctly, it would open up the possibility that the switch isn't working properly, but for me to send that through the proper channels, it would need to be either up to date, or I would need to find someone to validate the behavior.
I'll have to pass this up the chain, then. I'm not confident when or if I'll be able to give you an update afterwards, but at least it'll get looked at. There's no contact channel for techs to follow these sorts of issues or where they're at in being addressed.
zhukk
1 Rookie
•
21 Posts
0
December 22nd, 2021 08:00
i try use access-list on control plane, but its not working too. and I think access-list on control plane not working on this model, but I'm not sure.
and I try edit:
system " vi /etc/hosts.allow
system " vi /etc/hosts.deny
its working but I can't login to cli. after login and pass I see label "switch is still loading" or something similar, I don't remember clearly.
Dell-DylanJ
4 Operator
•
2.9K Posts
0
December 22nd, 2021 08:00
Good morning,
So as to not duplicate effort, what troubleshooting steps have been taken so far?
Dell-DylanJ
4 Operator
•
2.9K Posts
0
December 22nd, 2021 14:00
If the switch OS is getting stuck loading, you might try power cycling it, if you haven't already.
zhukk
1 Rookie
•
21 Posts
0
December 23rd, 2021 00:00
example :
OS10# system "sudo nano /etc/hosts.allow
sshd: 210.123.134.56
OS10# system "sudo nano /etc/hosts.deny
I need some thing to deny untrusted host.
DELL-Erman O
Moderator
•
3K Posts
0
December 23rd, 2021 01:00
Hello, Can you try to permit or deny filters via as below
zhukk
1 Rookie
•
21 Posts
0
December 23rd, 2021 02:00
what should be in the access-list "deny10" ?
zhukk
1 Rookie
•
21 Posts
0
December 23rd, 2021 04:00
if you mean something like that
I try this many times. Its like in manual.
but its wrong because There is no implicit deny rule. If none of the configured conditions match, the default behavior is to permit. If you need to deny traffic that does not match any of the configured conditions, explicitly configure a deny statement.
with this configuration telnet all not working correctly too.
I do what say:
but easy login from any other ip
DELL-Erman O
Moderator
•
3K Posts
0
December 23rd, 2021 05:00
yes, actually I meant that, but I'm not sure why you can still access it from the other IP. It seems like we're missing something, but what?
Just an idea using deny (for Extended IP ACLs) can be tried but I couldn't find it for OS10. Like for OS9 https://dell.to/3FoC7uB
zhukk
1 Rookie
•
21 Posts
0
December 23rd, 2021 07:00
if change access list and add deny :
it close telnet from other ip but not ssh. Why?
zhukk
1 Rookie
•
21 Posts
0
December 30th, 2021 04:00
can someone's help me?
Dell-DylanJ
4 Operator
•
2.9K Posts
0
December 30th, 2021 12:00
Heya Zhukk,
I obviously misunderstood you at the beginning of the thread. With the additional information, it does look to me like you're doing things correctly. I did notice that you're firmware is behind, though. Would it be possible for you to try updating it to see if the behavior remains?
The reason that I ask is that because it does appear to be set up correctly, it would open up the possibility that the switch isn't working properly, but for me to send that through the proper channels, it would need to be either up to date, or I would need to find someone to validate the behavior.
zhukk
1 Rookie
•
21 Posts
0
December 30th, 2021 13:00
unfortunately it's latest firmware for this switch.
https://www.dell.com/support/kbdoc/ru-ua/000192674/smartfabric-os10-hardware-compatibility-list
Dell-DylanJ
4 Operator
•
2.9K Posts
0
December 30th, 2021 13:00
I'll have to pass this up the chain, then. I'm not confident when or if I'll be able to give you an update afterwards, but at least it'll get looked at. There's no contact channel for techs to follow these sorts of issues or where they're at in being addressed.
zhukk
1 Rookie
•
21 Posts
0
December 30th, 2021 13:00
OK. thanks for trying help.