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

Wondershaper on virtual NIC #98

Open
narcisgarcia opened this issue Mar 25, 2024 · 0 comments
Open

Wondershaper on virtual NIC #98

narcisgarcia opened this issue Mar 25, 2024 · 0 comments

Comments

@narcisgarcia
Copy link

Hello, and thank you for sharing Wondershaper to community.

I'm trying to split LAN-to-WAN bandwidth by throttling traffic per computer in LAN. I've tried with fireqos but it seems too complicated.
I have a single computer with Debian GNU/Linux 12 connected to Internet (eth0), and it acts as default gateway/NAT to the other computers in LAN (configured with iptables). LAN computers are physically connected to gateway's eth1.

My ISP is providing a 1000mbps connection, and I want to split this into 10mbps per computer.

Then I install wondershaper and define at /etc/network/interfaces :

iface br-pc1 inet static
bridge_ports none
bridge_fd 0
bridge_stp off
bridge_maxwait 0
address 172.16.1.1/16
up /sbin/wondershaper -a br-pc1 -d 10000 -u 10000
down /sbin/wondershaper -c -a br-pc1

iface br-pc2 inet static
bridge_ports none
bridge_fd 0
bridge_stp off
bridge_maxwait 0
address 172.16.1.2/16
up /sbin/wondershaper -a br-pc2 -d 10000 -u 10000
down /sbin/wondershaper -c -a br-pc2

iface br-pc3 inet static
bridge_ports none
bridge_fd 0
bridge_stp off
bridge_maxwait 0
address 172.16.1.3/16
up /sbin/wondershaper -a br-pc3 -d 10000 -u 10000
down /sbin/wondershaper -c -a br-pc3

I enable these virtual NICs to act as dedicated gateways:
$ sudo ifup br-pc1
$ sudo ifup br-pc2
$ sudo ifup br-pc3

I also setup LAN computers to use respectively gateways (172.16.1.1 / 172.16.1.2 / 172.16.1.3)

And I make speed tests (speedtest-cli) from them BUT I don't appreciate traffic throttle.
Do you know what I'm wrong with this? Perhaps NIC type or definition?

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

1 participant