Greetings @royki @akshayyw
I am performing the task “Linux Network Services” and want to start firewalld service but I am unable to start.
And the task says you need to cross check via jump host!
Why are you restarting in jump server ?
Did you find issues in appservers ?
You need to do some troubleshooting in those app servers. Check if http server is up n running properly on port 5003
and then apply the following rules to app servers
iptables -I INPUT -m state --state NEW -p tcp --dport 5003 -j ACCEPT
iptables-save
iptables -L -n -v
From Jump server you need to follow the telnet command
telnet stapp01 5003
telnet stapp02 5003
telnet stapp03 5003
Yes, @royki, I’ve killed the process and restarted the service of httpd.
Does
“sudo firewall-cmd --zone=public --add-port=5003/tcp --permanent”
is same as
“iptables -I INPUT -m state --state NEW -p tcp --dport 5003 -j ACCEPT” ??
Well Firewalld and Iptables are used for same purpose but they don’t work in same way.
Need to look into deeply what are main technical difference and given those 2 rules apparently looks like same but not exactly I guess. To do the same I need to check.
PS: One more fact, in case of Kodekloud task, we might solve the same problem in different ways or using other tools but the task might fail as it requires what is asked in the question. !!! (From my understanding)
Nice.
Did you apply firewalld
or iptables
?
Let me know if you did using firewalld
, what is the command?
I’ve used iptables instead of firewalld.
If you need to take reference head up to