sgx: dcap firewall rules
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
9f40890b90
commit
ab7be188fc
|
@ -4,6 +4,12 @@ with lib.metacfg;
|
||||||
{
|
{
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
|
boot.kernel.sysctl."net.ipv4.conf.all.route_localnet" = 1;
|
||||||
|
networking.firewall.extraCommands = ''
|
||||||
|
iptables -t nat -A OUTPUT -o lo -p tcp --dport 8081 -j DNAT --to-destination 192.168.122.1:8081
|
||||||
|
iptables -t nat -A POSTROUTING -j MASQUERADE
|
||||||
|
'';
|
||||||
|
|
||||||
metacfg = {
|
metacfg = {
|
||||||
base.enable = true;
|
base.enable = true;
|
||||||
nix-ld.enable = true;
|
nix-ld.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue