<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
The best way to manage this is on the DHCP server.<br>
What you want is a called a reservation and it binds<br>
a MAC address to an IP address.<br>
<br>
The details depend on what provides the service.<br>
Typically it will be on a webpage or a configuration<br>
file. <br>
<br>
What are you using to provide DHCP?<br>
<br>
c<br>
<br>
<br>
<div class="moz-cite-prefix">On 1/25/23 04:52 PM, Mark Moellering
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAA0uU3WSuPWYy2SPvOhbY7pubviHLDekGSOHJOcOq5n5=mEFoA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Question. I am configuring a server , the ip address comes
from DHCP but I want to run jails, which means restricting the
IP Addresses sshd listens on.</div>
<div><br>
</div>
<div>Normally, this is done by IP but I don't know how to do it
for DHCP. Will using the hostname work. for example</div>
<div>ListenAddress <a href="http://hostname.mydomain.com"
moz-do-not-send="true">hostname.mydomain.com</a> <br>
</div>
<div><br>
</div>
<div>Or will that not work?</div>
<div><br>
</div>
<div>I have seen online that some people have cron scripts that
look for a change of DHCP IP and then update the sshd_config
file and restart sshd but I am hoping to avoid that...</div>
<div>Of course, I can use a non-standard port but not sure I
want that either<br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Mark</div>
<div>P.S. Michael Lucas appears to not have addressed this in
his book about Jails ;-)<br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Semibug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Semibug@lists.nycbug.org">Semibug@lists.nycbug.org</a>
<a class="moz-txt-link-freetext" href="https://lists.nycbug.org:8443/mailman/listinfo/semibug">https://lists.nycbug.org:8443/mailman/listinfo/semibug</a>
</pre>
</blockquote>
<br>
</body>
</html>