Restrict guest network
This commit is contained in:
parent
222d538de6
commit
c55c0d7367
@ -115,12 +115,12 @@
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 60001 ];
|
||||
|
||||
networking.firewwall.extraCommands = [
|
||||
"iptables -A FORWARD -i enp1s0.202 -o enp1s0.102 -j ACCEPT"
|
||||
"iptables -A FORWARD -i enp1s0.202 -j DROP"
|
||||
"iptables -A FORWARD -i enp1s0.102 -o enp1s0.202 -j ACCEPT"
|
||||
"iptables -A FORWARD -o enp1s0.202 -j DROP"
|
||||
];
|
||||
networking.firewall.extraCommands = ''
|
||||
iptables -A FORWARD -i enp1s0.202 -o enp1s0.102 -j ACCEPT
|
||||
iptables -A FORWARD -i enp1s0.202 -j DROP
|
||||
iptables -A FORWARD -i enp1s0.102 -o enp1s0.202 -j ACCEPT
|
||||
iptables -A FORWARD -o enp1s0.202 -j DROP
|
||||
'';
|
||||
|
||||
# Routing tables
|
||||
# Table: 10000
|
||||
|
Loading…
Reference in New Issue
Block a user