PDA

View Full Version : newbie firewall concerns port 68 open



/Knoppix/Knewbie/
09-06-2003, 03:26 AM
hi just got knoppix, and need a little help getting my firewall in to stealth mode on www.grc.com
{its fine at sygate sos}
but at gibson it shows port 68 is open and port 67 is closed and all the other ports are in stealth mode..

i installed firestarter which didn't seem to do much so i then used this line

/sbin/iptables -A INPUT -p tcp --syn -j DROP

which put all but two ports in to stealth mode

any advice on how to stealth these 2 ports ??


cheers

/Knoppix/Knewbie/

Stephen
09-06-2003, 03:48 AM
but at gibson it shows port 68 is open and port 67 is closed and all the other ports are in stealth mode..

i installed firestarter which didn't seem to do much so i then used this line

/sbin/iptables -A INPUT -p tcp --syn -j DROP

which put all but two ports in to stealth mode

any advice on how to stealth these 2 ports ??


cheers

/Knoppix/Knewbie/

Try /sbin/iptables -A INPUT -p tcp --dport 68 -j DROP a good tutorial and sample script are here (http://iptables-tutorial.frozentux.net/iptables-tutorial.html) and there are a couple of other firewalls available such as Guarddog and Bastille-Linux in Debian.

Dave_Bechtel
09-06-2003, 08:59 AM
--Also try ' nmap localhost ' and ' less /etc/services ' to see which programs run on those ports. You can also use ' lsof |grep 68 ' to list open files/ports.

--I'm concerned if you disable port 68 (bootpc) your DHCP server will stop working, but I don't know that much about DHCP or firewalling.

(COMPLETE IPTABLES NEWBIE QUESTION) - After skimming thru the iptables tutorial and understanding about 2% of it, what about limiting your DROP rule to interface ppp0?


Try /sbin/iptables -A INPUT -p tcp --dport 68 -j DROP a good tutorial and sample script are here (http://iptables-tutorial.frozentux.net/iptables-tutorial.html) and there are a couple of other firewalls available such as Guarddog and Bastille-Linux in Debian.

/Knoppix/Knewbie/
09-06-2003, 11:21 AM
i have tried going to the sites you reccommend but they seem not to be functioning/

o well cheers for the advice anyway

woody

Stephen
09-06-2003, 07:24 PM
i have tried going to the sites you reccommend but they seem not to be functioning/

o well cheers for the advice anyway

woody

Here is the Guarddog (http://www.simonzone.com/software/guarddog/) and Bastille-Linux (http://www.bastille-linux.org/) web sites I just checked them and they both work from my machine another place you can try is Arno's Iptables (http://rocky.molphys.leidenuniv.nl/) which is what I use it's fairly easy to setup you only have to edit a couple of lines in the script(s) and change some permissions on the files and you are ready to use it.

Stephen
09-06-2003, 07:53 PM
(COMPLETE IPTABLES NEWBIE QUESTION) - After skimming thru the iptables tutorial and understanding about 2% of it, what about limiting your DROP rule to interface ppp0?


Try /sbin/iptables -A INPUT -p tcp --dport 68 -j DROP a good tutorial and sample script are here (http://iptables-tutorial.frozentux.net/iptables-tutorial.html) and there are a couple of other firewalls available such as Guarddog and Bastille-Linux in Debian.

Most firewalls that I have seen do that when you are setting up the rules you have your external (internet) connection which is what you would be dropping the incoming packets on you can still establish outgoing connections to get what you require from the external interface unless you go out of your way to block outgoing connections on the ports. If you have an internal interface that you are using NAT on to share the connection it is usually on a trusted internal interface so you can have access to your internal network. This is what I do with my firewall machine from the outside my computer does not exist on the internet if you scan it but on the internal side my firewall machine runs only SSH so I can get to it to check for upgrades to my Woody (actually Mini-Woody now known as Bonzai Linux (https://developer.berlios.de/projects/bonzai/)) install on it and HTTP so I can serve myself some web pages that I have.