Comments (14)
You can use the scp
command to test the limiter:
Proxy mode:
gost -L ":8080?limiter.conn.in=1MB&limiter.conn.out=2MB&limiter.in=1MB&limiter.out=2MB"
test upload:
scp -o "ProxyCommand=nc -X connect -x localhost:8080 %h %p" ./test.dat user@localhost:~
test download:
scp -o "ProxyCommand=nc -X connect -x localhost:8080 %h %p" user@localhost:~/test.dat .
Port forwarding mode
gost -L "tcp://:2222/:22?limiter.conn.in=1MB&limiter.conn.out=2MB&limiter.in=1MB&limiter.out=2MB"
test upload:
scp -P 2222 ./test.dat user@localhost:~
test download:
scp -P 2222 user@localhost:~/test.dat .
from gost.
对用户进行限速和限制连接数更好
from gost.
同求,对每个来源IP限制速度或者连接数。
from gost.
https://gost.run/concepts/limiter/
from gost.
its not working :
gost -L=ss://AES-256-GCM:password@:4444?limiter.conn.out=250KB&limiter.conn.in=250KB&limiter.in=250KB&limiter.out=250KB
i can download up to my bandwidth
for example 3 MB per seconds.
from gost.
hello? any news on this?
from gost.
Maybe you need to add quotes:
gost -L="ss://AES-256-GCM:password@:4444?limiter.conn.out=250KB&limiter.conn.in=250KB&limiter.in=250KB&limiter.out=250KB"
You can confirm the command by using the '-O yaml':
gost -L="ss://AES-256-GCM:password@:4444?limiter.conn.out=250KB&limiter.conn.in=250KB&limiter.in=250KB&limiter.out=250KB" -O yaml
Outputs:
services:
- name: service-0
addr: :4444
limiter: limiter-0
handler:
type: ss
auth:
username: AES-256-GCM
password: password
listener:
type: tcp
limiters:
- name: limiter-0
limits:
- $ 250KB 250KB
- $$ 250KB 250KB
from gost.
thank you @ginuerzh for the reply, i will try this
from gost.
hi @ginuerzh
i just tested again
it looks like its just not working when you use -F=...
for example this works :
gost -L="ss://AES-256-GCM:password@:4444?limiter.conn.out=250KB&limiter.conn.in=250KB&limiter.in=250KB&limiter.out=250KB"
but this one doesn't works :
gost -L="ss://AES-256-GCM:password@:4444?limiter.conn.out=250KB&limiter.conn.in=250KB&limiter.in=250KB&limiter.out=250KB" -F=ss://AES-256-GCM:[email protected]:4442
from gost.
so that's how it supposed to work or its a bug?
from gost.
how to testing the limiter is work?
using fast.com to testing, the download speed limited , but the upload speed limiter is not work, setup as below
- name: limiter-0
limits:
- '$ 2MB 2MB'
- '$$ 2MB 2MB '
I want to limit the download speed how to set, or how to testing the limiter (input/output) setting is work,
thanks
from gost.
@zero0o07
You should post the complete configuration you are using here.
Do you just create a limiter named "limiter-0", but do not assign it to a service?
from gost.
@zero0o07 You should post the complete configuration you are using here. Do you just create a limiter named "limiter-0", but do not assign it to a service?
the details as below:
services:
- name: service-0
addr: ":8888"
interface: 100.100.100.194
limiter: limiter-0
handler:
type: auto
auther: auther-0
listener:
type: tcp
authers:
- name: auther-0
auths:
- username: UNAME
password: UPWD
limiters:
- name: limiter-0
limits:
- $ 2MB 2MB
- $$ 2MB 2MB
100.100.100.194
is a fake address,
socks://UNAME:[email protected]:8888
or
http://UNAME:[email protected]:8888
from gost.
@zero0o07
The key point for this problem is that they are different unit.
1 MB = 1Mb * 8, so you should set like this:
limits:
- $ 0.25MB 0.25MB
- $$ 0.25MB 0.25MB
from gost.
Related Issues (20)
- There is a memory leak in version v3.0.0-nightly.20240426 on openwrt 23.05 HOT 2
- 获取ip 有缓存 HOT 6
- 串联的问题
- v2 迁移 v3-bypass 文件 HOT 1
- v3 版本的 udp 不正常 socks5: UDP relay is disabled HOT 2
- 关于透明代理部分网站无法正常工作的疑问 HOT 7
- ..
- 关于指关闭日志输出&resolver参数问题 HOT 1
- Tun on windows(gost v3.0.0-nightly.20240426): panic: runtime error: invalid memory address or nil pointer dereference
- 关于双栈隧道的搭建 HOT 3
- [Feature Request] Reconnecting WebSocket if the connection is dropped HOT 1
- 只能接受proxy-protocol,没有发送proxy-protocol功能 HOT 1
- [Feature Request] splice() support (improves performance).
- My server access to GitHub is restricted
- TLS version gostv2 vs gostv3 cipher issue? BUG
- [Feature Request] Linux Network Namespace (netns) support HOT 2
- {"level":"fatal","msg":"listen tcp 0.0.0.0:1080: bind: An attempt was made to access a socket in a way forbidden by its access permissions.","time":"2024-06-07T00:54:57.891+08:00"} HOT 1
- 有个问题想请教一下大佬,gost怎么在C#中直接调用? HOT 1
- 服务端配置CA后,客户端无需配置证书即可代理,存在安全风险
- 414 URI Too Long in telegram-desktop HOT 1
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 gost.