Changeset 11543 in hybrid for branches/releng-9.0/nanobsd/files/etc
- Timestamp:
- Oct 10, 2012, 9:43:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/etc/pf.hybrid.conf
r11068 r11543 27 27 # Default configuration for ALIX2 with vr0 as external interface and wlan0 as 28 28 # the public accesspoint in iLeiden setup, no aliases on interfaces. 29 #ext_ip="(vr0:0)" 30 #ext_if="vr0" 31 ext_ip=$ext_if:0 29 ext_if="vr0" 30 ext_ip="(vr0:0)" 31 inet_if="vr0" 32 inet_ip="(vr0:0)" 32 33 captive_portal_interfaces="wlan0" 33 34 publicnat="http,https" … … 54 55 55 56 # Nat the internet for iLeiden functionality (1) 56 nat on $ ext_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> $ext_ip57 nat on $inet_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> ($inet_if) 57 58 58 59 … … 84 85 # External interface is permissive (4) 85 86 block on $ext_if inet from any to !$wl_net 87 block on $inet_if inet from any to !$wl_net 86 88 87 89 # Allow internal WL traffic on alias $ext_if interfaces (5) … … 98 100 99 101 # Packets going out are the ones to the internet with an certain limit (1) 100 pass out on $ ext_if inet proto tcp from $wl_net to any port { $publicnat } keep state \102 pass out on $inet_if inet proto tcp from $wl_net to any port { $publicnat } keep state \ 101 103 (max-src-conn-rate 100/10, max-src-conn 10) 102 104 … … 104 106 pass out on $ext_if inet proto udp from $ext_if to any port { $allow_ext_out_udp } keep state 105 107 pass out on $ext_if inet proto tcp from $ext_if to any port { $allow_ext_out_tcp } keep state 106 pass out on $ext_if inet proto icmp from $ext_if to any icmp-type { echoreq } 108 pass out on $ext_if inet proto icmp from $ext_if to any icmp-type { echoreq, trace } 109 110 # For proper functioning allow the local machine to initiate requests outside + vpn (4) 111 pass out on $inet_if inet proto udp from $inet_if to any port { $allow_ext_out_udp } keep state 112 pass out on $inet_if inet proto tcp from $inet_if to any port { $allow_ext_out_tcp } keep state 113 pass out on $inet_if inet proto icmp from $inet_if to any icmp-type { echoreq, trace } 114 115 # Uncomment to UDP traceroute from this host to start 116 #pass out on $ext_if inet proto udp from $ext_if to any port 33434 >< 33464 keep state 117 #pass out on $inet_if inet proto udp from $inet_if to any port 33434 >< 33464 keep state 107 118 108 119 # Do not allow connections to the local MGNT LAN to start (3)
Note:
See TracChangeset
for help on using the changeset viewer.