4 ms·
This is a good start, netstat -an to see what ports are open, to shut down things that open ports. Turn of xinetd if it is on, etc. There was a much more comple
by ChuckMcM 13y ago
This is a good start, netstat -an to see what ports are open, to shut down things that open ports. Turn of xinetd if it is on, etc. There was a much more complete best practices document that came through here earlier.
- stollercyrus 13y agoWhich one are you referring to?
- aristidb 13y agonetstat -an shows a lot of stuff. I think here all you need is netstat -ntul (Thanks "child", I did indeed initially not have the -u there. You should.)
- txutxu 13y agoAnd then realize you left all ipv6 traffic open (?)
- nly 13y agoHaving separate iptables for IPv6 is painful. Are there any means to address this?
- txutxu 13y agoModern rule generators use to have this in account. Well, maybe you still need to maintain certain definitions separated (as far as I can see on http://www.fwbuilder.org/4.0/docs/users_guide5/working-with-objects.shtml http://www.fwbuilder.org/4.0/docs/users_guide5/working-with-...) But home made scripts and rulesets, may or may don't, depends on implementations.
- richardwhiuk 13y agoSimple. Disable IPv6 - it's probably not worth the tradeoff, and your network provider probably doesn't support it anyway.
- secure 13y agoWorst advice ever :-(. Many ISPs (and hosters) do support IPv6, and it’s worthwhile to learn a bit about it. If you are running an internet-facing server, I’d say it’s part of being a good citizen to support the latest standards. To address the parent question, the firewall rules actually need to be a bit different than for IPv4. As an example, IPv6 makes supporting ICMP (for ping and the like) mandatory. I wrote a post with a simple ip6tables setup about 4 years ago (in German, though, and there might be better posts): http://blogs.noname-ev.de/commandline-tools/archives/74-ip6tables,-grundlegendes-Setup-bei-IPv6.html http://blogs.noname-ev.de/commandline-tools/archives/74-ip6t...