-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to use port forwarding with mirage? #171
Comments
Hi @100111001 thanks for your report! Indeed shell commands are not correctly taken into account (see https://github.com/mirage/qubes-mirage-firewall/blob/main/command.ml) and the provided port forwarding script will require a shell compatible with iptables and pipes invocations, which will induce a lot of complexity in the current qubes-mirage-fw. It sounds plausible (although I didn't looked into it ;) ) to include some sort of command parsing to allow port forwarding from dom0 (this issue may be an enhancement request), but I unfortunately think it will be too complex to reuse the classic script properly :( |
Is the summary that with mirage it's currently not possible to setup port forwarding? |
Yes unfortunately the script will not work with mirage because it runs the netvms chain from the target machine to sys-net and we will not be able to run shell commands when our turn comes. It will takes a bit of coding work to add something that can handle port forwarding (here and in the port-forwarding script) and I currently don't have the time to do it, but if you want to, you are welcome to add it :) |
Sorry to ask here a question as an issue, but I couldn't find another "place" to do so.
I started using mirage as my default firewall on qubes and I'm very thrilled about it and the tiny memory footprint.
The setup was quite convenient using this script
For portforwarding I've used this script which is based on iptables.
Unfortunately, this is not working with mirage out of the box and I have to use the heavy-weight linux firewall for some AppVMs.
Can you give me a hint how to create port forwarding for incoming connections with mirage in a qubes setup?
The messages I get, while running the port forwading script are:
The text was updated successfully, but these errors were encountered: