Skip to content

Simple tool to manipulate the Arris TG3442 router firewall

License

Notifications You must be signed in to change notification settings

DrMcCoy/tg3442_firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

tg3442_firewall README

tg3442_firewall is a small Python program that enables and disables the firewall on the Arris TG3442 DOCSIS router, by logging in through the web frontend.

tg3442_firewall is released under the terms of the 1-clause BSD license. See tg3442_firewall.py for details.

tg3442_firewall can be found on GitHub here.

Why?

For "security reasons", the Arris TG3442 DOCSIS router automatically re-enables its firewall after 24 hours. The firewall then needs to be manually disabled again and every 24 hours afterwards. This is of course tedious.

Enter this script. Since it can disable the router's firewall without human intervention, it can be used to keep the firewall permanently disabled by, for example, having cron or a similar service call it regularly.

Dependencies

BeautifulSoup binascii hashlib json os PyCryptodome (see "PyCrypto vs PyCryptodome(x)" below) re requests sys

PyCrypto vs PyCryptodome(x)

tg3442_firewall requires the AES CCM crypto mode, which is not available in the last released version of the stock PyCrypto module. Moreover, PyCrypto has been abandoned. The drop-in replacement is PyCryptodome, which contains that required AES mode.

PyCryptodome comes in two flavours: one that installs into the Crypto namespace (thus providing a drop-in replacement) and one that install into the Cryptodome namespace. The latter flavour is commonly referred to as PyCryptodomex.

Depending on your Python distribution and whether you need the orginal PyCrypto module, you may need to install either pycryptodome or pycryptodomex, via pip or an external package manager.

About

Simple tool to manipulate the Arris TG3442 router firewall

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages