Comments (1)
These steps should be taken
- Acquire GeoIP database from maxmind
- Parse it with a python script
def dist(lat1, lon1, lat2, lon2):
dLat = deg2rad(lat2 - lat1)
dLon = deg2rad(lon2 - lon1)
a = math.sin(dLat / 2) * math.sin(dLat / 2) + math.cos(deg2rad(lat1)) * math.cos(deg2rad(lat2)) * math.sin(dLon / 2) * math.sin(dLon / 2)
return 2 * math.atan2(math.sqrt(a), math.sqrt(1 - a))
- Split the dns zone
netxs.online
into views using geo distance bewteew client ip and the servers
acl zone_xxx { ... };
...
match-clients { zone_xxx; };
...
zone netxs.online/IN/frankfurt (signed)
zone netxs.online/IN/oregon (signed)
zone netxs.online/IN/richmond (signed)
zone netxs.online/IN/tokyo (signed)
zone netxs.online/IN/sydney (signed)
- Make the entry
netxs.online
specific to each zone - Update SSHFP for every dns-zone
; SSH fingerprints (SHA256 only, ssh-keygen -r _host_name_)
@ IN SSHFP 1 2 5eedec3759855b0ad5c7875dd4f1b552429ba790c236c07e00ac387af44c5aeb
@ IN SSHFP 2 2 ae102d8d401b75682f438ee787bc24ad195a9bc9de91fddffd799a26985687b6
@ IN SSHFP 3 2 1d0af6256783e12d00544aeecb55ed025b10f9dc06e769fca4b5251b1c4178d3
@ IN SSHFP 4 2 d297464eb3d8bf6c672fd091f1eac86ac054125121f79cbab0612957fb1fa4a0
- Test a dns entry of type A
netxs.online
on any dns checker (like: https://dnschecker.org/#A/netxs.online)
from vtm.
Related Issues (20)
- Tiling window manager - select what to add HOT 5
- Project logo / icon HOT 10
- Per virtual terminal text search. HOT 5
- [feature request] launch application windows in vtm desktop through command line HOT 17
- Text wrap switch doesn't work
- Command arguments are not parsed correctly on POSIX systems
- Line splitting is broken and corrupts script expression
- Different exit code styles between UNIX and NT HOT 1
- Unnecessary translation layer if the applet type is not specified
- Dead modifier keys print incorrect characters in cmd.exe readline mode
- Graphical front-end (GUI-TUI Bridge) HOT 29
- Broken `vtm -?` output in non-UTF-8 code page
- Maintaining the "don't wrap configuration" HOT 4
- Standalone terminal focus is lost by left clicking on window menu
- PowerShell/PSReadLine don't use UTF-8 to echo input on Windows
- [Feature request] Always-on-top for app windows HOT 1
- [feature request] configurable window border HOT 8
- One-shot toggle to copy text while mouse tracking is active
- vtm does not work on ubuntu 20.04 since the version 9.84. HOT 1
- Incorrect order of text strings when right-click pasting in pwsh on Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtm.