Block Ports On LInux?

Discussion in 'all things UNIX' started by lucygrl, Mar 3, 2014.

Thread Status:
Not open for further replies.
  1. lucygrl

    lucygrl Registered Member

    Joined:
    Nov 6, 2013
    Posts:
    202
    Hello, is there a way to block certain ports on Linux?
     
  2. fblais

    fblais Registered Member

    Joined:
    Jul 31, 2008
    Posts:
    836
    Location:
    Québec, Canada
    With the firewall?
    By default, UFW will block everything inbound, and allow everything outbound.
    As you already know you can use GUFW to customize it. (GUFW is just a GUI front-end for UFW)
     
  3. funkydude

    funkydude Registered Member

    Joined:
    Apr 5, 2004
    Posts:
    6,852
    All ports are closed unless you're running a program that's opening them, in which case, it probably needs them. You can use UFW at stated above to create stricter rules.
     
Loading...
Thread Status:
Not open for further replies.