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:
    1,341
    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. elapsed

    elapsed Registered Member

    Joined:
    Apr 5, 2004
    Posts:
    7,076
    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.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.