| 1 |
zone { |
| 2 |
localhost |
| 3 |
public |
| 4 |
home |
| 5 |
} |
| 6 |
|
| 7 |
public-localhost { # Incoming traffic in a cafe |
| 8 |
dhcp-client |
| 9 |
dhcpv6-client |
| 10 |
ping saddr_rate "5/second burst 20" |
| 11 |
ssh saddr_rate "5/minute burst 5" |
| 12 |
drop log |
| 13 |
} |
| 14 |
|
| 15 |
home-localhost { # Incoming traffic in safe location |
| 16 |
dhcp-client |
| 17 |
dhcpv6-client |
| 18 |
lsdp |
| 19 |
mdns |
| 20 |
ping |
| 21 |
ssdp |
| 22 |
ssh |
| 23 |
drop log |
| 24 |
} |
| 25 |
|
| 26 |
template outgoing_services { # Common outgoing traffic |
| 27 |
dhcp-server |
| 28 |
dhcpv6-server |
| 29 |
domain |
| 30 |
http |
| 31 |
https |
| 32 |
imap |
| 33 |
ntp |
| 34 |
ping |
| 35 |
smtp |
| 36 |
ssh |
| 37 |
} |
| 38 |
|
| 39 |
localhost-public { # Outgoing traffic in a cafe |
| 40 |
template outgoing_services |
| 41 |
reject log |
| 42 |
} |
| 43 |
|
| 44 |
localhost-home { # Outgoing traffic in safe location |
| 45 |
template outgoing_services |
| 46 |
googlemeet |
| 47 |
ipp |
| 48 |
mdns |
| 49 |
ssdp |
| 50 |
reject log |
| 51 |
} |