Package update

Hi,

I windered if it is possible to update a package only without using git pull ..... make -j etc
like here for banip

4 hours ago 	Dirk Brenken	banip: release 0.8.1-1 master 	commit | commitdiff | tree | snapshot

https://git.openwrt.org/?p=feed/packages.git;a=commit;h=02c2587f9d448fc05994ddb3825ba94a1a83f90a

Would the compiled package eventually get added in the snapshot/packages directory? Sorry if this isn't what you were after.

https://downloads.openwrt.org/snapshots/packages/mipsel_mips32/packages/

Would be different depending on your architecture

yes I know the packages will be add by the buildbot later, but I just want to update the package before...

1 Like

Meanwhile the first buildbots are providing the update, take the package from here: https://downloads.openwrt.org/snapshots/packages/powerpc_8548/packages/banip_0.8.1-1_all.ipk (it's a script, therefore the architecture is not relevant).

2 Likes

weird, no banip after install

root@OpenWrt:/tmp# opkg install banip_0.8.1-1_all.ipk
Package banip (0.8.1-1) installed in root is up to date.
root@OpenWrt:/tmp# cd /etc/config
root@OpenWrt:/etc/config# ls
adblock             etherwake           network             rpcd                udpspeeder
attendedsysupgrade  firewall            nlbwmon             rtty                uhttpd
bcp38               fstab               nss                 samba4              upnpd
collectd            https-dns-proxy     ntpclient           sqm                 watchcat
ddns                irqbalance          openssl             system              wgclient
dhcp                luci                openvpn             ttyd                wireless
dropbear            luci_statistics     openvpn_recipes     ubootenv
ecm                 minidlna            pbr                 ucitrack
root@OpenWrt:/etc/config# 

also

root@OpenWrt:/etc/config# cd /etc/init.d
root@OpenWrt:/etc/init.d# ls
adblock          dbus             gpio_switch      ntpdate          sqm              urandom_seed
avahi-daemon     ddns             irqbalance       odhcpd           sysctl           urngd
banip            dnscrypt-proxy   led              openssl          sysfixtime       watchcat
boot             dnsmasq          log              openvpn          sysntpd          wpad
bootcount        done             luci_statistics  packet_steering  system           wsdd2
collectd         dropbear         minidlna         pbr              ucitrack
cpufreq          firewall         network          rpcd             uhttpd
cron             fstab            nlbwmon          samba4           umount
root@OpenWrt:/etc/init.d# /etc/init.d banip status
-ash: /etc/init.d: Permission denied

looks odd, try an opkg reinstall with the parameters "--force-maintainer --force-reinstall"

1 Like

........?? Dont understand

root@OpenWrt:/tmp# opkg install banip_0.8.1-1_all.ipk --force-maintainer --force-reinstall
Removing package banip from root...
Not deleting modified conffile /etc/config/banip.
Not deleting modified conffile /etc/banip/banip.allowlist.
Installing banip (0.8.1-1) to root...
Conffile /etc/banip/banip.allowlist-opkg.backup using maintainer's setting.
Configuring banip.
Collected errors:
 * file_sha256sum_alloc: Failed to open file /etc/config/banip: No such file or directory.
root@OpenWrt:/tmp# 

ok banip is there now in config, but it seems pretty short?

root@OpenWrt:/etc/config# cat banip
config banip 'global'
        option ban_enabled '0'
        option ban_debug '0'
        option ban_autodetect '1'
        list ban_logterm 'Exit before auth from'
        list ban_logterm 'luci: failed login'
        list ban_logterm 'error: maximum authentication attempts exceeded'
        list ban_logterm 'sshd.*Connection closed by.*\[preauth\]'
        list ban_logterm 'SecurityEvent=\"ChallengeResponseFailed\".*RemoteAddress='

 * file_sha256sum_alloc: Failed to open file /etc/config/banip: No such file or directory.

weird to read that cause banip is in etc/config now

I think this is normal (just a rough guess) cause you've tried a reinstall without an existing package config in "/etc/config". Now follow the online readme to get banIP up & running. The LuCI frontend is still WIP and not available yet ...

1 Like

I know the commands, not a problem.
I enabled it but from

etc/init.d/banip status ;

root@OpenWrt:/etc/config# /etc/init.d/banip status
::: banIP runtime information
  + status            : error
  + version           : -
  + element_count     : 0
  + active_feeds      : -
  + active_devices    : -
  + active_interfaces : -
  + active_subnets    : -
  + run_info          : base_dir: /tmp, backup_dir: /tmp/banIP-backup, report_dir: /tmp/banIP-report, feed_archive: /etc/banip/banip.feeds.gz
  + run_flags         : protocol (4/6): ✘/✘, log (wan-inp/wan-fwd/lan-fwd): ✔/✔/✘, deduplicate: ✔, split: ✘, allowed only: ✘
  + last_run          : -

Ive uninstalled everything and start again from scratch, it s working , thanks

1 Like

only thing How to configure as I want if the config file is only that ;

config banip 'global'
        option ban_enabled '1'
        option ban_debug '0'
        option ban_autodetect '1'
        list ban_logterm 'Exit before auth from'
        list ban_logterm 'luci: failed login'
        list ban_logterm 'error: maximum authentication attempts exceeded'
        list ban_logterm 'sshd.*Connection closed by.*\[preauth\]'
        list ban_logterm 'SecurityEvent=\"ChallengeResponseFailed\".*RemoteAddress='
        option ban_fetchcmd 'curl'
        option ban_protov4 '1'
        list ban_ifv4 'wan'
        list ban_dev 'eth0.2'

from scratch I should have all the option, not?

No that's not sufficient. Again, please consult the readme ... https://github.com/openwrt/packages/blob/master/net/banip/files/README.md#installation--usage and check the documented options ...

And please close this thread here, quite off topic. Thanks!

1 Like

this is missing a '/', correct syntax is /etc/init.d/banip status or service banip <param>

Look well.
In ssh session, it is correct

you wrote this. it is definitely proving it is wrong. there is a missing '/' for sure.

1 Like