Changeset 10589 in hybrid for branches


Ignore:
Timestamp:
Apr 26, 2012, 2:01:09 PM (13 years ago)
Author:
rick
Message:

Split hybrid and special proxy setup, as the proxy setup is highly custom and
somehow exotic, not useable in the hybrid setup (due to the gateway pain).

Location:
branches/releng-9.0/nanobsd/files/etc
Files:
1 edited
1 copied

Legend:

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

    r10580 r10589  
    1212# 6) WL Captive Portal Support for interfaces who needs it.
    1313# 7) Optional: Exposure of WL services to the outside
    14 # 8) Overrides default route for local orginating traffic to specific ports, needed for
    15 #    for normal proxy setup, which should NOT follow the iLeiden default route.
    1614# 9) Protect the Wireless Network from junk traffic.
    1715#
     
    2927ext_if="vr0"
    3028ext_if_net="vr0:network"
    31 ext_if_default_route="192.168.42.1"
    3229captive_portal_interfaces="wlan0"
    3330publicnat="http,https"
    3431masterip="127.0.0.1"
    35 # For an traditional proxy setup set, uncomment:
     32# For an traditional proxy setup set (no iLeiden clients!), uncomment:
    3633#publicnat=0
    3734
     
    5148nat on $ext_if inet proto tcp from $wl_net to any port { $ileiden_ports } -> ($ext_if)
    5249
    53 # Nat to the internet for packets which are orginating from itself for proxy functionality (8)
    54 nat on !$ext_if inet proto tcp from $wl_net to any port { $ileiden_ports } -> ($ext_if)
    55 
    5650# Redirect some internal facing services outside, please mind also need allow rules (bottom of file) (7)
    5751rdr on $ext_if inet proto tcp from any to $ext_if port 8081 -> 172.16.4.46 port 80
     
    6660# By default all interfaces are open (5)
    6761pass all
    68 
    69 # This quirck is needed to override the routing table default route (8)
    70 pass out on !$ext_if route-to ($ext_if $ext_if_default_route) proto tcp from any to !$wl_net port {22, 80, 443} user != unknown keep state
    71 pass out on !$ext_if route-to ($ext_if $ext_if_default_route) proto udp from any to !$wl_net port {53} user != unknown keep state
    7262
    7363# By default deny all outgoing traffic to avoid systems spamming the network (9)
  • branches/releng-9.0/nanobsd/files/etc/pf.proxy.conf

    r10580 r10589  
    2929ext_if="vr0"
    3030ext_if_net="vr0:network"
    31 ext_if_default_route="192.168.42.1"
     31ext_if_gw="127.127.127.127"
    3232captive_portal_interfaces="wlan0"
    3333publicnat="http,https"
     
    6868
    6969# This quirck is needed to override the routing table default route (8)
    70 pass out on !$ext_if route-to ($ext_if $ext_if_default_route) proto tcp from any to !$wl_net port {22, 80, 443} user != unknown keep state
    71 pass out on !$ext_if route-to ($ext_if $ext_if_default_route) proto udp from any to !$wl_net port {53} user != unknown keep state
     70pass out on !$ext_if route-to ($ext_if $ext_if_gw) proto tcp from any to !$wl_net port {22, 80, 443} user != unknown keep state
     71pass out on !$ext_if route-to ($ext_if $ext_if_gw) proto udp from any to !$wl_net port {53} user != unknown keep state
    7272
    7373# By default deny all outgoing traffic to avoid systems spamming the network (9)
Note: See TracChangeset for help on using the changeset viewer.