Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request / question #535

Open
Rak3tenmann opened this issue Apr 26, 2024 · 4 comments
Open

feature request / question #535

Rak3tenmann opened this issue Apr 26, 2024 · 4 comments

Comments

@Rak3tenmann
Copy link

First of all: this works fantastic. Thanks for this peace of software.
However, I need my android device only to access internal IPs and I would like to prevent the device to access the internet.

I am almost sure, there is an easy way to do so. But I don't know how.
Thanks!
Christian

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2024

Maybe using a firewall which blocks connections from gnirehtet to internet?

@Rak3tenmann
Copy link
Author

Rak3tenmann commented Apr 26, 2024

Sure, this would be easy. But the PC, who is the host for the Android System, need to connect to the internet.
Only the Android-System need to be blocked. But this is invisible to the Firewall becaue it uses the PC.
If I am not mistaking.

EDIT: Ahh - the SW Firewall in the Host System, you mean? This might be a good idea. Unfortunatly, this is a Windows System, and this is nothing I usualy work with. But I will try to find out if this might work.
Let me know if you got some advise.
Thx!

@rom1v
Copy link
Collaborator

rom1v commented Apr 26, 2024

Every connection initiated by the gnirehtet relay running on the computer are initiatdd by the device. So if you block all connections other than to your internal ips for the gnirehtet process (I don't know how to do that, but in principle), it should work.

@Rak3tenmann
Copy link
Author

Rak3tenmann commented Apr 28, 2024

I have tried. Either I am too stupid to use the Windows firewall, or something like that is not provided.

EDIT:
easier than expected. If you just block everything from gnirehtet.exe it works like I would have it. Because the PC which is the Host, is still available with this rule.
Thank you!
We may close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants