Ignore:
Timestamp:
Oct 10, 2012, 9:43:35 PM (12 years ago)
Author:
rick
Message:

Make the concentrator OpenVPN work. Please do mind that it potentially breaks
the code for external interfaces which also have an internal link on it (like
the watertoren setup) and no concentrator setup.

File:
1 edited

Legend:

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

    r11068 r11543  
    2727# Default configuration for ALIX2 with vr0 as external interface and wlan0 as
    2828# 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
     29ext_if="vr0"
     30ext_ip="(vr0:0)"
     31inet_if="vr0"
     32inet_ip="(vr0:0)"
    3233captive_portal_interfaces="wlan0"
    3334publicnat="http,https"
     
    5455
    5556# Nat the internet for iLeiden functionality (1)
    56 nat on $ext_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> $ext_ip
     57nat on $inet_if inet proto tcp from $wl_net to ! $wl_net port { $publicnat } -> ($inet_if)
    5758
    5859
     
    8485# External interface is permissive (4)
    8586block on $ext_if inet from any to !$wl_net
     87block on $inet_if inet from any to !$wl_net
    8688
    8789# Allow internal WL traffic on alias $ext_if interfaces (5)
     
    98100
    99101# 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 \
     102pass out on $inet_if inet proto tcp from $wl_net to any port { $publicnat } keep state \
    101103 (max-src-conn-rate 100/10, max-src-conn 10)
    102104
     
    104106pass out on $ext_if inet proto udp from $ext_if to any port { $allow_ext_out_udp } keep state
    105107pass 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 }
     108pass 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)
     111pass out on $inet_if inet proto udp from $inet_if to any port { $allow_ext_out_udp } keep state
     112pass out on $inet_if inet proto tcp from $inet_if to any port { $allow_ext_out_tcp } keep state
     113pass 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
    107118
    108119# Do not allow connections to the local MGNT LAN to start (3)
Note: See TracChangeset for help on using the changeset viewer.