Tricksy ISPs and their transparent rewriting ;)

Perhaps it's worth doing a quick verification on the file in the script before replacing it as this kind of thing will bring the whole network down if it happens, and the problem really isn't very discoverable to users.

Given the format of this file I think a simple grep is sufficient:

grep -v '[1-2]\?[0-9]\?[0-9]\.[1-2]\?[0-9]\?[0-9]\.[1-2]\?[0-9]\?[0-9]\.[1-2]\?[0-9]\?[0-9]\/[0-9][0-9]\?' bogon-bn-nonagg.txt

If this is a good idea I can probably construct a patch.

Keenan

Quoting "Joseph L. Casale" <[email protected]>:

Check out the rc_updatebogons.sh script in /etc.  That's how the file is
updated.

I kind of figured it updated on its own... Given that the WAN mac is not
rewritten until the config is restored, I figured that's why some of the
isp redirection html was pushed into the file.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Commercial support available - https://portal.pfsense.org





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Commercial support available - https://portal.pfsense.org

Reply via email to