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
change it to
next time you start x the 6000 won't be open.
to close ports 37 and 113,
and comment out the lines:
time stream tcp nowait root internal
time dgram udp wait root internal
auth stream tcp wait root /usr/sbin/in.identd in.identd
make them look like this:
#time stream tcp nowait root internal
#time dgram udp wait root internal
#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:
. /etc/rc.d/rc.firewall start/stop
If you are trying to close all the unneeded open ports, u may also wanna try a UDP port scan