Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working in router wan side ip address #20

Open
ivanhxq opened this issue Oct 26, 2020 · 2 comments
Open

not working in router wan side ip address #20

ivanhxq opened this issue Oct 26, 2020 · 2 comments

Comments

@ivanhxq
Copy link

ivanhxq commented Oct 26, 2020

I test it in my router ,linux kernel is 3.10.14.it works fine if i use lan side ip address as src ip or dest ip.but it not work if i use wan side ip addess.the Network topology diagram just like this:

PC(192.168.168.1.2)---------lan-|Router|-wan----------Internet server(172.16.1.2)
lan side wan side

i need to make wan side rate controll working,how can i do?thanks!

@ivanhxq
Copy link
Author

ivanhxq commented Oct 27, 2020

I found the problem,it is the control rate issue.
for exampe,when i want to control down rate in 1Mbps,
sometime it worked when set:echo +10.0.0.0/24 1000 000 > /proc/net/ipt_ratelimit/name0,
but sometime it worked when set : echo +10.0.0.0/24 100 000 > /proc/net/ipt_ratelimit/name0

i am confuse how to calculate control rate ?

@aabc
Copy link
Owner

aabc commented Oct 27, 2020

Hi. First of all, you should not put a space inside of rate number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants