Changeset 11543 in hybrid
- Timestamp:
- Oct 10, 2012, 9:43:35 PM (12 years ago)
- Location:
- branches/releng-9.0/nanobsd/files
- Files:
-
- 2 added
- 2 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) -
branches/releng-9.0/nanobsd/files/usr/local/etc/openvpn/client.conf
r10432 r11543 10 10 # file so it has a .ovpn extension # 11 11 ############################################## 12 13 12 # Specify that we are a client and that we 14 13 # will be pulling certain config file directives … … 21 20 # unless you partially or fully disable 22 21 # the firewall for the TUN/TAP interface. 23 dev tap0 24 ;dev tun 22 dev tun 25 23 26 24 # Windows needs the TAP-Win32 adapter name … … 42 40 ;remote my-server-1 1194 43 41 ;remote my-server-2 1194 44 remote openvpn. network.wirelessleiden.nl119442 remote openvpn.pool.wirelessleiden.nl. 1194 45 43 46 44 # Choose a random host from the remote … … 106 104 # If a tls-auth key is used on the server 107 105 # then every client must also have the key. 108 ;tls-authta.key 1106 tls-auth /usr/local/etc/openvpn/ta.key 1 109 107 110 108 # Select a cryptographic cipher. … … 132 130 # Make sure to keep some traffic running, to keep the Firewall (NAT) state tables in between happy. 133 131 keepalive 2 24 132 133 # Keep trying 134 resolv-retry infinite
Note:
See TracChangeset
for help on using the changeset viewer.