Quote:
Originally posted by jasone
Haha! I see that slackware is a bit different than debian. I don't have any of those files. I'll ask in the slack forum. Thanks anyway!
|
OK. to close port 6000 open /usr/X11/bin/startx
You'll find a line
serverargs=""
change it to
Code:
serverargs="-nolisten tcp"
next time you start x the 6000 won't be open.
to close ports 37 and 113,
open /etc/inetd.conf
and comment out the lines:
Code:
time stream tcp nowait root internal
time dgram udp wait root internal
and
Code:
auth stream tcp wait root /usr/sbin/in.identd in.identd
make them look like this:
Code:
#time stream tcp nowait root internal
#time dgram udp wait root internal
and
Code:
#auth stream tcp wait root /usr/sbin/in.identd in.identd
and send a SIGHUP signal to inetd:
If that doesn't work, go to init 1 and then back to init 3
or reboot(this one always works
)
You need the ipp for CUPS. It will reject any connection outside localhost by default anyway.
If you want to have a firewall and you are using the 2.4 kernel series go to
http://easyfwgen.morizot.net/gen/index.php
and create a iptable script. save it as /etc/rc.d/rc.firewall and give execute permissions to the file. It will load up automatically next time you reboot.
To load/unload it manually try:
Code:
. /etc/rc.d/rc.firewall start/stop
*EDIT*
If you are trying to close all the unneeded open ports, u may also wanna try a UDP port scan