enable port 8043

dhikra.marghli89

New Member
Joined
Nov 8, 2021
Messages
20
Reaction score
0
Credits
166
How i can enable port 8043 in Serveur cisco prime network 5.2 installer sur redhat linux !!





which command enbale in Linux !!



i wait a reply from expert cisco prime network and expert linux and help me .



Best regards
 


Wait your turn and someone will be along sooner or later.

Give us more info - what Distro for starters?

Chris Turner
wizardfromoz

and don't multiple post everywhere. Thank you.
 
Thanks ,Ok i wait ...

Just what's command in redhat linux to enable 8043 in Serveur cisco prime network 5.2 ...

Best regards
 
For Red Hat 7 or 8, the command is..
firewall-cmd --add-port=8043/tcp --permanent
firewalll-cmd --reload
 
thanks to reply me
it is Red Hat Entreprise 6.9
so what's command for Red Hat Entreprise 6.9 to enable enable 8043 in Serveur cisco prime network 5.2
i wait you answer
thanks in adv
 
For Red Hat 5 and 6.

iptables -A INPUT -p tcp --dport 8043 -j ACCEPT
 
RHEL6 uses iptables, you could have easily done a search using your favorite search engine to look that up. Add the following line to /etc/sysconfig/iptables and then restart iptables:
Code:
-I INPUT -p tcp --dport 8043 -j ACCEPT
 
Thanks to reply me ...
I Add the following line to /etc/sysconfig/iptables but message error : permission denied

so please how i can get permission that allow put this command ??

i wait your reply and your help

thanks in adv
 

Attachments

  • thumbnail_image001.png
    thumbnail_image001.png
    4 KB · Views: 232
You need to edit the file with a text edit such as vim or nano, then you can edit the file.
 
Thanks to help me
I follow the steps step by step but I received this error message ... you check the screenshot...

so can't to access via 8043 !!!

so i need what's other check can i use to allow port 8043 work !!!

i wait your reply and thanks
 

Attachments

  • resultat.png
    resultat.png
    12.9 KB · Views: 251
Share the content of /etc/sysconfig/iptables as text not as a screenshot.
 
ok i give steps step by step :

[root@cpnet etc]# vim sysconfig/iptables

E576: viminfo: Missing '>' in line: s

E576: viminfo: Missing '>' in line: ^I"^I1^I0

Press ENTER or type command to continue

# Generated by iptables-save v1.4.7 on Mon Oct 25 12:32:13 2021

*filter

:INPUT ACCEPT [2930774:845104971]

:FORWARD ACCEPT [0:0]

:OUTPUT ACCEPT [2706414:470741316]

-A INPUT -p tcp -m tcp --dport 8043 -j ACCEPT

COMMIT

-I INPUT -p tcp --dport 8043 -j ACCEPT

# Completed on Mon Oct 25 12:32:13 2021

# Generated by iptables-save v1.4.7 on Mon Oct 25 12:32:13 2021

*nat

:pREROUTING ACCEPT [1461:244190]

:pOSTROUTING ACCEPT [3112148:194695469]

:OUTPUT ACCEPT [3112148:194695469]

-A PREROUTING -p udp -m udp --dport 162 -j REDIRECT --to-ports 1162

-A PREROUTING -p udp -m udp --dport 514 -j REDIRECT --to-ports 1514

-A PREROUTING -p udp -m udp --dport 69 -j REDIRECT --to-ports 1069

-A OUTPUT -d 127.0.0.1/32 -p udp -m udp --dport 162 -j REDIRECT --to-ports 1162

-A OUTPUT -d 127.0.0.1/32 -p udp -m udp --dport 162 -j REDIRECT --to-ports 1162

COMMIT

# Completed on Mon Oct 25 12:32:13 2021


////////////////////////////////////////////////////////////////

[root@cpnet ~]# service iptables restart

iptables: Setting chains to policy ACCEPT: mangle filter [ OK ]

iptables: Flushing firewall rules: [ OK ]

iptables: Unloading modules: [ OK ]

iptables: Applying firewall rules: iptables-restore: line 8 failed

[FAILED]
//////////////////////////////////////////////////////////////////////////////////////

so I can't to access via 8043 !!!

so i need what's other check can i use to allow port 8043 work !!!

i wait your reply and thanks
 
Try changing this line.
Code:
-I INPUT -p tcp --dport 8043 -j ACCEPT
To this.
Code:
-A INPUT -p tcp --dport 8043 -j ACCEPT
What does /etc/sysconfig/iptables-restore look like?
 
[root@cpnet ~]# service iptables restart
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
[root@cpnet ~]# cd
[root@cpnet ~]# cd /etc
[root@cpnet etc]# sysconfig/iptables-restore
-bash: sysconfig/iptables-restore: No such file or directory

[root@cpnet etc]#

But up now ...i have not access via 8043 !!

so please ...what"s the next step to resolve !!

iwait your answer and your help

thanks in adv
 
What's the output of the following.
Code:
iptables-save | grep 8043
 
That shows that the port is open in the firewall. Can you share the output of the following.
Code:
netstat -tulpn | grep 8043
 
[root@cpnet ~]# netstat -tulpn | grep 8043
[root@cpnet ~]#

nothing show

so what's the next step for this problem
thanks in adv
 
The port 8043 is open in the firewall, the problem is you have nothing running on that port. The output of that should look like something like this.
Code:
[root@rhel8 ~]# netstat -tulpn | grep 8043
tcp6       0      0 :::8043                 :::*                    LISTEN      1449/httpd
Try connecting to localhost to 8043, you will get a connection refused as well.
Code:
telnet localhost 8043
You need to start whatever service is supposed to run on that port first before you can connect to it.
 
Thanks to reply

but i want to know what's service exact per example !!! and what's the command can allow to start a service ??
i wait your reply and thanks in adv
 

Staff online


Top