Changeset 13160 in hybrid for branches/releng-10/nanobsd/files


Ignore:
Timestamp:
Feb 11, 2015, 12:21:07 PM (10 years ago)
Author:
rick
Message:

Fix open DNS relay issue by closing down to the proper networks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-10/nanobsd/files/etc/pf.hybrid.conf

    r11543 r13160  
    1717#
    1818
    19 # Standard port allow listings
    20 allow_ext_in_tcp="ssh, domain, openvpn"
    21 allow_ext_in_udp="domain, snmp, openvpn"
     19# Standard port allow listings for external services
     20allow_ext_in_tcp="ssh, openvpn"
     21allow_ext_in_udp="snmp, openvpn"
     22
     23# Standard port allow listings for services at host network (in case of NAT)
     24allow_private_in_tcp="domain"
     25allow_private_in_udp="domain"
    2226
    2327allow_ext_out_tcp = "domain, http, https, openvpn"
     
    9195pass out quick on $ext_if from $wl_net to $wl_net
    9296
    93 # Expose some local services (4)
     97# Expose some local services for internal (NATted) network (4)
     98pass in on $ext_if inet proto tcp from $private to $ext_if port { $allow_private_in_tcp } keep state
     99pass in on $ext_if inet proto udp from $private to $ext_if port { $allow_private_in_udp } keep state
     100pass in on $ext_if inet proto icmp from $private to $ext_if icmp-type { echoreq }
     101
     102# Expose some local services for the external world (WWW) network (4)
    94103pass in on $ext_if inet proto tcp from any to $ext_if port { $allow_ext_in_tcp } keep state
    95104pass in on $ext_if inet proto udp from any to $ext_if port { $allow_ext_in_udp } keep state
Note: See TracChangeset for help on using the changeset viewer.