iptables command is not accepted in parrot OSForwarding packets from loopback interface with policy-based...

Do more Americans want the Bidens investigated than Trump impeached?

What's that funny "illo" I keep hearing in Southern Spain?

Is it allowed to let the engine of an aircraft idle without a pilot in the plane. (For both helicopters and aeroplanes)

I need an automatic way of making a lot of numbered folders

Advisor asked for my entire slide presentation so she could give the presentation at an international conference

Encountering former, abusive advisor at a conference

Car as a good investment

Is there any research on the development of attacks against artificial intelligence systems?

It is poor workplace etiquette to display signs of relative "wealth" at work when others are struggling financially?

What would be the effect of a giant magical fireball burning in the ocean?

Does obfuscation give any measurable security benefit?

Why is my paper "under review" if it contains no results?

In the twin paradox does the returning twin also come back permanently length contracted flatter than the twin on earth?

Does the US require a House vote to begin an impeachment inquiry?

How do I copy an installed steam game on my PC to an external hard drive?

Making the sound of 'th' in 'with'

Direct consequences for Trump if he continues hindering impeachment investigation?

How (and if) to include name change for transgender person in genealogy?

How do I remove 'None' items from the end of a list in Python

How to find Enhantments or Artifacts that have multiple effects?

What is the gold linker?

I run daily 5kms but I cant seem to improve stamina when playing soccer

If we should encrypt the message rather than the method of transfer, why do we care about wifi security? Is this just security theatre?

When was the famous "sudo warning" introduced? Under What Background? By whom?



iptables command is not accepted in parrot OS


Forwarding packets from loopback interface with policy-based routingiptables, what is truly open?record contents of packets dropped in iptablesCan I log and drop a packet in one iptables rule?What is a chain in iptables?Changing Destination IP address using iptables and DNAT






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








0

















I created my own chain called test. I want to insert a new rule in the chain that drops all packets to an IP address at a specified port.



sudo iptables -I test -j DROP -d 130.x.y.z -dport 24 


The parrot OS VM tells me that it doesn't know the argument 24 in the above command. I have been trying this for like 2 hours and still haven't gotten anywhere.



-I inserts a rule
-j specifies the action to the packet in the rule
-d specifies the destination which should be an IP address and not a name
-dport should be the port # for which this firewall rule should act


I have tried many variations such as --destination or --destination-port



Not sure how to get it to work.










share|improve this question









New contributor



teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.































    0

















    I created my own chain called test. I want to insert a new rule in the chain that drops all packets to an IP address at a specified port.



    sudo iptables -I test -j DROP -d 130.x.y.z -dport 24 


    The parrot OS VM tells me that it doesn't know the argument 24 in the above command. I have been trying this for like 2 hours and still haven't gotten anywhere.



    -I inserts a rule
    -j specifies the action to the packet in the rule
    -d specifies the destination which should be an IP address and not a name
    -dport should be the port # for which this firewall rule should act


    I have tried many variations such as --destination or --destination-port



    Not sure how to get it to work.










    share|improve this question









    New contributor



    teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



























      0












      0








      0








      I created my own chain called test. I want to insert a new rule in the chain that drops all packets to an IP address at a specified port.



      sudo iptables -I test -j DROP -d 130.x.y.z -dport 24 


      The parrot OS VM tells me that it doesn't know the argument 24 in the above command. I have been trying this for like 2 hours and still haven't gotten anywhere.



      -I inserts a rule
      -j specifies the action to the packet in the rule
      -d specifies the destination which should be an IP address and not a name
      -dport should be the port # for which this firewall rule should act


      I have tried many variations such as --destination or --destination-port



      Not sure how to get it to work.










      share|improve this question









      New contributor



      teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I created my own chain called test. I want to insert a new rule in the chain that drops all packets to an IP address at a specified port.



      sudo iptables -I test -j DROP -d 130.x.y.z -dport 24 


      The parrot OS VM tells me that it doesn't know the argument 24 in the above command. I have been trying this for like 2 hours and still haven't gotten anywhere.



      -I inserts a rule
      -j specifies the action to the packet in the rule
      -d specifies the destination which should be an IP address and not a name
      -dport should be the port # for which this firewall rule should act


      I have tried many variations such as --destination or --destination-port



      Not sure how to get it to work.







      linux iptables syntax parrotsec






      share|improve this question









      New contributor



      teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor



      teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited 5 mins ago









      mnille

      4234 silver badges12 bronze badges




      4234 silver badges12 bronze badges






      New contributor



      teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 35 mins ago









      teaNcodeteaNcode

      11 bronze badge




      11 bronze badge




      New contributor



      teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      teaNcode is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          1 Answer
          1






          active

          oldest

          votes


















          0


















          The problem is that your syntax is incorrect, try the following:



          To block all traffic



          iptables -I test -j DROP -d 130.x.y.z -p all


          To block a specific port like ssh(22)



          iptables -I test -j DROP -d 130.x.y.z -p tcp --dport 22


          where -p is the protocol tcp or udp and --dport is the destination port





          share









          New contributor



          Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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/4.0/"u003ecc by-sa 4.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
            });


            }
            });







            teaNcode is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded
















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f546050%2fiptables-command-is-not-accepted-in-parrot-os%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


















            The problem is that your syntax is incorrect, try the following:



            To block all traffic



            iptables -I test -j DROP -d 130.x.y.z -p all


            To block a specific port like ssh(22)



            iptables -I test -j DROP -d 130.x.y.z -p tcp --dport 22


            where -p is the protocol tcp or udp and --dport is the destination port





            share









            New contributor



            Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.


























              0


















              The problem is that your syntax is incorrect, try the following:



              To block all traffic



              iptables -I test -j DROP -d 130.x.y.z -p all


              To block a specific port like ssh(22)



              iptables -I test -j DROP -d 130.x.y.z -p tcp --dport 22


              where -p is the protocol tcp or udp and --dport is the destination port





              share









              New contributor



              Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                0










                0









                The problem is that your syntax is incorrect, try the following:



                To block all traffic



                iptables -I test -j DROP -d 130.x.y.z -p all


                To block a specific port like ssh(22)



                iptables -I test -j DROP -d 130.x.y.z -p tcp --dport 22


                where -p is the protocol tcp or udp and --dport is the destination port





                share









                New contributor



                Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                The problem is that your syntax is incorrect, try the following:



                To block all traffic



                iptables -I test -j DROP -d 130.x.y.z -p all


                To block a specific port like ssh(22)



                iptables -I test -j DROP -d 130.x.y.z -p tcp --dport 22


                where -p is the protocol tcp or udp and --dport is the destination port






                share









                New contributor



                Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.







                share



                share






                New contributor



                Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                answered 33 secs ago









                Heysus EscobarHeysus Escobar

                1




                1




                New contributor



                Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




                New contributor




                Heysus Escobar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




























                    teaNcode is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded

















                    teaNcode is a new contributor. Be nice, and check out our Code of Conduct.













                    teaNcode is a new contributor. Be nice, and check out our Code of Conduct.












                    teaNcode is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f546050%2fiptables-command-is-not-accepted-in-parrot-os%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m