Похожие чаты

I already know that command to only allow host 192.168.122.107

access my server via ssh. But practically, its not working for me. What did i do wrong in my rules??

21 ответов

7 просмотров

You should relearn networking. If you want to allow only single IP, the subnet is /32. If you put an IP and a subnet of /24 , the whole /24 range of that IP will be allowed

Bruce-Minanga Автор вопроса
Sharuzzaman Ahmat Raslan
You should relearn networking. If you want to allo...

Am just wondering why my ip address always use /24 and not /32

Bruce Minanga
Am just wondering why my ip address always use /24...

Subnet mask tells you what part of IP address is the network and what part is the host address inside this network. Apparently in this case it is used for slightly different (although really the same) purpose: to specify a range of IPs.

Bruce-Minanga Автор вопроса
Bruce Minanga
So if i have static ip i can use /32

Yeah man you can do whatever you wish! You can also assign a reservation in your DHCP server via MAC Address to give that one machine a /32 iirc

Bruce Minanga
So if i have static ip i can use /32

why do you want /32? there's no usable addresses

Martin Rys
wat

there are no usable addresses on a /32 space

Kiyo 💜
if you only want a single ip, it's a /30

I get what you mean but /32 is right in this example

Bruce-Minanga Автор вопроса
Kiyo 💜
why do you want /32? there's no usable addresses

Its because i never new i would one day need to use /32 which i just used today

Bruce-Minanga Автор вопроса
Bruce-Minanga Автор вопроса
Kiyo 💜
why do you want /32? there's no usable addresses

There are others also like /8 and /16 which i dont know whether i will need them any soon

Bruce-Minanga Автор вопроса
Kiyo 💜
what?

Yes. Those netmask lol.

Bruce-Minanga Автор вопроса
Bruce Minanga
What is this

If you use 192.168.122.107/24 , you actually allow any IP from 192.168.122.1 until 192.168.122.254 to access your server

Похожие вопросы

Обсуждают сегодня

а через ESC-код ?
Alexey Kulakov
29
30500 за редактор? )
Владимир
47
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
15
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
any reference of this implementation?
BitBuddha
29
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
&"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64\dumpbin.exe" /EXPORTS C:\Users\Yeet\Tauon\vcpkg\installed\x64-window...
Martin Rys
6
Карта сайта