-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reCAPTCHA v3, protection of BGP summary, and assorted bug fixes #46
base: master
Are you sure you want to change the base?
Conversation
- Added hiding of BGP summary and command line for public-facing LG's - Added safe subnets array to permit some subnets to view peer information - Added RADb to footer - Stopped hyperlinks being added for private ASNs - Minor code formatting changes
- Fixed AS information in traceroute - Improved safe subnets message
Merg into test branch
reCAPTCHA v3 and assorted bug fixes Peer developed with @mrjwilz
@@ -303,7 +393,7 @@ function load() { | |||
|
|||
$url = @parse_url($url); | |||
|
|||
$routing_instance = $_CONFIG['routers'][$router]['routing-instance']; | |||
$routing_instance = isset($_CONFIG['routers']) AND isset($_CONFIG['routers'][$router]) AND isset($_CONFIG['routers'][$router]['routing-instance']) ? $_CONFIG['routers'][$router]['routing-instance'] : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check, this code with PHP 8.1 always returns 1
$_CONFIG['showpeerinfo'] = 'TRUE'; | ||
|
||
/* | ||
* If 'showpeerinfo' above is TRUE, and you would like to show BGP peer information to visitors from a specific IPv4 address or subnet, add the IPv4 address or subnet (in CIDR format) to the array below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clarify the comment, according to the code 'showpeerinfo' should be "FALSE" to filter peer info based on visitors IP.
Also please consider disabling reCaptcha for safe IP list, and disable AS_PATH manipulation, as it makes LG unusable. |
We needed reCAPTCHA v3 so have implemented this.
We found that the HSDN WHOIS wasn't working all the time, so switched this to RADb.
We implemented the ability to protect BGP summary information based upon the source IP address of the end user.
We have also fixed the following minor bugs that we encountered during development:
Peer developed with @mrjwilz