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.
Parents
  • 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


Reply Children
  • 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.
  • Hi there,

    Can't wait to have dhcp to work for my lab for me as well.  I am trying to have it to work though on my side.  One question, since the Linux version is a hardered one, it misses a couple of utility, like ftp client, kernel doesn't support fat.  The point is that I am trying to put some files onto the Astaro machine and work it from there.  Can't have the fd0 to mount.  I've formatted a floppy onto another RedHat machine with : 
    mkfs -t ext2 -c /dev/fd0H1440 and copied the dhcp....gz onto it, when I try to mount it onto the Astaro, here's the error I get when I run mount -t ext2 /dev/fd0 /mnt
    mount: /dev/fd0 has wrong major or minor number.

    My machine is a Asus PIII 550, 2 pci nic 82557, 128 ram, 10 gb.  Astaro version is the latest, 1.737

    Thanks in advance and keep the good work,

    Benoit Danserau
  • Copy files to astaro ? Well - thats easy.
    Use scp (secure copy)

    something like:
    scp myfile loginuser@astaro.domain.dom:/home/login

    If you choose to make folders under ../login don't forget it to chown to the loginuser.

    I hope the next Up2Date has a modified kernel which support the things we need for dhcpc.

    Have a good time.
  • Copy files to astaro with scp (secure copy)
    This is part of the openssh package.

    Exmpl.
    scp myfile loginuser@astaro.domain.dom:/home/login

    If you decide to make subfolder under ../login don't forget to chown it to the loginuser.

    Have a good time
  • hi bdaansereau,

    did you find a dhcp client without Socket Filtering-usage?

    if not - please wait for astaro security linux 1.790. with this version it should be very simple to use dhcp...

    ------------------

    Markus Hennig
    Astaro Product Development
  • Hi, I also managed to get dhcp working on astaro.
    I just scp'd dhcpcd from my RH box,
    added a initscript to /etc/rc.d,
    created /etc/dhcpc
    and a script called /etc/dhcpc/dhcpcd-eth0.exe in which I configure /etc/wfe/conf/netzkartendata for
    the dynamic IP ( on eth0 ) and one static IP
    ( eth1 ), hostname and aswell it sends an email to me whenever the IP changed.
    Works Perfect !!
  • Yes, you're right!
    I tried (again) with RH7, cd1, dhcpcd-1.3.18pl8-6.i386.rpm.

    Now it works. Great!

  • I've performed the update yesterday to version 1.740 and I thought I would have see an option in the web admin to set the interface through dhcp !  How do I do it for now ?

    Thanks in advance,

    Benoit Dansereau
  • no - it would be to nice to be true  [:)]on 1.740...

    and i afraid also not in 1.790

    ------------------

    Markus Hennig
    Astaro Product Development
  • Hiya,

    So when are we gonna expect a release of Astaro with dhcp? I know you probably all have alot on, but it seems like this is a pretty important feature, and if all these people have managed to do it successfully then it can't be too demanding...no disrespect meant to those who have managed it.

    I know your still in development and I've only been playing with your product for a coupla days....it's impressive but a requirement for me is that it has dhcp support.

    Thanks chaps...keep up the good work!

    Rob.