3 replies
by joematus
there r many free firewall avaiable which can accept/reject/deny ur selcted ports.
again it depend on ur OS
Hey,
Go into your
/etc/services
file.
Put a #
at the start of the port you like to close.
Then restart the network services
dummy@hostname:/etc$ cat /etc/services | more
# /etc/services:
# $Id: services,v 1.4 1997/05/20 19:41:21 Exp $
#
# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, most entries here have two entries
# even if the protocol doesn't support UDP operations.
# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports
# are included, only the more common ones.
tcpmux 1/tcp # TCP port service multiplexer
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
qotd 17/tcp quote
msp 18/tcp # message send protocol
msp 18/udp # message send protocol
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp 21/tcp
fsp 21/udp fspd
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp # SSH Remote Login Protocol
telnet 23/tcp
The last item is "telnet"
#telnet 23/tcp
Do the same for the prots you like to close
#69
#111
Save file.
Restart services.
Hope this helps.
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending