Commit Graph

1168 Commits (545b6605bc03dacc31e3f96d20beea5065c50bfe)

Author SHA1 Message Date
Mark Drobnak bb9a18ef08
Merge pull request #1987 from ryanknapper/patch-1
6 years ago
Jacob Salmela 1a275ba184
debug user locale; improve function to parse variables and files
6 years ago
Mark Drobnak 971e6f2664
Merge pull request #2064 from Perflyst/chronometer-1
6 years ago
Dan Schaper 34d84522dd
Merge pull request #2054 from theLMGN/patch-1
6 years ago
Perflyst 3390fbf238 Add RaspberryPi 3B+
6 years ago
Jacob Salmela 68c27eb2a1
add label to x-header so you know which one is being evaluated
6 years ago
Jacob Salmela 143e75d213
fix empty ports on some systems
6 years ago
DL6ER 295ac49f83
Add capability CAP_NET_RAW to allow pihole-FTL to use RAW sockets for being able to create an ICMPv6 socket for IPv6 handling in the DHCP service
6 years ago
Adam Warner fbab930cb1
Allow install script to install FTL instead of the checkout script. Utilises the /etc/pihole/ftlbranch file.
6 years ago
Leo MG Nesfield (LMGN) bfcbd72e4b
Link to the admin panel on the splash page.
6 years ago
Jacob Salmela d9d3caec22
new head tail function and get head tail of pihole-FTL.log instead of just head
6 years ago
Jacob Salmela 7159ecb632
reduce ping times for faster script completion
6 years ago
Adam Warner 5584a9ce5d
Merge branch 'development' into FTLDNS
6 years ago
Adam Warner 76cb129d3c
don't forget `master` and `development` branches!
6 years ago
Adam Warner 246d5cd587
store checked out FTL branch in /etc/pihole/ftlbranch
6 years ago
Ryan Knapper 5ecfc58e5f
Require exact match
6 years ago
DL6ER 56a2924a33
Unprivileged processes are subject to full permission checking based on the process's credentials, we have to explicitly allow pihole-FTL to bind to ports < 1024 (port 53 for DNS) and for various advanced network-related operations (to allow for handling DHCP requests)
6 years ago
DL6ER 09886a3f11
Add resolveconf config to pihole-FTL.service
6 years ago
DL6ER b87bcc8f5f
Modifications in pihole-FTL.service for FTLDNS
6 years ago
Ryan Knapper c17d95bfed
Proper output for debug CPU detection
6 years ago
Mark Drobnak f14184df30
Merge pull request #1982 from LudovicRousseau/master
6 years ago
Ludovic Rousseau 47bbea9ba7 Use " " to protect parameter substitution
6 years ago
Mark Drobnak 7265935cd4
Merge pull request #1915 from ryanknapper/development
6 years ago
Ludovic Rousseau b7891f92a5 Create blacklist.txt if not existant
6 years ago
DL6ER 5465ac9ba0
Merge pull request #1929 from pi-hole/fix/flushDB
6 years ago
DL6ER b8eaa9a527
Use double quotes to precent globbing and word splitting
6 years ago
DL6ER 5d274008db
Use possibly user-defined database location when flushing
6 years ago
Mcat12 8a42ef431b
Fix Javascript warning when no password is set
6 years ago
Mcat12 2cf1f0e8fc
Hide the password input when there is no password
6 years ago
Ryan Knapper f2b3752f3d
lan to local
6 years ago
Ryan Knapper 36945a67d0
Prevent redundant entries in to adlists.list
6 years ago
Mcat12 1a5c86d32e
Revert "Hide password textbox if there is no password"
6 years ago
Mcat12 c7219fbdff
Merge remote-tracking branch 'origin/development' into tweak/block-page-no-password
6 years ago
DL6ER 4c249a1186
Flush most recent 24 hours from FTL's database
6 years ago
DL6ER 158ea1d43b
Add sqlite3 dependency
6 years ago
DL6ER 52cc8e2fcf
Use "lan" as fallback TLD for DHCP generated domains
7 years ago
ryanknapper 607664c860
Update webpage.sh
7 years ago
Adam Warner 80307a3bcd
Remove update line from cron
7 years ago
Vasilis Gerakaris 939806f021
piholeDebug.sh: Correct typo mistake
7 years ago
DL6ER 793bdd9743
No need for cat | sed here as we source setupVars.conf, so we can use interface="${PIHOLE_INTERFACE}"
7 years ago
DL6ER 9d50f52bb2
Add fallback interface for DNS listening behavior in case PIHOLE_INTERFACE is not set in setupVars.conf
7 years ago
DL6ER 4efb533d2e
Create directories /etc/{var,log}/pihole on startup of pihole-FTL and set proper ownership
7 years ago
DL6ER afa2e9c2f7
Exchange hard-coded domain "localhost" by hard-coded address "127.0.0.1"
7 years ago
DL6ER a4c8f1a0a4
Merge pull request #1859 from pi-hole/new/extra-logging
7 years ago
Adam Warner 8e0d76b63b
initiated -> initialized
7 years ago
DL6ER cca8412921
Use "echo -n" to avoid haveing newlines in the files
7 years ago
DL6ER d15a5ad5c1
Add required documentation in the source code
7 years ago
DL6ER 8ed75dd176
Add extra entry to the end of the saved branches and versions such that PHP's explode() subroutine can correctly disentangle the first three entries and does not get confused by the newline character at the end of the FTL version/branch...
7 years ago
Dan Schaper 8ca0582afc
Merge branch 'release/v3.2.1' into fix/DNSSEC_trustanchor
7 years ago
DL6ER 5c2dcb5e74
Enable dnsmasq's extra logging feature
7 years ago
DL6ER be0c457445
Sleep 30 seconds after reboot to be sure that the system is ready
7 years ago
DL6ER 3c04dbb4ed
Update remote version at 17:59 as well as on reboot
7 years ago
DL6ER cfca367eef Quickly verified in dnsmasq's source code: It has to be "trust-anchor" (with "-")
7 years ago
DL6ER 8a243c5872 Insert also old trust anchor
7 years ago
DL6ER b30b3f3aeb Update DNSSEC trust anchor
7 years ago
Mark Drobnak e3fa06d7ff
Merge pull request #1829 from keithbentrup/development
7 years ago
Dan Schaper 423280cee1
Merge pull request #1817 from jjssoftware/development
7 years ago
Keith Bentrup 45ab2a3d7a send HTTP headers before HTML
7 years ago
DL6ER 05d015169c
Check for local version and branches every 10 minutes, check for remote versions only once a day
7 years ago
Jacob Salmela 28bed0041e
remove comment
7 years ago
Jacob Salmela 6f03e30151
fixes #1537 by checking if systemctl is found
7 years ago
Joe 6ecd93d0c9
pihole.log permissions
7 years ago
Adam Warner a9a40ca46c
Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
7 years ago
Adam Warner 162a7b56fe
force mode is no longer referenced. Regression. Same with `domToRemoveList`
7 years ago
WaLLy3K 2dc1851892
Allow passwords with spaces
7 years ago
Jacob Salmela 9631519eb1
Merge pull request #1752 from pi-hole/new/bashupdatechecker
7 years ago
DL6ER 90efa3b610
Simplify git subroutines
7 years ago
Mcat12 009fa2f1b7
Hide password textbox if there is no password
7 years ago
Adam Warner 5221767a70
Merge pull request #1735 from bcambl/debug_selinux
7 years ago
DL6ER 9492ff26c6
Merge pull request #1747 from pi-hole/tweak/gravity_update_time
7 years ago
DL6ER 0db76aada0
Silence errors when directory to be checked does not exist (system may have been installed without a web interface!)
7 years ago
DL6ER 9be854031f
Don't store FTL branch until the next release of FTL which supports returning the branch in an easy way
7 years ago
DL6ER 709851503f
Use "pihole-FTL branch" to get FTL's branch
7 years ago
DL6ER 6ca47dc3b3
Add bash / cron based update checker for Pi-hole
7 years ago
WaLLy3K 2390b80359 Silence non-numeric domains_being_blocked output
7 years ago
DL6ER 85d159bdd1
Randomize gravity update time
7 years ago
bcambl 0f868f7649 remove un-used DONE variable
7 years ago
bcambl 31730e7197 add missing colors to COL_TABLE fallback
7 years ago
bcambl 7d76db00ac update 'SELinux not detected' message
7 years ago
bcambl 8aceb8bf53 replace deprecated colors in debug script
7 years ago
bcambl a17d1be7a4 simplify selinux debug variables
7 years ago
bcambl 1e6cc63abe add SELinux checking to debug script
7 years ago
WaLLy3K 3e727c5e5d Merge pull request #1721 from pi-hole/fix/lightyconf
7 years ago
DL6ER e0edac32c7 Merge pull request #1728 from pi-hole/new/nuke_lists
7 years ago
WaLLy3K e4b3bc4209 Minor spacing corrections
7 years ago
WaLLy3K 51b09efceb Fix minor typo
7 years ago
WaLLy3K 2dabacd024 Fix minor typo
7 years ago
WaLLy3K 0613dcc87b Merge pull request #1692 from andofrjando/cors_mixed_content_fix
7 years ago
WaLLy3K d59a2a4cfc Merge pull request #1729 from pi-hole/fix/email-help-argument
7 years ago
WaLLy3K 2c091f3a3c Merge branch 'development' into cors_mixed_content_fix
7 years ago
WaLLy3K cfcdc53185 Merge pull request #1722 from pi-hole/fix/bpfqdn
7 years ago
WaLLy3K bd33018660 Shellcheck OR validation
7 years ago
Mcat12 e7589945a2 Disable password field if no password is set
7 years ago
Mcat12 67a5594909 Allow emails which include `-h` in them
7 years ago
DL6ER 70ad656af0
Save backup as ".bck~" to prevent reading of the file by dnsmasq
7 years ago
DL6ER f22b83d379
Create a backup before emptying the list
7 years ago
DL6ER 114f84c948
Add --nuke option to list.sh that can be used e.g. by Teleporter to empty out lists before importing new content
7 years ago
WaLLy3K 43e1121618 Match current style of Web Interface
7 years ago
WaLLy3K 97dd1b4cf3 Improve FQDN Authorized Hosts functionality
7 years ago
WaLLy3K 288635abc9 Add comment for include_shell feature
7 years ago
Celly 3f20981aab Update access rules to block all root '.' files
7 years ago
Celly f54a812ad5 Update access rules to block all root '.' files
7 years ago
andofrjando 6323d5afed
Use PHP short echo tag to avoid Codacy expecting an escaping function
7 years ago
Celly e3e3b4da58 Add in some exclusions form some leaky files in the admin
7 years ago
Adam Warner ef1ce7d4d6 Merge pull request #1631 from pi-hole/tweak/gravity
7 years ago
DL6ER ee2169dd13
Merge branch 'development' into tweak/gravity
7 years ago
WaLLy3K 11282aaca3 Decrease `local-ttl` to 2
7 years ago
WaLLy3K f3cc8c71c4 Merge pull request #1691 from pi-hole/new/adminemail
7 years ago
WaLLy3K 500a755250 Delete superseded file
7 years ago
andofrjando 5e48b3f7f7
Fix one mistake where `$proto` would not be created if `$_SERVER['HTTPS']` exists but is not set to `on`
7 years ago
andofrjando 00d62b3423
This fixes the following bug:
7 years ago
WaLLy3K 28063aa7f7 Add administrative contact address functionality
7 years ago
WaLLy3K c458e4a93b Merge pull request #1420 from WaLLy3K/new/https
7 years ago
WaLLy3K e7ae62ba76 Merge pull request #1416 from WaLLy3K/blockpage2
7 years ago
WaLLy3K 34ae4844fa Merge branch 'development' into tweak/gravity
7 years ago
DL6ER b8fedf76cd Merge pull request #1572 from pi-hole/gedetil-development
7 years ago
DL6ER c9d4995900
Update to comply with current development code
7 years ago
DL6ER 279e809aaf
Use `poweroff` instead of `halt`
7 years ago
DL6ER 0d037e96fb
Merge branch 'development' into gedetil-development
7 years ago
WaLLy3K bea99abd8d Ensure colour consistency between terminal themes
7 years ago
WaLLy3K bab44c52ae Merge branch 'development' into blockpage2
7 years ago
WaLLy3K 7cac207c00 Merge branch 'development' into tweak/gravity
7 years ago
Adam Warner 199de9ebc0 Merge branch 'development' into new/https
7 years ago
Adam Warner 504ae0193f Merge branch 'development' into blockpage2
7 years ago
WaLLy3K 1ae403b742 Merge pull request #1667 from pi-hole/install-space
7 years ago
Adam Warner 18b41adbf6 Merge branch 'development' into tweak/gravity
7 years ago
Mcat12 898fdf7a60 Merge pull request #1602 from molikuner/development
7 years ago
Adam Warner 78143c2ff4 Merge branch 'development' into blockpage2
7 years ago
Adam Warner 7b1524ad01 Merge branch 'development' into new/https
7 years ago
Adam Warner 5799485b0f Merge branch 'development' into development
7 years ago
Adam Warner 0a9965292c
Additional check to fix any existing cases of "24h" in setupVars.conf automatically.
7 years ago
Adam Warner 4fb66e632f
The other h
7 years ago
Adam Warner 5787895794
stop an extra `h` being added to leasetime of DHCP server. We already storethe `h` in `setupVars.conf`
7 years ago
Adam Warner d90489b31d
Include branch we're switching from
7 years ago
Adam Warner f38912a0c9
- Correctly overwrite ${INFO} boxes with ${CROSS} etc
7 years ago
WaLLy3K 2d8fff099f Pass correct options to gravity.sh
7 years ago
WaLLy3K fdf2649f2f Clean up known remaining colour output issues (#1613)
7 years ago
Mcat12 b09c660833 Always process DNS and DHCP settings in installer (#1630)
7 years ago
WaLLy3K 714fd93292 Provide correct FTL stats (#1619)
7 years ago
WaLLy3K 61ff0452e1 Remove duplicate code
7 years ago
WaLLy3K 406098e55a Speed up refresh time
7 years ago
WaLLy3K 49aee8b931 Fixed development branch check
7 years ago
WaLLy3K f2a3b557c8 Updated Block Page to work with queryFunc output
7 years ago
Adam Warner 0a062d26e6 Merge pull request #1611 from pi-hole/developmentNew
7 years ago
Adam Warner eb8333c772
Merge branch 'development' into developmentNew
7 years ago
Adam Warner 247d3ed729
list availible branches for FTL
7 years ago
Adam Warner 031c6428d5
Merge branch 'tweak/checkout_FTL' of https://github.com/pi-hole/pi-hole into tweak/checkout_FTL
7 years ago
Adam Warner f2e9d585f7
* Add helptext for `pihole checkout ftl`
7 years ago
WaLLy3K 8af9853b9a Fixed minor formatting issues
7 years ago
Adam Warner 783f50657b
Merge branch 'development' into tweak/checkout_FTL
7 years ago
WaLLy3K 3631d1349e Prevent Web Admin from printing restartdns colour codes (#1575)
7 years ago
Adam Warner 7d56e2a937
`FTL` has an `L` in it, innit?
7 years ago
Jacob Salmela e1f818ffb7 Tweak/debug improvements (#1585)
7 years ago
Molikuner 9934f505a5 Fix URL extension parsing
7 years ago
Jacob Salmela fb66fb12c5
put "no password will be set" on a newline.
7 years ago
Jacob Salmela 042dcf795c
fixes #1430
7 years ago
Jacob Salmela cb65907e60 Merge branch 'development' of https://github.com/pi-hole/pi-hole into revamp/debug
7 years ago
DL6ER bb8a263d70
ShellCheck
7 years ago
DL6ER 70fd94edb3
Edit message when requested branch of FTL is not available
7 years ago
WaLLy3K 1bebcef265 Make Chronometer usable on smaller screens (#1518)
7 years ago
DL6ER 6ce79ae1d0 Fix git commands (#1577)
7 years ago
Adam Warner b3eb5c4f0e Colour Tweaks (#1549)
7 years ago
DL6ER ec4e9780ed Accept underscores when validating domain names (#1571)
7 years ago
Adam Warner 22abbffbb7
Merge branch 'development' of https://github.com/gedetil/pi-hole into gedetil-development
7 years ago
Jacob Salmela 05a724afae
codacy appeasement: remove useless cats
7 years ago
Jacob Salmela 1957b002bc
add comments about X-Headers and further explain the file descriptor cod.
7 years ago
Jacob Salmela 04cef25add
remove color character codes before uploading so the log is more readable on our plaintext tricorder server
7 years ago
DL6ER 98afb0e998
pihole checkout ftl
7 years ago
DL6ER e9d81fc883 Backend additions for aufit log feature (#1399)
7 years ago
Jacob Salmela 22fac5e1e0
additional shellcheck fixes
7 years ago
Jacob Salmela b6a2a4ad5a
more shellcheck fixes
7 years ago
Jacob Salmela 5f00347019
appease shellcheck by removing two unneccesary functions and making some if/else blocks
7 years ago
Mcat12 009363a7bb Merge pull request #1560 from pi-hole/fix/ad-domain-hostname
7 years ago
Mcat12 8dc94e014f
Merge branch 'development' into fix/invalid-ipv6-wildcard
7 years ago
Mcat12 78e7c8b8e9
Merge branch 'development' into fix/ad-domain-hostname
7 years ago
Dan Schaper c29c4ceb0f
Integrate DL's update.sh fixes.
7 years ago
Mcat12 bc46694ea7 Move local.list after the ad blocking lists
7 years ago
Mcat12 cb09e0bc9a Strip `/*` from the end of the IPv6 address
7 years ago
Adam Warner 536585b846 Colourise Core Output Text (#1471)
7 years ago
DL6ER 0283a1ab74
Introduce new file black.list for blacklist content
7 years ago
DL6ER 54a88ab5ab Change ownership of /etc/pihole to user/group pihole. Fixes #1529 (#1530)
7 years ago
WaLLy3K aff5ff08d5 Trim version output when update is successful (#1527)
7 years ago
Jacob Salmela fc0440546f
add functions to parse head and tails of gravity.list and pihole.log
7 years ago
Jacob Salmela 172b8d2427
parse ftl log
7 years ago
Jacob Salmela 6d10a498a5
implement a limit on how many lines of a file we want to view
7 years ago
Jacob Salmela 881819ed5f
ignore big files we dont need to know about; also fix diagnosing pihole processes
7 years ago
Jacob Salmela 3275c5f710
more comments to help understand the script
7 years ago
Jacob Salmela b0cc1a38c3
adjust minor formatting for better readability
7 years ago
Jacob Salmela e10182c839
only parse files required by Pi-hole
7 years ago
Jacob Salmela b4f1fe08f0
variablize all files and directories. also put required files and folders into an arry so we can compare them in later functions by parsing through them
7 years ago
Jacob Salmela 64171fa2a1
small color and formatting changes
7 years ago
Jacob Salmela 048eacd305
parse array in correct location
7 years ago
Jacob Salmela 24aa72c19d
condense repetative code into functions; parse the content of each file
7 years ago
Jacob Salmela 92b5fe4be4
check arch compatibility and add gateway faq url
7 years ago
DL6ER f1146a3443
Don't update FTL when there is a core update (as this will update FTL a second time). Fixes #1516
7 years ago
DL6ER 2516a1e298 Make clear that NO is the default if the user just hits return (#1514)
7 years ago
DL6ER 8ef64dbe74 Add weekly logrotation of FTL's log (#1509)
7 years ago
Jacob Salmela 8b4c0b456b
exclude webpassword from being uploaded. also check that the IP addresses detected match those defined in setupVars.conf
7 years ago
Jacob Salmela 02a601deff
comment out dir checks for lighttpd, cronm and http as they have a lot of other files that need parsing through. May need to increase the logic there if this is information we really need to know.
7 years ago
Jacob Salmela b207fadc04
check if os is supported based on pretty name
7 years ago
Jacob Salmela d51c067e1b
change some verbiage; new function to compare the ports in use to the services assigned to them.
7 years ago
Jacob Salmela 2fea5d428d
condense repetitive code into functions
7 years ago
Jacob Salmela d51e0c49b1
remove comments and blank lines when parsing files
7 years ago
Jacob Salmela 36907edd50
parse contents of each file in each dir, several log_writes
7 years ago
Jacob Salmela 7ec169ab10
more comments, fixed automated tricorder, variablizing echos, verify FTL version
7 years ago
Jacob Salmela 7873da1ae5
more colors. shortened dig timeouts
7 years ago
Jacob Salmela ef5a6e7880
add faq urls to some functions, added more colors, also use a static url for remote digs
7 years ago
Jacob Salmela 96f01e670f
add functions to write to console and log at the same time
7 years ago
WaLLy3K 10139241f5 Fix output IPv4 addr when removing CIDR notation (#1498)
7 years ago
Jacob Salmela 5902be2a49
comments for every line
7 years ago
Jacob Salmela cc946ce068
upload to tricorder functions
7 years ago
Jacob Salmela 1102fdc44b
append everything the user sees to the pihole_debug.log file
7 years ago
Jacob Salmela c995c81fff
adjust some spacing
7 years ago
Jacob Salmela 6684af9938
add lighttpd list function and gravity analysis
7 years ago
Jacob Salmela 8bafd12f95
fix resolver functions and add x-header function
7 years ago
Jacob Salmela 76266cf31b
add resolver functions and check directory content functions
7 years ago
WaLLy3K 4ad0cdf5d4 Rewrite Chronometer to output more stats
7 years ago
Jacob Salmela 1a87d3a659
add process check function
7 years ago
Jacob Salmela 085f2c6ca0
add port check function
7 years ago
Jacob Salmela b74300f67c
add ping internet function and fix some spacing issues
7 years ago
Jacob Salmela 107babe8f4
add ping gateway function
7 years ago
Jacob Salmela 8fd9a22d18
add detect IP function
7 years ago
Jacob Salmela 8c5c1316dd
add php version and processor check functions
7 years ago
Jacob Salmela daff5d8b5a
add critical dependencies version check functions
7 years ago
Jacob Salmela 6c4a7b626e
add pihole version check functions
7 years ago
Jacob Salmela 1aa5943e67
add if directory exists function
7 years ago
Jacob Salmela 69fe889f92
comments for all lines and small formatting changes
7 years ago
Jacob Salmela 5d7ef9281f
get just the OS pretty name for Dan
7 years ago
Jacob Salmela 6fa00e7cc8
first functions with pretty colors. check OS, setupVars, and contents of .d dirs
7 years ago
WaLLy3K 69fa9874dd Use HTTP_HOST instead of SERVER_NAME
7 years ago
WaLLy3K f6732a484e Merge pull request #1317 from r0ckarong/development
7 years ago
DL6ER 42eb811910
Add "quiet" mode + update comments in the cron file
7 years ago
DL6ER c9042ffedd
Print echos only when manual flushing is requested
7 years ago
DL6ER 4e2c6a7b8e
Fix logrotation: manual flushing should be done twice, but automated rotation at midnight should only be done *once*!
7 years ago
WaLLy3K 7453bf2ee6 Fix wildcard help text
7 years ago
WaLLy3K 7d17c652f3 Merge branch 'development' into development
7 years ago
Adam Warner 90119c75d5
more merge conflicts!
7 years ago
WaLLy3K 30035ce1c2 Merge branch 'development' into tweak/help-output
7 years ago
WaLLy3K 3bd677c102 Show help for "pihole -v -h"
7 years ago
WaLLy3K 0e4473685b Show help for "pihole -a -i --help"
7 years ago
WaLLy3K b721ed49ab Update Help Output (#1467)
7 years ago
Dan Schaper 25601b9fcc Document `sed` substitution for user readability
7 years ago
Adam Hill 55f78e3b64 Update list.sh
7 years ago
WaLLy3K f9d41caeb6 Merge branch 'development' into blockpage2
7 years ago
Hans Geiblinger b166410cbf Solve piholeLogFlush.sh having to be issued 2 x to clear logs (#1460)
7 years ago
0412465564 31d5a7ae9e whitelist on website blocked doesnt work (#1452)
7 years ago
Dan Schaper 5bb91759b4 Merge pull request #1459 from WaLLy3K/patch-2
7 years ago
Dan Schaper 80c4b7c9bb Merge pull request #1455 from pi-hole/tweak/logecho_gateway
7 years ago
WaLLy3K ea0a9ceb37 Provide remote hashes for version.sh
7 years ago
WaLLy3K f875976268 Replacing superseded file with dummy content
7 years ago