Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-19-2004, 02:25 PM   #1
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
blocking port 111


-A input -p tcp 111 -j REJECT -l

set up the firewall on port 111....or do i have to make sure all ranges source and destination is covered?

-A input -p tcp -s 0/0 -d 0/0 111 -j REJECT -l
(i think this is the syntax)

ultimately i'm trying to setup a firewall around port 111 (sunrpc) any help? thnx
Old 04-19-2004, 02:56 PM   #2
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
Why are you doing it like this? If you are serious about a firewall you should close off everything and then open up the ports you need.

The syntax is more like:

iptables -A INPUT -p tcp --dport 111 -j REJECT


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
portsentry 111 port not binding saag Linux - Security 4 03-19-2004 10:40 AM
port 111 - firewall question taz76 Linux - Networking 5 04-04-2003 04:04 PM
sunrpc port 111 MrJoshua Linux - General 4 12-20-2002 04:47 AM
scan port at 111 is open.... Qebex Linux - Security 5 09-21-2002 07:29 PM
Closing port 111 psyklops Linux - General 3 05-01-2002 01:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:26 AM.

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