on the 'send public key' idea:

> The UDP packet is limited to 576 bytes, unless the client indicates that it
> can accept larger. 312 bytes are allowed for the variable option part - but
> don't forget that each option value is preceded by a byte for option code and
> a byte for option length - eg a 4 byte option would take 6 bytes the packet.
> 
> There is also a facility to redefine the server and file fields as option
> space, this gives an extra 192 bytes for options.

That is getting tight, so I would hold off till someone really wants it.


Steven Shiau wrote:
> Carl, Thanks for sharing this info with us. I suggest that you can put
> another service in /etc/ocs/ocs-live.d e.g. 
> /etc/ocs/ocs-live.d/S07pre-run-dhcp
> 
> You can refer to the existing /etc/ocs/ocs-live.d/S06pre-run to write that.

Thanks

> 
> If you make it, please share that with everything again. Thanks.

Of course :)

Carl K

> 
> Steven.
> 
> Carl Karsten wrote:
>>> would it be possible to set ocs_daemonon="ssh" and usercrypted via dhcp
>>> parameters?
>>> 
>>> 
>> 
>> Here is how to get the parameters from the server to the client.  All that
>> remains is for the code that currently for boot parameters to look here
>> too.  If you will direct me to that code, I will propose something.
>> 
>> btw - my personal goal is to be able to use this to fix a hijacked box.
>> But it will fit in nicely with Clonezilla: put unmodified Clonezilla CD in
>> box, boot, ssh in from 2nd box, run clonezilla. Which I currently can do
>> with PXE, but it would be nice for those that do not have that setup and
>> just want to boot/run from a physical CD.
>> 
>> ######################################### # /etc/dhcp3/dhcpd.conf option
>> cz_ocs_daemonon code 224 = string; option cz_usercrypted code 225 = string;
>> 
>> 
>> subnet 192.168.1.0  netmask 255.255.255.0 { range 192.168.1.10
>> 192.168.1.254 ; option cz_ocs_daemonon "ssh"; option cz_usercrypted
>> "iTBGwkbHzKDfk"; } ######################################### #
>> /etc/dhcp3/dhclient.conf # Configuration file for /sbin/dhclient, which is
>> included in Debian's #       dhcp3-client package.
>> 
>> option cz_ocs_daemonon code 224 = string; option cz_usercrypted code 225 =
>> string;
>> 
>> request cz_ocs_daemonon, cz_usercrypted, subnet-mask, ... ;
>> 
>> ######################################### After a dhclient gets an IP...
>> 
>> ju...@dell30:~$ grep cz /var/lib/dhcp3/dhclient.leases option
>> cz_ocs_daemonon "ssh"; option cz_usercrypted "iTBGwkbHzKDfk";
>> 
>> ######################################### #
>> /etc/dhcp3/dhclient-exit-hooks.d/debug # writes out parameters to temp file
>>  for i in ....new_cz_ocs_daemonon new_cz_usercrypted echo $i=\'${!i}\' >>
>> /tmp/dhclient-script.debug ############# ju...@dell30:~$ grep cz
>> /tmp/dhclient-script.debug new_cz_ocs_daemonon='ssh' 
>> new_cz_usercrypted='iTBGwkbHzKDfk' 
>> #########################################
>> 
>> Carl K
>> 
>> ------------------------------------------------------------------------------
>> 
>> 
>> Check out the new SourceForge.net Marketplace. It is the best place to buy
>> or sell services for just about anything Open Source. 
>> http://p.sf.net/sfu/Xq1LFB _______________________________________________ 
>> Clonezilla-live mailing list [email protected] 
>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live
>> 
> 
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to