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

Cross Compiler for Sophos UTM 9.2?

Hi Folks,

is there any cross compilation enviroment for sophos UTM? I'm running the 64bit kernel 3.8.13.15-110.g4be5643-smp64 and it seems that this is running OpenSuse Enterprise Server.
But e.g. libc is that old "libc-2.11.3.so" i cannot find a distro that old

Input appreciated!


This thread was automatically locked due to age.
  • Hi,  statically compiled binaries are your best bet. 

    What are you trying to compile? 

    Barry
  • One thing to also keep in mind is that Enterprise Distro's often maintain the same library or kernel version across the life of a specific release but backport the fixes from newer versions into their own. That means the old version may not be so old after all.

    Can't speak for Suse as I don't use them but RedHat does this a lot with their software in the name of compatibility.
  • SOPHOS UTM v8 until v9.200 is built on SUSE SLES11, currently SP3. Not sure if that helps really much, because we patch and update as necessary and that involves library updates as well.
  • Background:
    My goal was to run a webserver chrooted on the sophos. Why? I'm Monitoring the used bandwith in my docsis network area/segment (Kabel Deutschland ISP in Germany) - the last half of the year 2013 my area was overloaded and to proof this i started the Monitoring (got monthly cash back..)

    So rrdtools are integrated in Sophos UTM (for graphical view). The Drivers for DVB C stick meassuring broadcasted traffic are also running fine (all in userspace)
    ! But I Need some sort of Webserver (chrooted) like Apache or LighttpD to serve this graphs.

    I've installed OpenSuse distro on a VM and copied all binaries and needed libraries from this machine. First Apache2 - but httpd daemon would not come up (could not generate randomized number)
    Lighttpd is now running successfully chrooted with different libc Version [[[:)]]]

    but Perl/*.cgi files are not Rendering (Child died with Message 6).

    So i think the best way is to copy the binaries and libraries and run them chrooted right? Compiling might be more efficiant once there is a development enviroment but tricky to achieve


    Here you can see e.g. a Webpage for generating graphs (cgi based)


    sidenote: Really cool Feature is the reverse Proxy alias Web Application Protection [[[:)]]] 
    Guys. Sophos UTM is sooo many Features out of the box i always searched for.

    Integrating "virtual webservers" would be a cool Feature thou. Apache2 is running the WebAdmin right? So virtual webservers on the sophos would be a nice deal due my Sophos is a 24/7 device [[[:)]]]
  • I've got a similar issue. I'm trying to get lcdproc to run with the lis driver. I statically compiled it on an ubuntu box, copied it over with the ftdi shared lib, and got it to somewhat run, but LCDd seg faults when it tries to load the lis driver.

    One thing I've noticed is that despite me running the 64bit version of astaro, the programs apparently need to be 32bit. I don't really care though, as long as it works.

    I'm going to try to set up a OpenSuse 11 VM and work from that. But, I'm running out of ideas, and I'm not that hopeful that will work. Is there are development environment for astaro that is available, I've seen some mention of that, but can't find it anywhere.
  • DarkKnight93, please consider that UTM is a *security* product, not an all-in-one device suitable for every purpose. Why not setup an internal webserver on another device and use the reverse proxy to make it accessible from the outside?

    There are some guys in this forum who achieve similar things using ESXi and install whatever they need on that one physical machine (UTM, Webserver etc.). There is no problem with that approach.
  • Segault always sounds like missing library or wrong architecture. use i686 for 64bit installs.

    any success in copying from OpenSuse Client?
  • No. Well mostly no. I got it past the segfault (the static compile was causing it), but then it couldn't load the lcd driver properly. I pretty much gave up. I tried a bunch of stuff, including extracting some RPMs for OpenSuse that had the proper binaries, but I still couldn't get it to work.
  • you can try following: (as i used it for lighttpd to run)

    create a chroot enviroment by copying all neccessary files e.g. also like libc.so to Folder /home/login/chroot
    This tutorial might be helpful:
    CHROOT Tutorial

    If anyone is intrested in how to run lighttpd webserver on sophos utm i'll post a tutorial
  • It would be educational to see a tutorial on how it can be done.

    However, I do agree with trollvottel that UTM is a security product that is best left intact.