all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wireguard
@ 2021-08-29 21:53 crodges
  2021-09-01  7:07 ` Wireguard Maxime Devos
  0 siblings, 1 reply; 11+ messages in thread
From: crodges @ 2021-08-29 21:53 UTC (permalink / raw)
  To: guix-devel

Hello everyone,

Let me start thanking you for developing such a interesting project in GNU 
Guix. Also, I don't want to take up anyone's time, so you can just point to 
documentation or other resource succinctly and I'll do my best. I'm writing 
here because I tried the help list but not answer so far, after a few days.

I managed to configure wireguard on a vps running guix and created clients for 
my desktop and cellphone. What I want to do (and did already in a Debian vps) 
is to make wireguard's lan accessible to anyone connected and also browse the 
internet using this vpn.

As I remember, I need to allow ip forwarding using

sysctl net.ipv4.ip_forward=1

and I also need to put these rules into wireguard (the server) under 
[interface],

PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING 
-o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat 
-A POSTROUTING -o eth0 -j MASQUERADE

PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D 
POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; 
ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

Problem is, looking at the latest guix manual, PostUp and PostDown doesn't 
seem to exist yet. Do they exist but are still undocumented?

If they don't exist, where should be a reasonable place to add this 
configurations? I'm trying to do everything the guix way, when I finish this 
machine configuration, I'd like it to be fully replicable.

Also, is this something that I could solve modifying the wireguard service 
definition itself?

Thanks,

crodges 




^ permalink raw reply	[flat|nested] 11+ messages in thread
* Wireguard
@ 2021-04-12 18:38 amuza
  2021-04-13 22:30 ` Wireguard Cameron
  2021-04-14 17:36 ` Wireguard Leo Famulari
  0 siblings, 2 replies; 11+ messages in thread
From: amuza @ 2021-04-12 18:38 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 360 bytes --]

Hello!

I'm new here. Some weeks ago I installed the Guix package manager on top
of Trisquel and so far I'm very happy.

Let me say that I'm not a developer or anything similar, so I easily get
lost.

And now my question:
I have just installed wireguard through Guix, but I cannot find the
/etc/wireguard directory.

Where is it?

Thank you!!


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-10-15 16:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-29 21:53 Wireguard crodges
2021-09-01  7:07 ` Wireguard Maxime Devos
2021-09-22 16:03   ` Wireguard crodges
2021-09-22 16:27     ` Wireguard crodges
2021-09-22 17:23     ` Wireguard Maxime Devos
2021-10-06 16:28       ` Wireguard crodges
2021-10-06 18:35         ` Wireguard Maxime Devos
2021-10-15 16:26           ` Wireguard crodges
  -- strict thread matches above, loose matches on Subject: below --
2021-04-12 18:38 Wireguard amuza
2021-04-13 22:30 ` Wireguard Cameron
2021-04-14 17:36 ` Wireguard Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.