Peter Hansen
d2653741aa
Merge branch 'master' into custom-startpage
2022-04-05 20:38:43 +02:00
Peter Hansen
f73da84a49
Merge branch 'master' of https://github.com/sileht/bird-lg
2022-04-05 20:24:00 +02:00
Joey Julian König
5e26f3c67a
Update README.mkd
...
- Added lg.as49697.net
- Updated lg.meerfarbig.net to meerblick.io
- Deleted the not longer existent netshelter LG
2021-11-28 23:25:08 +01:00
Baptiste Jonglez
7f1c701e19
README: Improve installation / configuration doc
2021-06-06 19:41:50 +02:00
Baptiste Jonglez
22db058e99
Move config files to .cfg.example
...
This makes sure that the actual configuration is not tracked in git,
simplifying deployment.
2021-06-06 19:41:50 +02:00
Ryan Balandran
c83e4842e9
Generalize requests without arguments in JS
...
This commit adds a list of request types that do not have
parameters. These reqeusts are handled different by the JS code, and
the list makes it easier to add new custom commands that do not have
arguments.
2021-06-06 19:40:19 +02:00
Italo Cunha
30add2e41b
Allow setting log history size
...
BIRD-LG currently keeps log files indefinitely. This patch allows
setting the number of days logs should be kept for by adding
a `LOG_NUM_DAYS` parameter in the configuration files.
This change is backwards compatible: Running the updated code with
old configuration files will keep logs indefinitely as before; new
deployments based on the example configuration will keep logs
indefinitely.
2021-06-06 19:29:51 +02:00
Baptiste Jonglez
3d90c14bfa
Use dnspython built-in cache to cache DNS queries for BGPmap
...
This is equivalent to the previous memcached cache, but much simpler to
deploy (no additional service needed, everything is in process memory)
2021-05-10 23:03:37 +02:00
Baptiste Jonglez
f41056a684
Remove the need for memcached
...
From a deployment perspective, it's annoying to depend on memcached, and
it's only used to cache DNS answers for the BGPmap.
Fixes #73
2021-05-10 23:03:37 +02:00
Baptiste Jonglez
ef6b32c527
Fix XSS when handling query
...
Fixes #63
2021-05-10 23:03:14 +02:00
zorun
96249a36d0
Merge pull request #79 from fragtion/master
...
Added https://lg.angolacables.co.ao/ to Happy users (README.mkd)
2020-08-17 09:58:29 +02:00
Dimitri Pappas
73edb4ce1d
Added https://lg.angolacables.co.ao/ to README.mkd
2020-08-17 04:58:33 +02:00
Baptiste Jonglez
967c721b86
bgpmap: fix regexp to match interface names with non-alphanumerical characters
...
Commit eaf531eee2
("Correctly parse aspath for both bird 1.x and 2.0.")
inadvertently made a regexp more strict, and it no longer matches some
interface names. Example include `eth1.945` (tagged VLAN, which is a
common use-case for routers) or `br-foo`.
As a result, the regexp would not parse the "peer protocol name" that is
normally displayed on the bgpmap.
Fixes : #64
2020-06-16 15:43:03 +02:00
Baptiste Jonglez
53e717381d
bgpmap: Fix crash when 'peer_protocol_name' is not matched by regexp
...
This protects against cases where the regexp expr2 is broken (such as
currently with some interface names)
Fixes : #64
2020-06-16 15:42:41 +02:00
Baptiste Jonglez
c84267edd8
Clarify documentation of shared secret and access list
2020-06-15 22:54:01 +02:00
Baptiste Jonglez
1d3eefa971
Don't display URL containing shared secret when there is an error
2020-06-15 22:47:51 +02:00
Baptiste Jonglez
a45ae45408
Basic python reformatting
...
Transform all tabs to spaces and remove trailing spaces.
2020-06-15 22:34:25 +02:00
Baptiste Jonglez
ca4550ae74
Fix HTML markup (wrong title position)
2020-06-15 22:06:59 +02:00
zorun
8a98ca8b16
Merge pull request #70 from gmarsay/add-website-title
...
Add WEBSITE_TITLE - Issue #69
2020-06-15 22:01:09 +02:00
zorun
73ff7aa496
Merge pull request #71 from gmarsay/add-shared-secret
...
Add SHARED_SECRET
2020-06-15 22:00:06 +02:00
Guillaume Marsay
f87719956a
Add WEBSITE_TITLE - Issue #69
2020-06-15 17:35:42 +02:00
Guillaume Marsay
96c33da446
Add SHARED_SECRET
2020-06-15 17:33:50 +02:00
zorun
1e78b20860
Merge pull request #68 from gmarsay/optional-domain
...
DOMAIN is now optional
2020-06-15 11:31:33 +02:00
Guillaume Marsay
d3e9d5c6b9
DOMAIN is now optional
2020-06-15 09:57:59 +02:00
Peter Hansen
63a81874a6
+ custom startpage
2020-06-14 20:02:17 +02:00
zorun
6f277c23cb
Merge pull request #60 from vidister/master
...
Add shebang to lgproxy.py
2020-06-14 18:42:35 +02:00
zorun
5138d655c8
Merge pull request #54 from empi89/feature/config-file-as-argument
...
specify config file as cli argument
2020-06-14 18:04:12 +02:00
İlteriş Eroğlu
95fd862388
Added css to whois modal to handle newlines
2020-04-30 11:29:51 +02:00
İlteriş Eroğlu
9d9d93805e
Removed br tag replacer on whois endpoint
2020-04-30 11:29:51 +02:00
vidister
1a13a41db7
Add shebang to lgproxy.py
2020-04-29 14:01:45 +02:00
zorun
e5a866b89b
Merge pull request #57 from empi89/feature/debug-true-should-not-be-default
...
DEBUG should be disabled as default
2020-03-02 12:10:15 +01:00
zorun
1abe3f410f
Merge pull request #55 from empi89/feature/add-direct-to-unwanted-protos
...
add direct to SUMMARY_UNWANTED_PROTOS
2020-03-02 12:09:41 +01:00
zorun
d8c20f4cbd
Merge pull request #53 from tamihiro/new-pr-batch-5
...
Correct AS path prepend count in bgpmap.
2020-03-02 12:05:19 +01:00
zorun
b448784a0b
Merge pull request #51 from tamihiro/new-pr-batch-3
...
Correctly display each of multiple destination prefixes with a box shape.
2020-03-02 12:04:27 +01:00
zorun
93ed0769fe
Merge pull request #49 from tamihiro/new-pr-batch
...
Correctly parse aspath for both bird 1.x and 2.0.
2020-03-02 12:03:25 +01:00
zorun
83a9504695
Merge pull request #58 from netfreak98/patch-1
...
Update README.mkd
2020-03-02 12:00:01 +01:00
netfreak98
86c4cf2965
Update README.mkd
...
Added our LG to the list (AS49697) :)
2020-03-01 19:57:01 +01:00
Peter Hansen
a9c27d473b
Merge branch 'feature/add-direct-to-unwanted-protos'
2020-01-29 20:04:42 +01:00
Peter Hansen
0559ac9026
Merge branch 'feature/blacklist-commands-and-startpage'
...
# Conflicts:
# lg.py
2020-01-29 20:04:26 +01:00
Peter Hansen
399139256a
Merge branch 'feature/config-file-as-argument'
2020-01-29 20:02:38 +01:00
Peter Hansen
ac201314ad
+ add blacklist for commands to config
...
+ custom start page with DEFAULT_TEMPLATE
2019-12-28 11:40:04 +01:00
Peter Hansen
307a96d063
direct is also an protocol that should be not shown
2019-12-28 11:37:05 +01:00
Peter Hansen
5ef67f5959
DEBUG should be disabled as default
2019-12-28 11:33:53 +01:00
Peter Hansen
71226a4ed3
specify config file as cli argument
2019-12-28 11:32:00 +01:00
zorun
fa1c071682
Merge pull request #52 from tamihiro/new-pr-batch-4
...
Encode `+` when it appears in URL.
2019-08-28 10:57:20 +02:00
zorun
0e9dcd7946
Merge pull request #50 from tamihiro/new-pr-batch-2
...
Prevent 4-byte AS capability from being treated like it is ASN
2019-08-28 10:53:42 +02:00
tamihiro
648197da24
Correct AS path prepend count in bgpmap.
...
Without this patch, show_bgpmap() method does duplicate counts of aspath prepends, and returns a larger prepend count than it actually is.
2019-06-09 21:41:35 +09:00
tamihiro
1f020cdc40
Encode +
when it appears in URL.
...
This patch takes care of encoding `+` within URL, such as `View the BGP map` link on the output of `show route where net ~ [ <prefix> + ]` response.
2019-06-09 21:39:21 +09:00
tamihiro
2c0d5ac273
Correctly display each of multiple destination prefixes with a box shape.
...
Without this patch, `show route where net ~ [ prefix+ ] (bgpmap)` erroneously returns only one prefix with a box shape, and all the other prefixes with a oval shape as if they were multipath intermediate ASes.
2019-06-09 21:35:59 +09:00
tamihiro
822d54cd3d
Prevent 4-byte AS capability from being treated like it is ASN
...
Bird displays neighbor's 4-byte AS capability as `AS4`.
This patch prevents it from being treated as an clickable ASN in the output of `show protocols <protocol_name> all` response.
2019-06-09 21:31:38 +09:00