AMP AMP
AMP
0
AMP

Port tcp/23456 already defined

I tried to add the port for the tcp connection but it says the following error.

  # semanage port -a -t http_port_t -p tcp 23456
  /usr/sbin/semanage: Port tcp/23456 already defined

How to get rid of that error???

SELinux Security Add a comment
a sample image
liam
asked Apr 17 2017

Answer

AMP
0
AMP

At first you need to check that port where it is assigned. Delete that port and retry.

For example, If 23456 is assigned to ssh then do the below command,

# semanage port -d -t ssh_port_t -p tcp 23456

And then follow your command

Add a comment
a sample image
jagannatharumugam
asked Apr 18 2017
edited Oct 05 2018
Post your Answer