Giter Club home page Giter Club logo

Comments (6)

NL-TCH avatar NL-TCH commented on June 11, 2024 1

fixed by using "sudo"

from raspap-webgui.

NL-TCH avatar NL-TCH commented on June 11, 2024

same for ddnsclient config:

tch@raspberrypi:/etc $ ls -al |grep ddclient.conf 
-rw-------   1 root     root       199 Jan 27 17:19 ddclient.conf

from raspap-webgui.

NL-TCH avatar NL-TCH commented on June 11, 2024

Thanks for providing insider access btw!

just a question not related to this issue: how do i list the connected clients in bash? i can list DHCP leases, but i have tried anything in the php files without any luck.

the only method i can come up with is:

flowchart TD
    A["cat /var/log/dnsmasq.log | grep DHCPACK"] -->|"where time is less then leasetime"| B(Active clients)

but this is not a list of active clients, but a list of active leases...

from raspap-webgui.

billz avatar billz commented on June 11, 2024

Thanks for providing insider access btw!

@NL-TCH you betcha :)

Good question re: active leases. Check out the related discussions in #538 and #302

Instead of using dnsmasq leases, I'm leaning towards using iw station dump to collect MAC addresses, then cross referencing them with wlan0's arp table. Then some more awk/sed/grep magic to get the relevant data.

from raspap-webgui.

NL-TCH avatar NL-TCH commented on June 11, 2024

/tmp/hostapd.log cannot be accessed by a normal user (and API) as well

from raspap-webgui.

billz avatar billz commented on June 11, 2024

/etc/wireguard is privileged, so the API cannot read the configs without privilege (which is not ideal).

I might be wrong, but modifying wg permissions likely opens some big security holes. Defaults are:

700 for the /etc/wireguard directory
600 for the contents of /etc/wireguard

$ ls -ld /etc/wireguard
drwx------ 2 root root 4096 Sep 19  2022 /etc/wireguard

/etc/ddclient.conf also contains passwords.

Exposing these to an API is an open invitation to 'security researchers' looking for their first CVE.

from raspap-webgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.