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

Add optional client isolation feature for blocking traffic between devices #134

Merged

Conversation

DasSkelett
Copy link
Member

Motivation

Until now there was absolutely no firewall between all online devices.
While this is not problem (and often even wanted behaviour) for single-user setups,
it can be useful for multi-user situations.

Changes

A new option WG_VPN_CLIENT_ISOLATION/--vpn-client-isolation/vpn.clientIsolation is added.
It defaults to false, and if set to true it will REJECT (port unreachable) all packets coming from one client device IP address to another.
We do not need to explicitly allow traffic to the server, as that one goes through the INPUT table, not FORWARD.

Note that this does not affect incoming traffic from outside the VPN. This one can and should still be configured externally, wg-access-server does not drop incoming traffic (yet).

…vices

Until now there was absolutely no firewall between all online devices.
While this is not problem (and often even wanted behaviour) for single-user setups,
it can be useful for multi-user situations.
@DasSkelett DasSkelett added enhancement New feature or request go Pull requests that update Go code labels Mar 24, 2022
Copy link
Member

@awlx awlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :)

Copy link
Member

@GoliathLabs GoliathLabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

@DasSkelett DasSkelett merged commit 2d97464 into freifunkMUC:master Mar 24, 2022
@DasSkelett DasSkelett deleted the feature/block-inter-device-traffic branch March 24, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants