Giter VIP home page Giter VIP logo

teler-sh / teler-proxy Goto Github PK

View Code? Open in Web Editor NEW
43.0 5.0 6.0 3.25 MB

๐Ÿ” teler Proxy enabling seamless integration with teler WAF ๐Ÿ›ก๏ธ to protect locally running web service against a web-based attacks. ๐Ÿฅท

License: Apache License 2.0

Go 82.34% Makefile 4.93% Dockerfile 4.09% Smarty 8.65%
firewall intrusion-detection intrusion-prevention proxy-server reverse-proxy secure-by-default teler teler-waf tunnel-server waf

teler-proxy's People

Contributors

dependabot[bot] avatar dwisiswant0 avatar ghost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

teler-proxy's Issues

[bug] fatal error: concurrent map iteration and map write

Describe the bug

teler-proxy_1  | fatal error: concurrent map iteration and map write
dvwa_1         | 192.168.80.4 - - [01/Aug/2023:07:44:37 +0000] "GET / HTTP/1.1" 200 2811 "-" "Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36"
dvwa_1         | 192.168.80.4 - - [01/Aug/2023:07:44:37 +0000] "GET /favicon.ico HTTP/1.1" 200 1651 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36"
teler-proxy_1  | 
teler-proxy_1  | goroutine 63 [running]:
teler-proxy_1  | github.com/samber/lo.Assign[...]({0xc000a497c8?, 0x2, 0x7})
teler-proxy_1  | 	/go/pkg/mod/github.com/samber/[email protected]/map.go:169 +0xc5
teler-proxy_1  | github.com/kitabisa/teler-waf/dsl.(*Env).Run(0xc000282380, 0xc000cda570?)
teler-proxy_1  | 	/go/pkg/mod/github.com/kitabisa/[email protected]/dsl/run.go:33 +0x34e
teler-proxy_1  | github.com/kitabisa/teler-waf.(*Teler).isDSLProgramTrue(...)
teler-proxy_1  | 	/go/pkg/mod/github.com/kitabisa/[email protected]/utils.go:212
teler-proxy_1  | github.com/kitabisa/teler-waf.(*Teler).checkCommonWebAttack(0xc000cab180, 0xc0005aa150?)
teler-proxy_1  | 	/go/pkg/mod/github.com/kitabisa/[email protected]/analyze.go:228 +0x175
teler-proxy_1  | github.com/kitabisa/teler-waf.(*Teler).analyzeRequest(0xc000cab180, {0x0?, 0x506d49?}, 0x0?)
teler-proxy_1  | 	/go/pkg/mod/github.com/kitabisa/[email protected]/analyze.go:88 +0x197
teler-proxy_1  | github.com/kitabisa/teler-waf.(*Teler).HandlerFuncWithNext(0x410c9f?, {0x14b6928, 0xc0017fe1c0}, 0x0?, 0xc000a49aa8)
teler-proxy_1  | 	/go/pkg/mod/github.com/kitabisa/[email protected]/handler.go:47 +0x36
teler-proxy_1  | github.com/kitabisa/teler-proxy/pkg/tunnel.(*Tunnel).ServeHTTP(0x0?, {0x14b6928?, 0xc0017fe1c0?}, 0x46882e?)
teler-proxy_1  | 	/app/pkg/tunnel/tunnel.go:61 +0x46
teler-proxy_1  | net/http.serverHandler.ServeHTTP({0xc000c22420?}, {0x14b6928, 0xc0017fe1c0}, 0xc0017f2400)
teler-proxy_1  | 	/usr/local/go/src/net/http/server.go:2947 +0x30c
teler-proxy_1  | net/http.(*conn).serve(0xc00033ce60, {0x14b7450, 0xc0007a8a80})
teler-proxy_1  | 	/usr/local/go/src/net/http/server.go:1991 +0x607
teler-proxy_1  | created by net/http.(*Server).Serve
teler-proxy_1  | 	/usr/local/go/src/net/http/server.go:3102 +0x4db

To Reproduce

Steps to reproduce the behavior:

Your teler usage & options...

teler WAF configuration:

# your teler WAF configuration...
// or in JSON format...

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. mac, linux]
  • OS version: [uname -a]
  • teler Proxy version: [teler-proxy -V]

Additional context

Add any other context about the problem here. Full output log is probably a helpful thing to add here.

[feature] Use gofr framework

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.