Skip to content

Commit

Permalink
feat: dante
Browse files Browse the repository at this point in the history
  • Loading branch information
mokrinsky committed Dec 2, 2023
1 parent 9ffa44b commit f9e18bc
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion hosts/nl/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ in {
mc
nix-tree
tcpdump
virtualenv
];

sops = {
Expand Down Expand Up @@ -216,6 +215,33 @@ in {
mtr.enable = true;
};
services = {
dante = {
enable = true;
config = ''
internal = tap0
external = ens3
clientmethod: none
method: none
client pass {
from: 192.168.0.0/16 to: 0.0.0.0/0
log: error # connect disconnect
}
pass {
from: 192.168.0.0/16 to: 0.0.0.0/0
command: bind connect udpassociate
log: error # connect disconnect iooperation
}
pass {
from: 192.168.0.0/16 to: 0.0.0.0/0
command: bindreply udpreply
log: error # connect disconnect iooperation
}
'';
};
frr = {
bgp = {
enable = true;
Expand Down

0 comments on commit f9e18bc

Please sign in to comment.