Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DHCPC home-made

Dear Astaro people,

first let me say that i think astaro will become a great product.
One important feature that i miss is - yes its mentioned anyway before in this bulletin - dhcpc.

I really need it for my private cablemodem network but i want to use astaro because of
its simplicity and integration level.

So, i decided to add dhcpc by my own. What i did:
- cp dhcpcd and stuff to the fw. (dhcp client daemon)
- configuring dhcpcd.

Seems to work DHCP broadcasts are sent. (eth1, external)

What i want to do.
1. Use the lease file for updating the network interface property.
2. Re-run the firewall rule set if necessary.

Where's my problem?
I can't find where to change the ethernet (eth1) information.
I found /etc/hosts has an entry but its obviously not the only one, because the webadmin gui always shows the old number.

Conclusion:
Please, where do i find all the right information? 
Which file(s) do i have to feed with the lease-ip number?

At least: Is this ok or do i any license-violation with this?

Thanks for a sugestion.




This thread was automatically locked due to age.
  • hi rgu,

    thanks for your work on dhcp. you do not any license-violation while you use it for your own private and not for commercial use.

    if you get the ip from your cable modem dhcp server you need only the following:

    put the ip and netmask in /etc/wfe/conf/netzkartendata - there are also all other nic's. 

    i think you have also to change the Gateway:.

    all other stuff like ip-filtering, routing, nat, masq... will be done from the MiddleWare, which automatically detects  changes in /etc/wfe/conf/netzkartendata (you can watch this in /var/log/mdwlog).

    if any question open: ask here!

    please send us a email with the .tar, if your "hand-made-dhcp" works and we will integrated it in WebAdmin and release it with the next Up2Date.
  • YES!!!

    After you get it to work, would you please post methodology so that all of us can use it also?

    Thank you in advance.
  • Thats good to hear... We were waiting for that.
    Is it (or will it be) possible to generate an e-mail whenever there is a change in IP adres? Always nice to know if it's changed...
  • good idea!
    we will add a checkbox for select email-notification

  • Well, i have some problem using dhclient on the astaro system.

    When i compile a new dhclient on my (updated) rh70 system, then run on astaro i get:
    "/lib/libc.so.6: version `GLIBC_2.1.3' not found (required by ./dhclient)"

    When i use a precomp. binary from another system i get:
    "socket: Protocol not available - make sure CONFIG_PACKET and CONFIG_FILTER are defined in your kernel configuration!"

    Astaro /etc/version is:
    Linux version 2.4.0-astaro-security-linux (root@hal) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #4 Don Sep 28 13:13:06 CEST 2000

    Any idea what to do?

    (used client: dhcp-2.0pl5 from isc.org)

    so long
  • thx for the infos, 
    tomorrow i will try it for myself - what commandline options i have to use for start dhcp-2.0pl5?

  • Hi,

    dhcp-2.0pl5 is a whole dhcp package. Usually we compile it all, but we only need the files from the ./client directory.
    the directory ./client/scripts contains some configuration templates.

    cp the ./scripts/linux to /etc/dhclient-script or create at least an empty file with this name and make it +x . dhclient will look for it, (if the binary works, else it complains about glibc).

    To test the binary dhclient just type: dhclient eth? (0,1)
    But be careful you might be disconnected if no dhcp server is available at the selected interface! (Of course, only when it works.)

    Download here: ftp://ftp.isc.org/isc/dhcp/dhcp-2.0pl5.tar.gz
    You should also read this: http://www.isc.org/products/DHCP/v2-readme.html 
    (Section: Firewall rules).

    Merry XMas
  • hi rgu,

    i downloaded the dchp-package and compiled it for myself:

    ...sorry, but our kernel lacks Socket Filtering - we doesnt need it anytime before...

    please wait for the next kernel (next Up2Date) - this kernel will support Socket Filtering - and i test the dhclient before we announce the new version.

    you will read about it ;-), thx for the help until this point!


  • Hi Markus,

    ok, i'm waiting for the train to come.

    Thanks for quick response.

    rgu


  • Great!

    I can't emphasize how important this feature is to me and the widespread acceptance of this product. Keep the good work and thanks in advance.