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

Idea about using the namespace with an access point #37

Open
kidburglar opened this issue Aug 25, 2020 · 1 comment
Open

Idea about using the namespace with an access point #37

kidburglar opened this issue Aug 25, 2020 · 1 comment

Comments

@kidburglar
Copy link

Hello @slingamn

Thanks for your script with the namespace vpn it's really helpfull.

I wanted your thought about a security point of view of my idea that is working but it's not really easy to setup right now.
The idea is to have an wifi interface as access point in the namespace so that all the connected device would directly benefit from a secure vpn setup.

  1. Moving the wifi interface in the namespace
  2. Forward all the paquets on the wifi interface to the vpn interface

I think it's stay pretty "safe" because the access point can only be used for connecting on the wifi and not going on internet but I want your thought about it.

Cheers.

@kidburglar
Copy link
Author

I got some time to test it and it looks like it works pretty well but I'm not sure about the security point of view I would let that to the people that have more knowledge than me.

  • Have a wifi that support the AP mode
  • Having forwarding ip enabled on the system
  • Launching the vpn in a namespace with namespaced-openvpn
  • Moving the AP interface to the namespace with iw
  • Using firejail to launching a bash without profile in the namespace and use a script to define IP, iptables rules and use hostapd for making your wifi available

If interessed I try t make a proper script available but that are the big steps to make it work

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

1 participant