On 9/16/07, <b class="gmail_sendername">NoOp</b> <<a href="mailto:glgxg@sbcglobal.net">glgxg@sbcglobal.net</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 09/16/2007 02:06 PM, Jimmy Wu wrote:<br><br>>> > Also, how do I find out what ports are open?<br>>> > I tried a netstat -l and got a lot of output (which I've attached to the<br>>> > end)
<br>>> ><br>>><br>>> sudo apt-get install nmap<br>>><br>>> sudo nmap -sV localhost<br>>><br>>> With samba running these ports will be open:<br>>><br>>> 139/tcp   open  netbios-ssn Samba smbd 
3.X (workgroup:<br>>> nameofyourworkgroup)<br>>> 445/tcp   open  netbios-ssn Samba smbd 3.X (workgroup:<br>>> nameofyourworkgroup)<br>>><br>>> You can replace localhost with an IP or domain name.
<br>>><br>>><br>>> Much thanks.  The obvious next question is how to control which ports are<br>> listening or closed.  Also, I've heard of port stealthing on certain<br>> firewall software -- does anyone know what that is?
<br>><br><br>Sudo apt-get install firestarter<br><br>Firestarter is a gui frontend for iptables with many added features, see:<br><br><a href="http://www.fs-security.com/">http://www.fs-security.com/</a><br><br><a href="http://www.fs-security.com/docs.php">
http://www.fs-security.com/docs.php</a><br><br>You can also modify your iptables w/scripts & from the command line<br>(google).<br><br>However, Ubuntu comes with nearly all ports closed. So any ports opened<br>afterwards are from your installation of the programs that use them. To
<br>close the ports either remove the programs that opened them, or read the<br>program documentation to see how to close or change the ports it uses.<br><br>I'd also very much advise purchasing a router with a built-in firewall.
<br>That, in combination with Firestarter should keep you pretty secure.<br><br><br><br><br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: 
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br>Thanks again for the responses.<br>I actually don't want to install firestarter, at least not until I have more time to play around (I've been and will be extremely busy for a while).  The last time I installed firestarter, it borked my connection to my Windows network.  There was a thread (actually multiple threads) on ubuntuforums relating to this, but none of them worked for me and I somehow screwed up DNS/name resolution while trying to fix that, and eventually I just reinstalled the system, as I couldn't afford to spend any more time trying to get it to work.  
<br>Realizing that firestarter is just a gui frontend to iptables, this time around I want to just use iptables directly, so I can immediately undo any rule that messes up my connection.<br>