LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2015, 08:06 AM   #1
COFFEE BOY
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Rep: Reputation: Disabled
Wink How do you block ports


How do you block ports
 
Old 11-22-2015, 08:30 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,648

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
It depends...

Under what conditions, or for what purpose?

Why? What is your situation or issue that you want to block a port?

Please say this is not homework.
 
Old 11-22-2015, 03:51 PM   #3
normanlinux
Member
 
Registered: Apr 2013
Distribution: Arch and SuSE
Posts: 135

Rep: Reputation: Disabled
Use your firewall

See title
 
Old 11-22-2015, 06:49 PM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by COFFEE BOY View Post
How do you block ports
With a little more information about your problem, we would be able to give a more precise answer. Here is what I can say:

Some newer distro use a command-line tool named firewall-cmd.
Most distros have a tool names iptables.
Distros with a GUI often have a GUI tool for firewall configuration.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to block all ports and then selectively enable ports? Key-authentication 22 greenace92 Linux - Server 2 11-11-2015 10:09 AM
Need to block all ports and open only select ports on Ubuntu 7.1 Mr.J Linux - Networking 1 11-18-2008 03:45 AM
how to block torrent ports? LinuxNewbie999 Linux - Networking 1 09-04-2007 09:30 AM
Ports to Block chrisfirestar Linux - General 1 10-28-2003 04:27 AM
how to block ports furquan Linux - Security 9 02-21-2002 07:23 AM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration