Accept input on tunnel

This commit is contained in:
asonix 2021-02-07 17:34:55 -06:00
parent 1d5e591805
commit 3dabd9e629

View file

@ -186,6 +186,10 @@ fn filter(interfaces: &Interfaces) -> String {
// Accept packets over tunnel interfaces
for iface in &interfaces.tunnel {
filter += &format!(
"-A INPUT -o {tunface} -j ACCEPT\n",
tunface = iface.interface,
);
filter += &format!(
"-A FORWARD -i {tunface} -j ACCEPT\n",
tunface = iface.interface,