Похожие чаты

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 ответов

9 просмотров

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта