Changeset 14068 in hybrid for branches/releng-11/nanobsd/files
- Timestamp:
- Mar 12, 2018, 11:23:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-11/nanobsd/files/etc/pf.hybrid.conf
r13772 r14068 26 26 # the public accesspoint in iLeiden setup, aliases on external interface OK. 27 27 ext_if="vr0" 28 inet_if="vr0"28 ext_if="vr0" 29 29 captive_portal_interfaces="wlan0" 30 30 publicnat="http,https" … … 48 48 49 49 # Nat the internet for iLeiden functionality allow for alias on vr0 (1) 50 nat on $ inet_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> ($inet_if:0)50 nat on $ext_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> ($ext_if:0) 51 51 52 52 … … 81 81 # External interface is permissive (4) 82 82 block on $ext_if inet from any to !$wl_net 83 block on $inet_if inet from any to !$wl_net84 83 85 84 # Allow internal WL traffic on alias $ext_if interfaces (5) … … 92 91 93 92 # Packets going out are the ones to the internet with an certain limit (1) 94 pass out on $ inet_if inet proto tcp from $wl_net to any port { $publicnat } keep state \93 pass out on $ext_if inet proto tcp from $wl_net to any port { $publicnat } keep state \ 95 94 (max-src-conn-rate 100/10, max-src-conn 10) 96 95 … … 101 100 102 101 # For proper functioning allow the local machine to initiate requests outside + vpn (4) 103 pass out on $ inet_if inet proto udp from $inet_if to any port { $allow_ext_out_udp } keep state104 pass out on $ inet_if inet proto tcp from $inet_if to any port { $allow_ext_out_tcp } keep state105 pass out on $ inet_if inet proto icmp from $inet_if to any icmp-type { echoreq, trace }102 pass out on $ext_if inet proto udp from $ext_if to any port { $allow_ext_out_udp } keep state 103 pass out on $ext_if inet proto tcp from $ext_if to any port { $allow_ext_out_tcp } keep state 104 pass out on $ext_if inet proto icmp from $ext_if to any icmp-type { echoreq, trace } 106 105 107 106 # Uncomment to UDP traceroute from this host to start 108 107 #pass out on $ext_if inet proto udp from $ext_if to any port 33434 >< 33464 keep state 109 #pass out on $inet_if inet proto udp from $inet_if to any port 33434 >< 33464 keep state110 108 111 109 # Do not allow connections to the local MGNT LAN to start (3)
Note:
See TracChangeset
for help on using the changeset viewer.