uprtdev / labean Goto Github PK
View Code? Open in Web Editor NEWHTTP/HTTPS port knocker written in Go
HTTP/HTTPS port knocker written in Go
I use "allow_explicit_ips": true, and with nginx example reverse proxy config , but seems the use of https://someserver.org/secret/service/on/?ip=123.56.78.9 not working, the clientIp isn't ip address 123.56.78.9 . The clientIp is still the real client IP but not specified ?ip=123.56.78.9 .
Or maybe I config nor using it wrong .
Need your help.
Thank you very much!
By the way , if there is a client app on android or ios etc, will be even greater I wish.
Config file in example show how to setup nginx to work with labean.
But for noobies like me, it's difficult to setup apache2 to work with labean.
I spent some time to write config file for apache2 servers.
Maybe for someone my work will be helpfull
This part you should paste into your apache2 config file
<Location ~ "/secret/(.*)">
RewriteEngine on
Options +FollowSymlinks
AllowOverride All
deny from all
AuthType basic
AuthName "Administrator login"
AuthUserFile /etc/apache2/htpasswd
Satisfy Any
Require valid-user
header add X-Real-IP "%{REMOTE_ADDR}s"
RequestHeader append X-Real-IP "%{REMOTE_ADDR}s"
ProxyPass http://127.0.0.1:8080/$1
maybe this config made not quite competently, but it works
If we specify the secret URL as shown in the doc (https://someserver.org/secret/vpn/on
), we get the "No such task" error.
So, we should use https://someserver.org/secret/secret/vpn/on
instead to make things working. :)
P.S. Tried to change http://127.0.0.1:8080/$1
to http://127.0.0.1:8080$request_uri
, but got "500 Internal Server Error" due to, I think, leading slash in the URI that can't be handled by labean.
Another fix: set http://127.0.0.1:880/secret/$1
in the nginx config.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.