Open firewall for gre
This commit is contained in:
parent
18ccdbf288
commit
b6caebc4ef
@ -10,11 +10,17 @@
|
|||||||
"net.ipv6.conf.all.forwarding" = true;
|
"net.ipv6.conf.all.forwarding" = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
# Open Firewall for BGP
|
# Open Firewall for BGP
|
||||||
networking.firewall.allowedTCPPorts = [ 179 ];
|
179
|
||||||
# Open Fireall for OSPF
|
];
|
||||||
|
|
||||||
networking.firewall.extraCommands = ''
|
networking.firewall.extraCommands = ''
|
||||||
|
# Open fireall for OSPF
|
||||||
ip6tables -A INPUT -p ospfigp -j ACCEPT
|
ip6tables -A INPUT -p ospfigp -j ACCEPT
|
||||||
iptables -A INPUT -p ospfigp -j ACCEPT
|
iptables -A INPUT -p ospfigp -j ACCEPT
|
||||||
|
# Open firewall for GRE
|
||||||
|
ip6tables -A INPUT -p gre -j ACCEPT
|
||||||
|
iptables -A INPUT -p gre -j ACCEPT
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user