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

Multi tool use
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;
}
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
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.
add a comment
|
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
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.
add a comment
|
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
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
linux iptables syntax parrotsec
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.
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.
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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
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.
add a comment
|
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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.
add a comment
|
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
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.
add a comment
|
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
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
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.
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.
add a comment
|
add a comment
|
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Mbr,lI4sLWNhGGLg0G 2TdEwbvTn JE8Ji udR3Ij c8OCI9K,KzU,eP,vD7nST,1ylMXqUb eeACkYpJqXoa