What's new

Is my IP tables rule to drop all eth0 to router/8 ip necessary?

  • Thread starter Deleted member 27741
  • Start date
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

D

Deleted member 27741

Guest
Hey all- I have an iptables rule that blocks all traffic from input eth0 to 10.0.0.0/8 (my router is allocated to that network).

It blocks a lot of packets-
packets- 27819 DROP all -- eth0 * 10.0.0.0/8 0.0.0.0/0

Everything works fine, perfectly in fact with the rule so it does not seem to do any harm that I know of. Is this rule doing anything or am I just blocking some form of communication between my modem and router?
 
It depends where in the INPUT chain you have put that rule. But as the last rule in the chain drops everything from all interfaces anyway it would seem pointless adding this additional rule.
 
If you truly are blocking everything, then you'll end up blocking communications between your ISP and your router, such as DHCP requests.

The default policy already takes care of blocking unsolicited traffic.
 
Ha! I do think the rule is kind of pointless... I think I added it when I was attempting to "harden" my iptables rules. I will change it to logdrop and see where the packets are coming from just out of curiosity.
 
The packets are coming from
SRC=10.15.192.1 DST=255.255.255.255
My local network is not on 10.15.192.1 and I can't find anyting with that ip address- is that weird?
 
Thanks for your wisdom guys! So this broadcast traffic on my ISP's local network- it is something that can be blocked without consequence but also useless to block, correct?
 
If it's related to ports 67 or 68 then you definitely do not want to block that - that's DHCP.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top