-
Notifications
You must be signed in to change notification settings - Fork 160
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
wifi hotspot doesn't work when VPN is connected #75
Comments
also, i can't really specify network interface for wifi AP when i'm connected to VPN. specifying network interface manually when connected results in broken internet. i can see packets from the clients, they are routing to the host, but not outside of the host. Works fine though if i don't specify it. Routes fine to VPN subnet. i'm manually setting output interface like that: |
Hi, thank you for feedback.
Could you provide the output of following commands, when connected to VPN
For the 2nd issue you described, please try both v0.7.3 and latest commit (0.7.6b). |
Hi! i'm launching it like that:
(warp0 works, i have ping/dns, i also tried your script with tailscale exit node, it doesn't work when specifying output interface).
Also, i have tried doing |
If |
i don't quite understand the logic. I want to share internet from interface enp3s0f3u1u1, i don't want my clients connected to VPN. I want my system connected to a VPN, and tether wifi without vpn using my default ISP (thats why i want to specify enp3s0f3u1u1 manually, e.g. firejail understands this logic firejail --net=enp3s0f3u1u1 chromium and it shows my default ISP IP) |
Sorry, I got wrong. Does Firejail uses different machanism than iptables (which our script uses). According to your previous report:
I guess VPN program wants itself to be default route and is preventing traffics going through |
yes, it does
yes, it stops working after VPN is connected
they use VPN route by default (e.g. if i run chromium directly it shows warp0 ip, not my ISP ip address)
i understand, iirc it uses cgroups, but thats out of scope. i'm just saying how i imagine things in my head so you can understand this analogy. |
I use plain wireguard with nmcli if this could help. More complex VPNs tinker with routing/firewall rules very heavily so i explicitly used more simpler one that works out-of-box for this report. |
You could try |
I understand that it can't work (not possible because it isolates the network interfaces, so wlp1s0 shouldn't be available inside of firejail sandbox). I actually tried moving wireless interface to a different network namespace too, but it turns out the driver has to support this feature. |
Maybe creating a sandbox to let VPN run in there and share to outside can solve your need. BTW, could you do |
same problem here when I simply to try to set up a "router" between 2 ethernet interfaces. Without mullvad VPN running, this is working fine. with either using |
for some reason
generate_random_ip4()
inside of this script stales when you are connected to the VPN. i don't know why, maybe becauseis_ip4_lan_range_available $random_ip4 && break
loops and can't find available ip address.solution is to specify gateway manually:
The text was updated successfully, but these errors were encountered: