Accept input on tunnel
This commit is contained in:
parent
1d5e591805
commit
3dabd9e629
|
@ -186,6 +186,10 @@ fn filter(interfaces: &Interfaces) -> String {
|
||||||
|
|
||||||
// Accept packets over tunnel interfaces
|
// Accept packets over tunnel interfaces
|
||||||
for iface in &interfaces.tunnel {
|
for iface in &interfaces.tunnel {
|
||||||
|
filter += &format!(
|
||||||
|
"-A INPUT -o {tunface} -j ACCEPT\n",
|
||||||
|
tunface = iface.interface,
|
||||||
|
);
|
||||||
filter += &format!(
|
filter += &format!(
|
||||||
"-A FORWARD -i {tunface} -j ACCEPT\n",
|
"-A FORWARD -i {tunface} -j ACCEPT\n",
|
||||||
tunface = iface.interface,
|
tunface = iface.interface,
|
||||||
|
|
Loading…
Reference in a new issue