Comments (4)
I am finally able to use pf to redirect traffic transparently to mitmproxy. MacOS has screen
so that command probably doesn't need to change. Are reset_nat
and setup_nat
the only things that must be changed then?
from chomper.
Awesome! I think a few other things would have to change:
- The Makefile
init
installation rule would need to be updated. I doubt that the automated certificate installation will work, since certificates are probably stored in different places in OSX. I think that the ip forwarding configuration also needs to be updated. As a note, if you want to work on modifying theinit
rule for OSX, you should look at the Makefile in the iss26 branch rather than on master. - I'm not sure if the
lock
rule will work, simply because I'm not sure whether you can create a supplementary sudoers file in the same way that you can in Linux. - In ./chomper/block.py, I interact with the root crontab through the
set_block_length
function. This is important for lifting blocks at the desired time. I don't know if cron works properly on OSX.
from chomper.
I've largely finished automating installation on Debian-based Linuxes, and I've cleared 0.2.1. So, time to work on this issue! Here's a new order of operations:
-
Use some package to identify the operating system at the beginning of
chomper.block.main
. -
Add an
operating_system
argument tochomper.utils.reset_nat
andchomper.utils.setup_nat
. Add control flow to these two functions to usepftables
if you're on OSX. -
Create a consistent set of instructions for manual installation on OSX. It may be easiest to just adapt the Debian automated installer (just take out the certificate installation - that's tricky to automate cross-platform).
from chomper.
The pf fiewall (called packet filter) originated from openBSD (my favorite OS), so if you have pf working on macOS, then it can also work on openBSD!
https://www.openbsd.org/faq/pf/
https://home.nuug.no/~peter/pf/
https://home.nuug.no/~peter/pftutorial/
https://nostarch.com/pf3
from chomper.
Related Issues (20)
- Deinstallation HOT 1
- Receive the following bug on running command.
- Accessing mitmproxy
- YouTube not blocked on Chrome HOT 3
- How do I uninstall? HOT 2
- Chomper never unblocks, requires reboot HOT 2
- Is this project dead or unmaitained? HOT 7
- Progressive block HOT 1
- Make use of online blacklists
- Add rule for word filtering in URL
- Bug: Error whon running block HOT 1
- Chomper prevents me from accessing *any* webpage
- Dropbox Sync issue: cannot establish secure internet connection HOT 2
- Arch Linux package (yay) HOT 1
- You were added to Awesome Humane Tech
- Blacklist blocked all access to internet (kind of)
- Site is down
- No virtualenv has been created for this project yet
- Add sponsor button for yourself and the project
- Install failed?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chomper.