roles/dch-gw: Explicitly accept forwarded ports

Marking packets matching port-forwarding rules, and then allowing
traffic carrying that mark did not seem to work well. Often, packets
seemed to get dropped for no apparent reason, and outside connections to
NAT'd services was sometimes slow as a result. Explicitly listing every
destination host/port in the `forward` table seems to resolve this
issue.
This commit is contained in:
2018-04-06 20:13:03 -05:00
parent e9c9445a96
commit b83e832df9
2 changed files with 11 additions and 4 deletions

View File

@@ -16,7 +16,6 @@ table inet filter {
iif != {{ internet_iface }} oifname {{ dch_networks.guest.router_iface }} drop
iif != {{ internet_iface }} oif != {{ internet_iface }} counter accept
ip daddr @firemon counter accept
mark 323 counter accept
tcp dport smtp counter reject with icmpx type host-unreachable
oif {{ internet_iface }} accept
}