Replacing port 80 and updating the firewall?


I just installed RedHat 9 on a PC and:
* Enabled Apache on it.
* Tested it and it works.
* Changed the Listen port from 80 to nn.

Now how do I change the firewall rules so that:
a. It allows http traffic on port nn
b. Blocks port 80.



Comments

  • :
    : I just installed RedHat 9 on a PC and:
    : * Enabled Apache on it.
    : * Tested it and it works.
    : * Changed the Listen port from 80 to nn.
    :
    : Now how do I change the firewall rules so that:
    : a. It allows http traffic on port nn
    : b. Blocks port 80.
    :
    :
    add an ACCEPT rule to input for tcp port nn and a REJECT or DROP rule for 80 (or just remove the ACCEEPT for 80 if you have a default REJECT/DROP policy for input)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion