How to limit outgoing traffic per IP Address using Linux TCHow can I do traffic shaping in Linux by IP?Linux...

How exactly does Hawking radiation decrease the mass of black holes?

A Paper Record is What I Hamper

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?

What to do with someone that cheated their way through university and a PhD program?

Is Diceware more secure than a long passphrase?

Is there a word for the censored part of a video?

Restricting the options of a lookup field, based on the value of another lookup field?

Why do real positive eigenvalues result in an unstable system? What about eigenvalues between 0 and 1? or 1?

Will I lose my paid in full property

Multiple options vs single option UI

What is purpose of DB Browser(dbbrowser.aspx) under admin tool?

Creating a chemical industry from a medieval tech level without petroleum

Co-worker works way more than he should

Does a large simulator bay have standard public address announcements?

Work requires me to come in early to start computer but wont let me clock in to get paid for it

Can I criticise the more senior developers around me for not writing clean code?

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?

Contradiction proof for inequality of P and NP?

How to pronounce 'c++' in Spanish

Check if a string is entirely made of the same substring

Retract an already submitted recommendation letter (written for an undergrad student)

A faster way to compute the largest prime factor



How to limit outgoing traffic per IP Address using Linux TC


How can I do traffic shaping in Linux by IP?Linux router with diffent gateways for incomming and outgoing connectionsUsing iptables to forward traffic to a single IP addressLimit incoming and outgoing bandwidth and latency in linuxIs there a way to limit bandwidth per ip using HTB + a CIDR range in Linux?Traffic shaping linux shell users on a per-user basisHow to add latency and bandwidth-limit interface using tc?Limit bandwidth per connection in LinuxBandwidth limit for multiple network destinations with a default (slow) match with Linux TCHow to limit speed for every device per MAC address in the gateway via Linux command “tc”?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I want to limit outgoing traffic per IP address. For example I have a network interface eth0, having 1Gbps of bandwidth.



I want to limit the whole network interface to 1Mbps each destination IP Address.



For example 1Mbps for 192.168.1.1 and 1Mbps for 192.168.1.2



Currently I am using wondershaper using this command:



wondershaper eth0 1024[outbound traffic] 1024000[inbound traffic]


But this is limiting the whole network interface and there won't be seperated traffic for each IP address.










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    0















    I want to limit outgoing traffic per IP address. For example I have a network interface eth0, having 1Gbps of bandwidth.



    I want to limit the whole network interface to 1Mbps each destination IP Address.



    For example 1Mbps for 192.168.1.1 and 1Mbps for 192.168.1.2



    Currently I am using wondershaper using this command:



    wondershaper eth0 1024[outbound traffic] 1024000[inbound traffic]


    But this is limiting the whole network interface and there won't be seperated traffic for each IP address.










    share|improve this question
















    bumped to the homepage by Community 6 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I want to limit outgoing traffic per IP address. For example I have a network interface eth0, having 1Gbps of bandwidth.



      I want to limit the whole network interface to 1Mbps each destination IP Address.



      For example 1Mbps for 192.168.1.1 and 1Mbps for 192.168.1.2



      Currently I am using wondershaper using this command:



      wondershaper eth0 1024[outbound traffic] 1024000[inbound traffic]


      But this is limiting the whole network interface and there won't be seperated traffic for each IP address.










      share|improve this question
















      I want to limit outgoing traffic per IP address. For example I have a network interface eth0, having 1Gbps of bandwidth.



      I want to limit the whole network interface to 1Mbps each destination IP Address.



      For example 1Mbps for 192.168.1.1 and 1Mbps for 192.168.1.2



      Currently I am using wondershaper using this command:



      wondershaper eth0 1024[outbound traffic] 1024000[inbound traffic]


      But this is limiting the whole network interface and there won't be seperated traffic for each IP address.







      linux networking tc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 16 '15 at 20:27









      Andrew Schulman

      6,437102241




      6,437102241










      asked Apr 16 '15 at 18:39









      Hamid SoltaniHamid Soltani

      111




      111





      bumped to the homepage by Community 6 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 6 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You might need iptables' CLASSIFY. See
          http://www.fyzix.net/index.php?title=Traffic_shaping_with_tc_and_iptables






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f683299%2fhow-to-limit-outgoing-traffic-per-ip-address-using-linux-tc%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You might need iptables' CLASSIFY. See
            http://www.fyzix.net/index.php?title=Traffic_shaping_with_tc_and_iptables






            share|improve this answer




























              0














              You might need iptables' CLASSIFY. See
              http://www.fyzix.net/index.php?title=Traffic_shaping_with_tc_and_iptables






              share|improve this answer


























                0












                0








                0







                You might need iptables' CLASSIFY. See
                http://www.fyzix.net/index.php?title=Traffic_shaping_with_tc_and_iptables






                share|improve this answer













                You might need iptables' CLASSIFY. See
                http://www.fyzix.net/index.php?title=Traffic_shaping_with_tc_and_iptables







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 16 '15 at 20:27









                user993553user993553

                42238




                42238






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f683299%2fhow-to-limit-outgoing-traffic-per-ip-address-using-linux-tc%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Маріан Котлеба Зміст Життєпис | Політичні погляди |...