Changeset 13234 in hybrid
- Timestamp:
- Apr 6, 2015, 8:11:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9/nanobsd/files/etc/pf.hybrid.conf
r11543 r13234 17 17 # 18 18 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 20 allow_ext_in_tcp="1022, openvpn" 21 allow_ext_in_udp="snmp, openvpn" 22 23 # Standard port allow listings for services at host network (in case of NAT) 24 allow_private_in_tcp="domain" 25 allow_private_in_udp="domain" 22 26 23 27 allow_ext_out_tcp = "domain, http, https, openvpn" … … 26 30 27 31 # Default configuration for ALIX2 with vr0 as external interface and wlan0 as 28 # the public accesspoint in iLeiden setup, no aliases on interfaces.32 # the public accesspoint in iLeiden setup, aliases on external interface OK. 29 33 ext_if="vr0" 30 34 ext_ip="(vr0:0)" … … 54 58 no nat from $wl_net to $private 55 59 56 # Nat the internet for iLeiden functionality (1)57 nat on $inet_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> ($inet_i f)60 # Nat the internet for iLeiden functionality allow for alias on vr0 (1) 61 nat on $inet_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> ($inet_ip) 58 62 59 63 … … 91 95 pass out quick on $ext_if from $wl_net to $wl_net 92 96 93 # Expose some local services (4) 97 # Expose some local services for internal (NATted) network (4) 98 pass in on $ext_if inet proto tcp from $private to $ext_if port { $allow_private_in_tcp } keep state 99 pass in on $ext_if inet proto udp from $private to $ext_if port { $allow_private_in_udp } keep state 100 pass 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) 94 103 pass in on $ext_if inet proto tcp from any to $ext_if port { $allow_ext_in_tcp } keep state 95 104 pass 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.