{"id":18557536,"url":"https://github.com/brenns10/pywall","last_synced_at":"2025-04-10T01:32:18.445Z","repository":{"id":29169988,"uuid":"32700565","full_name":"brenns10/pywall","owner":"brenns10","description":"Python firewall.","archived":false,"fork":false,"pushed_at":"2021-02-18T06:43:19.000Z","size":159,"stargazers_count":36,"open_issues_count":1,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T23:46:57.880Z","etag":null,"topics":["connection-tracking","firewall","iptables","linux","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brenns10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-22T23:13:58.000Z","updated_at":"2024-07-05T19:19:44.000Z","dependencies_parsed_at":"2022-08-17T19:15:33.683Z","dependency_job_id":null,"html_url":"https://github.com/brenns10/pywall","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Fpywall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Fpywall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Fpywall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Fpywall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brenns10","download_url":"https://codeload.github.com/brenns10/pywall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140692,"owners_count":21054337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connection-tracking","firewall","iptables","linux","python"],"created_at":"2024-11-06T21:37:21.955Z","updated_at":"2025-04-10T01:32:13.435Z","avatar_url":"https://github.com/brenns10.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PyWall\n======\n\nA Python firewall: Because slow networks are secure networks.\n\n\nInstallation\n------------\n\nThis section assumes that you are installing this program on Ubuntu 14.04 LTS.\nThis firewall should work on other Linux systems, but safety not guaranteed.\n\nFirst, install the required packages. On Ubuntu, these are `iptables`, `python`,\n`python-pip`, `build-essential`, `python-dev`, and\n`libnetfilter-queue-dev`. Next, use `pip2` to install the project dependencies,\nwhich can be found in `requirements.txt`.\n\nThe commands for both these operations are:\n\n    sudo apt-get install python python-pip iptables build-essential python-dev libnetfilter-queue-dev\n    pip install --user -r requirements.txt\n\n\nRunning\n-------\n\nThe main file is `main.py`, which needs to be run as root to modify IPTables.\nAdditionally, main needs to receive a JSON configuration file as its first\nargument. If running with the example configuration, the command is:\n\n`sudo python2 main.py examples/example.json`\n\nTo stop PyWall, press Control-C.\n\n\nTroubleshooting\n---------------\n\nPyWall should undo its changes to IPTables after exiting. However, if you are\nunable to access the internet after exiting PyWall, view existing\nIPTables rules with `sudo iptables -nL`. If a rule with the target chain\n`NFQueue` lingers, delete it with\n`sudo iptables -D INPUT -j NFQUEUE --queue-num [undesired-queue-number]`.\n\nFor INPUT rules, the command is `sudo iptables -D INPUT -j NFQUEUE --queue-num 1`.\nFor OUTPUT rules, the command is `sudo iptables -D OUTPUT -j NFQUEUE --queue-num 2`.\n\nIn case PyWall gives a message that another application has the xtables lock,\nControl-C the server, ensure that all the IPTables rules are cleared, and\nrestart PyWall.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenns10%2Fpywall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrenns10%2Fpywall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenns10%2Fpywall/lists"}