Changeset 11543 in hybrid


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.

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  
    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)
  • branches/releng-9.0/nanobsd/files/usr/local/etc/openvpn/client.conf

    r10432 r11543  
    1010# file so it has a .ovpn extension           #
    1111##############################################
    12 
    1312# Specify that we are a client and that we
    1413# will be pulling certain config file directives
     
    2120# unless you partially or fully disable
    2221# the firewall for the TUN/TAP interface.
    23 dev tap0
    24 ;dev tun
     22dev tun
    2523
    2624# Windows needs the TAP-Win32 adapter name
     
    4240;remote my-server-1 1194
    4341;remote my-server-2 1194
    44 remote openvpn.network.wirelessleiden.nl 1194
     42remote openvpn.pool.wirelessleiden.nl. 1194
    4543
    4644# Choose a random host from the remote
     
    106104# If a tls-auth key is used on the server
    107105# then every client must also have the key.
    108 ;tls-auth ta.key 1
     106tls-auth /usr/local/etc/openvpn/ta.key 1
    109107
    110108# Select a cryptographic cipher.
     
    132130# Make sure to keep some traffic running, to keep the Firewall (NAT) state tables in between happy.
    133131keepalive 2 24
     132
     133# Keep trying
     134resolv-retry infinite
Note: See TracChangeset for help on using the changeset viewer.