0

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
liam
asked Apr 17 2017

Answer

0

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
jagannatharumugam
asked Apr 18 2017
edited Oct 05 2018
Post your Answer