WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Missing packages: iptables, dnsmasq, mosquitto  (Read 373 times)

Offline rakin

  • Newbie
  • *
  • Posts: 3
Missing packages: iptables, dnsmasq, mosquitto
« on: July 12, 2020, 09:35:19 AM »
Hi there,
Any chances for packages from subject in 11.x?
Or maybe some good tutorial how to build them on x86_64 (I mean  about the cross compilation)?

Best,
R

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12235
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #1 on: July 12, 2020, 10:21:55 AM »
It's probably easier to compile them natively on an RPi3 or RPi4.

See, for example http://tinycorelinux.net/8.x/armv7/tcz/src/dnsmasq/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7927
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #2 on: July 12, 2020, 10:34:12 AM »
Hi rakin
Welcome to the forum. If you wish to try compiling natively on Pi, there are build scripts in the  iptables  and  dnsmasq  directories
found here:
http://tinycorelinux.net/8.x/armv6/tcz/src/
The scripts also handle packaging the programs into  .tcz  files.

I'm not aware of any cross compilation tools.

You could also try copying them over from the TC9 repository.

The dependency file for  dnsmasq.tcz  shows:
Code: [Select]
ipv6-KERNEL.tcz
which is listed in the TC11 repository:
http://tinycorelinux.net/11.x/armv6/tcz/

The  iptables.tcz  is not as simple. The dependency tree looks like this:
Code: [Select]
iptables.tcz
   libnftnl.tcz
      jansson.tcz
      libmnl.tcz
         netfilter-4.9.10-piCore.tcz
         ipv6-4.9.10-piCore.tcz
While you might be able to copy over  libnftnl.tcz  and  libmnl.tcz , netfilter-4.9.10-piCore.tcz  is kernel version specific and can not
be copied over.

It needs to be packaged from  modules.tar.gz  found here:
http://tinycorelinux.net/11.x/armv6/releases/RPi/src/kernel/
In x86 that's handled by the  sorter.sh  script found here:
https://github.com/tinycorelinux/sorter/archive/master.zip
I don't know why ARM doesn't also use that script.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 581
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #3 on: July 12, 2020, 07:13:42 PM »
It should copy pretty easily, I can update the packages sometime this week if needed.

Offline rakin

  • Newbie
  • *
  • Posts: 3
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #4 on: July 13, 2020, 05:00:10 AM »
Hi,

It seems that building these packages requires some non-trivial work, which I would rather not dive in. At least not now (I do not even have RPI3/4 at hand; RPI-Zero-W is my target). Maybe I will get back to piCore and try to build missing packages, but for now I'm gonna look for a ready to use solution. Alpine is my next choice after Rasbian (which has its own problems) and piCore.
 
Thanks for the input and links. I will keep them in case I can not find out something that can be used out of the box. Paul, if you can help with any of these packages I would appreciate.

BTW, I really like the idea behind Tiny Core. It looks really solid. It took me (a total newbie) under two hours to set up my Raspberry Pi Zero W to work simultaneously in station and AP modes. Unfortunately, without iptables I can not test, if it can reliably work as a WiFi extender. And without dnsmasq (or other dhcp server) and some MQTT broker I can not easily set it up as an IOT hub.

Anyway, thank you for all your hard work.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 581
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #5 on: July 19, 2020, 04:58:25 AM »
Iptables and dnsmasq have been updated and posted.  I did not have a chance to test them much.  Mosquitto is a bit to special case, and I have no idea what options you need.....but it builds easily.


Offline rakin

  • Newbie
  • *
  • Posts: 3
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #6 on: July 27, 2020, 12:05:58 AM »
Thanks Paul

I'll have some time next week to test that packages. Also I already have RPi 3, so I will try to build mosquito package and maybe even contribute it to the community.

R.

Offline wesley1

  • Newbie
  • *
  • Posts: 4
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #7 on: July 27, 2020, 11:51:28 AM »
Can bridge-utils be made available too?

Only see an old one
newbielink:http://tinycorelinux.net/3.x/tcz/src/bridge-utils/ [nonactive]

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12235
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #8 on: July 27, 2020, 11:47:30 PM »
bridge-utils posted (not tested)

Offline wesley1

  • Newbie
  • *
  • Posts: 4
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #9 on: July 28, 2020, 09:57:59 PM »
works well, can libpcap be added too? thank you.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12235
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #10 on: July 28, 2020, 11:23:40 PM »
libpcap posted
« Last Edit: July 29, 2020, 12:33:31 AM by Juanito »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12235
Re: Missing packages: iptables, dnsmasq, mosquitto
« Reply #11 on: July 28, 2020, 11:54:56 PM »
mosquitto posted (not tested)