🌉 bridged from @Matty_r@programming.dev by Tidepool
Matty_r
@matty-r.programming.dev.ap.tdpl.io
- CBH
URHome Connect - Web + Command-line tool that allows you to easily manage requests to access your Homelab services
Hi all, I've started working on URHome Connect (UHC) which allows you to set up a 'client' website that your users visit in order to request access to your homelab. You run the 'admin' mode on your LAN which modifies the Opnsense alias that you've used to allow access for your users. Attached image contains the concept of operations, as somewhat of a design. It's in very early stages so calling it v0.3.1 in the releases tab might even be generous. It's functional, either installation through the binary or through docker, currently only have support for Opnsense and Pushover - if this gets a bit of interest then i'll work on expanding notification support. You'll find some more info on the Codeberg link, but some goals of this project: • Simple setup and use • No Javascript (HTML + CSS Only) • Mobile / Desktop compatibility I've not used AI to write anything used in the project, but have read some AI summaries while researching some topics i'm not fully across like CSS which has come a long way since i've touched it. Really need the community input to drive the direction of UHC. The way I see it now is it serves my purposes just fine and happy for it to grow slowly and organically as needs emerge. There are still things I need to finish but figured i'd get it out there as soon as possible to hear what you all think. Edit: add link to Codeberg Codeberg Link - URHome Connect
urChat v0.6.0 release - mostly backend stuff
cross-posted from: https://programming.dev/post/9458575
Hey all, Another update/release of urChat (Java IRC Client). This release had a lot of focus on general usability and backend cleaning up. Performance for updating the styles has been improved and i've also moved some of the major panels into their own classes to make it easier to add more options/panels at a future date. In doing this, there is less effort needed when adding more options as the this is all handled when using addToPanel() method: For Instance, i've added an option to toggle the tab icons, after creating the new
JCheckBox showTabIcons, all that's needed to have it save to the preferences correctly is:java
URPanels.addToPanel(this, showTabIcons, null, Placement.DEFAULT, null, Constants.KEY_SHOW_TAB_ICON);
This adds it to the current JPanel (In this case the InterfacePanel), places it after the previous Component and then associates that with the
KEY_SHOW_TAB_ICONPreference key. Much easier than before. Support for HTTP proxies has also been added, so we've now got both SOCKS and HTTP proxies as an option. There is now better disconnection handling, it will automatically reconnect if it disconnects unexpectedly (after some time), and it will also rejoin all of the previously connected channels. I've also added in LOG4J2 for logging. At the moment there is a log4j2.xml config file included in the release JAR, but eventually i'll allow custom config files. I'm not 100% sure how I feel about it yet as it increased my release JAR file size from 247 KB to 2.47 MB which is quite a significant jump. Anyway, thanks everybody for your support and interest. Feel free to join the #urchat channel at irc.libera.chat to discuss improvements etc. :) Onwards and upwards to version 0.7.0! GitHub Linkgithub.com
(Solved) IPS (Suricata) kills network
Hey all, I've been trying to figure out why enabling IPS kills my network. I have some services I host and would like to get some sort of IPS running. I used to have Snort running through pfSense and didn't experience issues like this.
Edit: as an update to this, I resolved it by installing the realtek plugin.
Ensure only defined DNS servers are used?
Hey all, recent convert from pfSense. I'm trying to make sure only the DNS servers I've defined are being used for lookups? I'm using Unbound and noticing a lot of traffic on port 53 to destinations other than the ones I've put in.
urChat v0.5.1 release - Bug fixes, managing profiles, and custom nick formatting
cross-posted from: https://programming.dev/post/8178703
Version 0.5.1 of my IRC Client has been released. This time around it was mostly focussed around bug fixes largely to do with updating the styles. But I also added a couple of features. This was a shorter release from 0.4.0 as the changes weren't as significant.
Profile Handling
I wanted a way to easily manage profiles, especially during development. With this release i've added a Profiles page, which allows you to Create new profiles, clone an existing profile, rename, and delete profiles. You can also set a profile as the default to be used when loading the app. A majority of the effort went into keeping the Profile Picker (the combobox that changes the active profile) and the profiles page in sync which was done using listeners. New listeners were created for DELETE,CREATE, and CHANGE events as other components needed to add their own listeners to the queue to make sure they were also kept in sync, but also to update styles etc when the profile changes.
java
public static void fireListeners (EventType eventType) { if(!listenerLists.containsKey(eventType)) listenerLists.put(eventType, new EventListenerList()); Object[] listeners = listenerLists.get(eventType).getListenerList(); // Reverse order for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ActionListener.class) { if (actionEvent == null) { actionEvent = new ActionEvent(listeners, i, null); } ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent); } } }All of this profile work was also used to centralise the loading and saving of profile information through the URProfileUtil helper class. This should hopefully help down the track. Profiles Page
Custom Nick Format
This was similarly difficult to when I implemented the custom Date formatting. At least this time around I had an idea of how it might be implemented. However the difference was that I couldn't treat the resultant String as a whole, for example setting the Date format to [HHmm] i'd just return [0652] then insert that into the document, I had to contend with nick styles as well. In the end I settled with splitting whatever was placed into the Nick format field into three parts (Prefix, nick, Suffix). If you want something just on the right side of the nick, you put nick in the Nick format field, then whatever you want next to that. When placing the nick in the document, I set the attributes according to which part and then use this when updating the styles etc. Custom Nick format
github.com