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

Add IPv6 support to qos.sh #9552

Merged
merged 1 commit into from
Jan 19, 2017
Merged

Add IPv6 support to qos.sh #9552

merged 1 commit into from
Jan 19, 2017

Conversation

jamesmacwhite
Copy link
Contributor

Adds support for dual-stack Bitcoin coin nodes who might want to limit v6 traffic as well, if they are allowing incoming connections on both v4 and v6.

It looks like tc doesn't work using the same prio value as v4, so it has to be different, hence a different mark value for v6.

I have amended $LOCALNET to be $LOCALNET_V4 and LOCALNET_V6 respectively. The v6 stuff will not be used if $LOCALNET_V6 is blank.

#defines the IPv4 address space for which you wish to disable rate limiting
LOCALNET_V4="192.168.0.0/16"
#defines the IPv6 address space for which you wish to disable rate limiting
LOCALNET_V6="2001:0DB8:0400:0A20::/64"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we default to fe80?

@jamesmacwhite
Copy link
Contributor Author

@TheBlueMatt Yeah good idea. I've updated LOCALNET_V6 to a link local IPv6 value as default.

@laanwj
Copy link
Member

laanwj commented Jan 19, 2017

utACK fc089ae

@laanwj laanwj merged commit fc089ae into bitcoin:master Jan 19, 2017
laanwj added a commit that referenced this pull request Jan 19, 2017
fc089ae Add IPv6 support to qos.sh (James White)
codablock pushed a commit to codablock/dash that referenced this pull request Jan 21, 2018
fc089ae Add IPv6 support to qos.sh (James White)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
fc089ae Add IPv6 support to qos.sh (James White)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants