How to fix my firewall iptables in centos?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












My task from uni is make me to install centoc and now im having problem with firewall iptables



here it says :
enter image description here



and here is the iptables
enter image description here



what should i do ?







share|improve this question






















  • What are you trying to achieve? When does the error in the first image appear?
    – SabreWolfy
    Feb 27 at 5:37










  • Please don't use screenshots when you can copy/paste text. Search engines can't access screenshots.
    – garethTheRed
    Feb 27 at 7:28














up vote
0
down vote

favorite












My task from uni is make me to install centoc and now im having problem with firewall iptables



here it says :
enter image description here



and here is the iptables
enter image description here



what should i do ?







share|improve this question






















  • What are you trying to achieve? When does the error in the first image appear?
    – SabreWolfy
    Feb 27 at 5:37










  • Please don't use screenshots when you can copy/paste text. Search engines can't access screenshots.
    – garethTheRed
    Feb 27 at 7:28












up vote
0
down vote

favorite









up vote
0
down vote

favorite











My task from uni is make me to install centoc and now im having problem with firewall iptables



here it says :
enter image description here



and here is the iptables
enter image description here



what should i do ?







share|improve this question














My task from uni is make me to install centoc and now im having problem with firewall iptables



here it says :
enter image description here



and here is the iptables
enter image description here



what should i do ?









share|improve this question













share|improve this question




share|improve this question








edited Aug 21 at 0:38









Rui F Ribeiro

34.9k1269113




34.9k1269113










asked Feb 27 at 4:39









Dinda Aulia

1




1











  • What are you trying to achieve? When does the error in the first image appear?
    – SabreWolfy
    Feb 27 at 5:37










  • Please don't use screenshots when you can copy/paste text. Search engines can't access screenshots.
    – garethTheRed
    Feb 27 at 7:28
















  • What are you trying to achieve? When does the error in the first image appear?
    – SabreWolfy
    Feb 27 at 5:37










  • Please don't use screenshots when you can copy/paste text. Search engines can't access screenshots.
    – garethTheRed
    Feb 27 at 7:28















What are you trying to achieve? When does the error in the first image appear?
– SabreWolfy
Feb 27 at 5:37




What are you trying to achieve? When does the error in the first image appear?
– SabreWolfy
Feb 27 at 5:37












Please don't use screenshots when you can copy/paste text. Search engines can't access screenshots.
– garethTheRed
Feb 27 at 7:28




Please don't use screenshots when you can copy/paste text. Search engines can't access screenshots.
– garethTheRed
Feb 27 at 7:28










1 Answer
1






active

oldest

votes

















up vote
1
down vote













You used a capital -P on the 11th line (error message on the first screenshot):



-A INPUT -m state --state NEW -m tcp -P tcp --dport 50000 -j ACCEPT
^^


Replace the -P with -p and it should work.






share|improve this answer




















  • oh my god, thankyou so much. now i finally know the reasons.
    – Dinda Aulia
    Feb 27 at 7:26










  • BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
    – ErikF
    Mar 1 at 9:02










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426850%2fhow-to-fix-my-firewall-iptables-in-centos%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













You used a capital -P on the 11th line (error message on the first screenshot):



-A INPUT -m state --state NEW -m tcp -P tcp --dport 50000 -j ACCEPT
^^


Replace the -P with -p and it should work.






share|improve this answer




















  • oh my god, thankyou so much. now i finally know the reasons.
    – Dinda Aulia
    Feb 27 at 7:26










  • BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
    – ErikF
    Mar 1 at 9:02














up vote
1
down vote













You used a capital -P on the 11th line (error message on the first screenshot):



-A INPUT -m state --state NEW -m tcp -P tcp --dport 50000 -j ACCEPT
^^


Replace the -P with -p and it should work.






share|improve this answer




















  • oh my god, thankyou so much. now i finally know the reasons.
    – Dinda Aulia
    Feb 27 at 7:26










  • BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
    – ErikF
    Mar 1 at 9:02












up vote
1
down vote










up vote
1
down vote









You used a capital -P on the 11th line (error message on the first screenshot):



-A INPUT -m state --state NEW -m tcp -P tcp --dport 50000 -j ACCEPT
^^


Replace the -P with -p and it should work.






share|improve this answer












You used a capital -P on the 11th line (error message on the first screenshot):



-A INPUT -m state --state NEW -m tcp -P tcp --dport 50000 -j ACCEPT
^^


Replace the -P with -p and it should work.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 27 at 5:06









ErikF

2,7111413




2,7111413











  • oh my god, thankyou so much. now i finally know the reasons.
    – Dinda Aulia
    Feb 27 at 7:26










  • BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
    – ErikF
    Mar 1 at 9:02
















  • oh my god, thankyou so much. now i finally know the reasons.
    – Dinda Aulia
    Feb 27 at 7:26










  • BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
    – ErikF
    Mar 1 at 9:02















oh my god, thankyou so much. now i finally know the reasons.
– Dinda Aulia
Feb 27 at 7:26




oh my god, thankyou so much. now i finally know the reasons.
– Dinda Aulia
Feb 27 at 7:26












BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
– ErikF
Mar 1 at 9:02




BTW, you can replace lines 11-13 with a single line by replacing each --dport with a combined --dport 50000:50002.
– ErikF
Mar 1 at 9:02












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426850%2fhow-to-fix-my-firewall-iptables-in-centos%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?