File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
home-manager /hspecter /* -vpn
2
2
home-manager /hspecter /result
3
3
home-manager /swheeler /appart.secrets.nix
4
- hspecter /wg *
5
4
hspecter /smb-secrets
6
5
result *
7
6
** /dn42 /peers /tunnels.nix
@@ -10,5 +9,6 @@ ssl/*pem
10
9
hgunderson /qrcode.config
11
10
kbennett /fider /secrets.nix
12
11
kbennett /cf-apikey
12
+ mross /wg *
13
13
mross /client_id
14
14
mross /hockey-pen-stats.env
Original file line number Diff line number Diff line change 33
33
allowedIPs = [ "192.168.1.13/32" "2001:bc8:2e2a:3:3::1/80" ] ;
34
34
persistentKeepalive = 25 ;
35
35
}
36
+ {
37
+ publicKey = "pN5HOzguLrG9YTEEYrI1D3Qm8tcXwn541lNTtahdLik=" ; # Mami
38
+ allowedIPs = [ "192.168.1.14/32" "2001:bc8:2e2a:3:4::1/80" ] ;
39
+ persistentKeepalive = 25 ;
40
+ }
41
+ {
42
+ publicKey = "cbmzzMFmkjCMJKtFeozFeKIizaLbt+fe8/Qa7vpjuxc=" ; # Papi
43
+ allowedIPs = [ "192.168.1.15/32" "2001:bc8:2e2a:3:5::1/80" ] ;
44
+ persistentKeepalive = 25 ;
45
+ }
36
46
] ;
37
47
postSetup = ''
38
48
${ pkgs . iptables } /bin/iptables -t nat -I POSTROUTING -o enp0s20f0 -j MASQUERADE
49
+ ${ pkgs . iptables } /bin/ip6tables -A FORWARD -i vpn -j ACCEPT
50
+ ${ pkgs . iptables } /bin/ip6tables -A FORWARD -o vpn -j ACCEPT
39
51
'' ;
40
52
postShutdown = ''
41
53
${ pkgs . iptables } /bin/iptables -t nat -D POSTROUTING -o enp0s20f0 -j MASQUERADE
54
+ ${ pkgs . iptables } /bin/ip6tables -D FORWARD -i vpn -j ACCEPT
55
+ ${ pkgs . iptables } /bin/ip6tables -D FORWARD -o vpn -j ACCEPT
42
56
'' ;
43
57
} ;
44
58
} ;
You can’t perform that action at this time.
0 commit comments