| Linode Forum https://forum.linode.com/ |
|
| iptables not properly denying [FIXED] https://forum.linode.com/viewtopic.php?f=19&t=5849 |
Page 1 of 1 |
| Author: | tophatstuff [ Wed Jul 28, 2010 4:18 am ] |
| Post subject: | iptables not properly denying [FIXED] |
Hello, I have a problem that I can't get my iptables rules to properly block ports. From my local machine, running "nmap -r -v -O -PN 123.45.67.89" shows thousands of open ports. In /etc/iptables.up.rules, I have: Code: *filter I use "sudo iptables-restore < /etc/iptables.up.rules", and iptables -L shows: Code: Chain INPUT (policy ACCEPT) Any ideas? Thanks very much!!! |
|
| Author: | BrianJM [ Wed Jul 28, 2010 10:06 am ] |
| Post subject: | |
Set the default rules, as desired: Code: iptables -P INPUT DROP I think you your case, you just want to default the INPUT policy to DROP. With your current rules, if you DROP all 3 noted above, you will find yourself without any usable services. |
|
| Author: | tophatstuff [ Wed Jul 28, 2010 10:57 am ] |
| Post subject: | |
Thanks for the suggestion, I tried that, giving: rules: Code: filter Code: ben@sigma:~$ sudo iptables -L However, running from my laptop, I still get all these open ports: Code: sudo nmap -r -v -O -PN 12.34.56.78 |
|
| Author: | tophatstuff [ Wed Jul 28, 2010 11:54 am ] |
| Post subject: | |
FIXED: The version of nmap I am using has a bug! I just tried with google and got the same result. How embarrassing! |
|
| Author: | rsk [ Wed Jul 28, 2010 2:32 pm ] |
| Post subject: | |
It's not nmap's fault, it's your ISP doing some transparent filtering/proxying/redirection. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|