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

Provide builtin kill switch #24

Closed
NilsIrl opened this issue Aug 26, 2020 · 2 comments
Closed

Provide builtin kill switch #24

NilsIrl opened this issue Aug 26, 2020 · 2 comments

Comments

@NilsIrl
Copy link
Owner

NilsIrl commented Aug 26, 2020

On mullvad, the following lines are added to provide the following features:

PostUp = iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -D OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
@NilsIrl
Copy link
Owner Author

NilsIrl commented Aug 26, 2020

@NilsIrl
Copy link
Owner Author

NilsIrl commented Aug 26, 2020

The difference between the two is that the one from the wg-quick man page only does ipv4 kill switch, other than that they run the same command.

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