Commit Graph

131 Commits

Author SHA1 Message Date
Mark e6b4207097 qmicli: use bash 2022-03-02 19:13:20 +00:00
Mark 51478545eb qmicli: add wants & restart timeout 2022-03-02 19:03:49 +00:00
Mark d04365a296 SIMCOM 7600G notes 2022-03-02 18:17:09 +00:00
Mark 62928f0283 QMI mode for simcom devices is buggy!
* update qmi service, -p must be used
* add usb0 network & a warning about qmi
2022-02-28 01:01:23 +00:00
Mark 38d11dba27 qmicli: add a ping watchdog script as the main process so that the network can be auto-restarted if it goes down 2022-02-22 16:01:58 +00:00
Mark 22dbd510b9 a long list of changes
* dnsmasq: log dhcp requests to syslog & increase release time
* lan http proxy: don't use conditions
* qmicli: rename qmicli-wwan to qmicli@ and make use of specifiers
* firewall notes: add port 8080 for lan proxy
2022-02-21 20:31:47 +00:00
Mark 49d343d049 add new proxy service using socat
update ufw notes
2022-02-18 21:36:28 +00:00
Mark f8151ccaa8 oopsie 2022-02-17 10:35:58 +00:00
Mark 34abe433e8 caddyfile: local_certs 2022-02-17 10:01:48 +00:00
Mark d914ca08d9 caddyfile: use another port for hosted checking 2022-02-17 09:15:03 +00:00
Mark 370ad3f4e1 fix silly mistake 2022-02-17 09:08:45 +00:00
Mark 34c1c3f72d more read-me files; tweaks to php & caddy configs 2022-02-15 12:34:36 +00:00
Mark fb52be20d1 use www-data 2022-02-14 23:50:47 +00:00
Mark 0ec77aa8e1 add nicer access logging to include more info
- with help from https://drupal.stackexchange.com/questions/238373/logging-urls-in-the-php-fpm-access-log-possible-clean-url-conflict
2022-02-14 23:14:12 +00:00
Mark 9966fa828d correct another brain-fart 2022-02-14 22:59:05 +00:00
Mark 36036417d2 php readme: update text 2022-02-14 22:57:19 +00:00
Mark ec4b87c391 fix command linebreak 2022-02-14 22:52:07 +00:00
Mark b88e13d5e5 remove older php config and scripts 2022-02-14 22:50:43 +00:00
Mark aab1b253f8 add php readme & move sury.org repo script 2022-02-14 22:49:29 +00:00
Mark c17c4bf47a correct conf path 2022-02-14 17:16:36 +00:00
Mark fced19af86 php-fpm example: correct paths 2022-02-14 17:09:04 +00:00
Mark a32b45bffb caddyfile: hide dot . and backup ~ files; php7.4: add example conf using prefixes 2022-02-14 16:04:46 +00:00
Mark de468be041 moves & renames! 2022-02-14 10:19:43 +00:00
Mark 6142e232a1 quite a few changes in this one
* move and rename helper scripts to config directories
* add readme files
* remove older files
* tweak a few other things too
2022-02-14 09:42:06 +00:00
Mark eafbc0ee2a clean-up (cont): rename note files 2022-02-08 20:03:37 +00:00
Mark 557a573ab8 clean-up: move dnsmasq to etc and add example files, rename other directory to scripts. 2022-02-08 19:44:28 +00:00
Mark 300041bffc drop-in: lan - correct value for masquerade 2022-02-04 16:01:39 +00:00
Mark 1de342fac0 drop-in: dhcp - remove stp (again). 2022-02-04 15:17:54 +00:00
Mark 93173684b6 drop-in: got things in reverse 2022-02-04 15:10:30 +00:00
Mark 89f444602f drop-in: lan - don't use systemd-networkd as dhcp server - debian bullseye's version of systemd does not yet fully support it 2022-02-04 08:37:41 +00:00
Mark 0c9b8aa1ea drop-in: remove stp & comment out dhcpstaticlease (not supported on bullseye) 2022-02-03 17:19:35 +00:00
Mark 6d4d3f3c87 Add placeholders for directories and a simple space removal 2022-02-03 11:26:45 +00:00
Mark 0503697bf4 you've got to simplify man(!), and correctly (I hope) use drop-ins! 2022-02-03 11:12:31 +00:00
Mark 0ee888d2fe path rename and new drop-in!
config files are not drop-ins unless they're in a `.d/` directory
2022-02-03 09:04:02 +00:00
Mark a86691f2ed qmicli drop-in:
* change name to match other systemd files
 * remove proxy argument
 * change service type to simple
 * use wants instead of wantedby
 * add restart on failure
 * tweak auto-connect, remove it as an optional command
2022-02-01 10:25:16 +00:00
Mark f851cd2dd9 notes: correct formatting 2022-01-27 20:16:18 +00:00
Mark 56d0ee6af8 use markdown for notes 2022-01-27 20:14:37 +00:00
Mark bd0bbcb738 new note: use LEDs for network status 2022-01-27 20:10:52 +00:00
Mark 1412469abf new drop-in:
- Add basic eth0 lan without bridge.
2022-01-27 09:39:39 +00:00
Mark 6637de41c7 drop-ins: wpa_supplicant
- make connecting to wpa2/wpa3 mixed mode access points a bit easier!!
2022-01-24 21:05:10 +00:00
Mark 58f0df2ff6 drop-in: qmicli service
- change optional arg to enable auto connection settings
2022-01-21 22:51:42 +00:00
Mark 967fe62009 drop-in (qmicli service)
* Use autoconnect
* Run qmi command before bringing up network, in this case, activate optional software on device
2022-01-07 13:04:42 +00:00
Mark a6bee14f02 Drop-ins:
* update bridges
 * add wlan0 powersave off service
2022-01-06 20:15:13 +00:00
Mark c0ca7782c5 Notes: ufw firewall for routing 2022-01-03 23:10:10 +00:00
Mark cfe69abad0 drop-in, qmicli increase sleep time. 2022-01-03 14:43:42 +00:00
Mark 116cc5f3c4 drop-ins.
* Tweak naming.
 * Add bonding.
2022-01-03 13:51:37 +00:00
Mark 51627bb872 qmicli drop-in. Service type changed to forking. forking hell! 2022-01-01 23:45:53 +00:00
Mark 15fd91078f qmicli drop-in. Add timeout and service type 2022-01-01 23:38:08 +00:00
Mark 601f05cb21 qmicli drop-in. Use --client-no-release-cid 2022-01-01 23:32:33 +00:00
Mark d7ab2d99d8 qmicli drop-in. Use RemainAfterExit. 2022-01-01 23:24:51 +00:00
Mark 4dbcb5cfa7 qmicli drop-in. Add note about empty values! 2022-01-01 23:17:46 +00:00
Mark f936dd5389 qmicli drop-in for wwan0 2022-01-01 23:04:26 +00:00
Mark 2ed72e9c5c disable lldp for wwan0 to prevent increased "fun" 2021-12-31 20:47:39 +00:00
Mark b02e4d40ae add wwan0 drop-in for debian. 2021-12-31 16:00:39 +00:00
Mark 3f3a9de678 Deb drop-ins: add stp to bridge and IP forwarding to wlan 2021-12-30 20:23:35 +00:00
Mark f7ef9261be Debian drop-ins:
* Spacing in files
 * Add bridging
2021-12-30 17:17:52 +00:00
Mark 2dfb566d93 Correct drop-in comments 2021-12-26 11:55:15 +00:00
Mark 17094983f6 update chmod for drop-in 2021-12-26 10:40:25 +00:00
Mark a9ad411d85 Deb 11 drop-ins: Correct eth0, add wlan0 and wpa_supplicant configs 2021-12-26 10:37:03 +00:00
Mark c012d1a56e Deb 11 drop-in: set dns in network files rather than resolve conf and use file numbering 2021-12-25 09:59:46 +00:00
Mark 8c154d655b Alpine: Basic interface
Debian: Systemd drop-ins for resolved & eth0.network
2021-12-24 12:49:48 +00:00
Mark 09bfe596d0 Debian: Caddyfile improvements
* Improved comments & include debug directive (not enabled obviously)
* E-mails for certs aren't required
* Nicer error handling + just output basic error messages
* Use try_files for php-fastcgi directive so we avoid sending not-found PHP files to PHP-FPM - this requires Caddy >= 2.4.6
2021-12-04 08:09:32 +00:00
Mark e4a2180d54 Caddyfile: Rewrite php errors so they get caught by the error handler. 2021-07-22 23:26:57 +01:00
Mark f44455b4b2 remove old prefix! 2021-07-22 21:07:16 +01:00
Mark e7ac051910 add_pool script. 2021-07-22 20:48:28 +01:00
Mark e5e1316f6c Caddyfile: Add a 'nicer' error page.
I forgot most browsers will ignore output unless it's a certain length, sigh, well I suppose we better pad it a bit.
2021-07-16 15:14:24 +01:00
Mark cca9914b31 being too verbose again! 2021-07-16 13:08:43 +01:00
Mark 9ca0a834c5 caddy_link_site.sh: link a domain to a site setup elsewhere.
sudo bash caddy_link_site.sh </path/to/site/dir/containing/htdocs/> <site name without www> <optional public dirname - default htdocs>
2021-07-16 13:02:03 +01:00
Mark 167f2d9788 Create site directories and be less verbose!
setup_site.sh: Easily create site directories, set permissions and allow web-server group read access to just the htdocs. Example use: sudo bash create_site.sh /home/mark/sites/dummy.markc.net/ markc markc caddy
sshd_sftp.sh: No need to be so verbose.
2021-07-10 08:42:50 +01:00
Mark a419e290e9 Caddyfile: another error message tweak
sshd_sftp.sh can now be called with a username as an argument to add said user to the sftp group
2021-07-02 20:39:00 +01:00
Mark e8db71cebf Caddyfile: change error message slightly 2021-06-27 20:17:11 +01:00
Mark 5630d330d0 PHP-FPM: no need to stop the service after install 2021-06-27 20:04:25 +01:00
Mark 60b2564fcd MariaDB - rename add user & db script. 2021-06-27 20:02:15 +01:00
Mark 58794c236a Remove additional line from php8.0-sury_install.sh 2021-06-27 10:34:52 +01:00
Mark c36a7be79e Add php8.0-sury_install.sh 2021-06-27 10:33:34 +01:00
Mark d3aef17ca8 Caddy - just restart the service rather than stopping it. 2021-06-27 10:23:31 +01:00
Mark c52c567de6 Caddyfile: keep it simple - just print out a single line for errors. 2021-06-27 10:20:26 +01:00
Mark dd26997692 - Discovery! We do not need to mangle the system-provided sshd_config to override the sftp subsystem anymore.
This thankfully means that upon package upgrades we no longer get "diff-stopped" (yes I just made that up).
- Add simple sshd_limit_passwords.sh. I've called it limit_passwords instead of no_passwords because it can be overriden by other drop-ins.
2021-06-25 16:42:26 +01:00
Mark 996082c4c0 comment-out default sftp subsystem line 2021-06-24 10:27:22 +01:00
Mark 8d2755f4e8 add sshd_sftp.sh script 2021-06-24 10:13:17 +01:00
Mark 84a7dd1f90 - use all lowercase files and folders
- template.sh for new scripts
- add mariadb install / add user scripts
2021-06-23 19:37:20 +01:00