| 1 |
# $Id: wifidog.conf 935 2006-02-01 03:22:04Z benoitg $ |
|---|
| 2 |
# WiFiDog Configuration file |
|---|
| 3 |
|
|---|
| 4 |
# Parameter: GatewayID |
|---|
| 5 |
# Default: default |
|---|
| 6 |
# Optional but essential for monitoring purposes |
|---|
| 7 |
# |
|---|
| 8 |
# Set this to the template ID on the auth server |
|---|
| 9 |
# this is used to give a customized login page to the clients |
|---|
| 10 |
# If none is supplied, the mac address of the GW interface will be used, |
|---|
| 11 |
# without the : separators |
|---|
| 12 |
|
|---|
| 13 |
# GatewayID default |
|---|
| 14 |
#GatewayID Syrus |
|---|
| 15 |
|
|---|
| 16 |
# Parameter: ExternalInterface |
|---|
| 17 |
# Default: NONE |
|---|
| 18 |
# Optional |
|---|
| 19 |
# |
|---|
| 20 |
# Set this to the external interface. Typically vlan1 for OpenWrt, and eth0 or ppp0 otherwise |
|---|
| 21 |
|
|---|
| 22 |
ExternalInterface vlan1 |
|---|
| 23 |
|
|---|
| 24 |
# Parameter: GatewayInterface |
|---|
| 25 |
# Default: NONE |
|---|
| 26 |
# Mandatory |
|---|
| 27 |
# |
|---|
| 28 |
# Set this to the internal interface. Typically br0 for OpenWrt, and eth1 otherwise |
|---|
| 29 |
|
|---|
| 30 |
GatewayInterface eth0 |
|---|
| 31 |
#GatewayInterface wds0.49153 |
|---|
| 32 |
# Proprietary of the node (enrolled nickname on the auth server) |
|---|
| 33 |
|
|---|
| 34 |
Proprietary Syrus |
|---|
| 35 |
|
|---|
| 36 |
Network mplwireless |
|---|
| 37 |
|
|---|
| 38 |
Lat |
|---|
| 39 |
Lon |
|---|
| 40 |
|
|---|
| 41 |
TinyproxyPort 8888 |
|---|
| 42 |
|
|---|
| 43 |
# Parameter: GatewayAddress |
|---|
| 44 |
# Default: Find it from GatewayInterface |
|---|
| 45 |
# Optional |
|---|
| 46 |
# |
|---|
| 47 |
# Set this to the internal IP address of the gateway |
|---|
| 48 |
|
|---|
| 49 |
# GatewayAddress 192.168.1.1 |
|---|
| 50 |
|
|---|
| 51 |
# Parameter: AuthServer |
|---|
| 52 |
# Default: NONE |
|---|
| 53 |
# Mandatory, repeatable |
|---|
| 54 |
# |
|---|
| 55 |
# This allows you to configure your auth server(s). Each one will be tried in order, untill one responds. |
|---|
| 56 |
# Set this to the hostname or IP of your auth server(s), the path where |
|---|
| 57 |
# WiFiDog-auth resides in and the port it listens on. |
|---|
| 58 |
#AuthServer { |
|---|
| 59 |
# Hostname (Mandatory; Default: NONE) |
|---|
| 60 |
# SSLAvailable (Optional; Default: no; Possible values: yes, no) |
|---|
| 61 |
# SSLPort 443 (Optional; Default: 443) |
|---|
| 62 |
# HTTPPort 80 (Optional; Default: 80) |
|---|
| 63 |
# Path wifidog/ (Optional; Default: /wifidog/ Note: The path must be both prefixed and suffixed by /. Use a single / for server root.) |
|---|
| 64 |
#} |
|---|
| 65 |
|
|---|
| 66 |
AuthServer { |
|---|
| 67 |
Hostname auth.wireless-fr.org |
|---|
| 68 |
SSLAvailable yes |
|---|
| 69 |
Path / |
|---|
| 70 |
} |
|---|
| 71 |
|
|---|
| 72 |
# Parameter: Portal |
|---|
| 73 |
# Default: none |
|---|
| 74 |
# Optional |
|---|
| 75 |
# |
|---|
| 76 |
# Set this to a URL for your portal, if you run without an auth server |
|---|
| 77 |
# Portal http://www.wireless-fr.org/ |
|---|
| 78 |
|
|---|
| 79 |
# Parameter: Daemon |
|---|
| 80 |
# Default: 1 |
|---|
| 81 |
# Optional |
|---|
| 82 |
# |
|---|
| 83 |
# Set this to true if you want to run as a daemon |
|---|
| 84 |
# Daemon 1 |
|---|
| 85 |
|
|---|
| 86 |
# Parameter: GatewayPort |
|---|
| 87 |
# Default: 2060 |
|---|
| 88 |
# Optional |
|---|
| 89 |
# |
|---|
| 90 |
# Listen on this port |
|---|
| 91 |
# GatewayPort 2060 |
|---|
| 92 |
|
|---|
| 93 |
# Parameter: HTTPDName |
|---|
| 94 |
# Default: WiFiDog |
|---|
| 95 |
# Optional |
|---|
| 96 |
# |
|---|
| 97 |
# Define what name the HTTPD server will respond |
|---|
| 98 |
# HTTPDName WiFiDog |
|---|
| 99 |
|
|---|
| 100 |
# Parameter: HTTPDMaxConn |
|---|
| 101 |
# Default: 10 |
|---|
| 102 |
# Optional |
|---|
| 103 |
# |
|---|
| 104 |
# How many sockets to listen to |
|---|
| 105 |
# HTTPDMaxConn 10 |
|---|
| 106 |
|
|---|
| 107 |
# Parameter: CheckInterval |
|---|
| 108 |
# Default: 60 |
|---|
| 109 |
# Optional |
|---|
| 110 |
# |
|---|
| 111 |
# How many seconds should we wait between timeout checks |
|---|
| 112 |
CheckInterval 600 |
|---|
| 113 |
|
|---|
| 114 |
# Parameter: ClientTimeout |
|---|
| 115 |
# Default: 5 |
|---|
| 116 |
# Optional |
|---|
| 117 |
# |
|---|
| 118 |
# Set this to the desired of number of CheckInterval of inactivity before a client is logged out |
|---|
| 119 |
# The timeout will be INTERVAL * TIMEOUT |
|---|
| 120 |
ClientTimeout 1 |
|---|
| 121 |
|
|---|
| 122 |
# Parameter: TrustedMACList |
|---|
| 123 |
# Default: none |
|---|
| 124 |
# Optional |
|---|
| 125 |
# |
|---|
| 126 |
# Comma separated list of MAC addresses who are allowed to pass |
|---|
| 127 |
# through without authentication |
|---|
| 128 |
#TrustedMACList 00:00:DE:AD:BE:AF,00:00:C0:1D:F0:0D |
|---|
| 129 |
# TrustedMACList 00:13:CE:D2:D7:56 |
|---|
| 130 |
|
|---|
| 131 |
# Parameter: FirewallRuleSet |
|---|
| 132 |
# Default: none |
|---|
| 133 |
# Mandatory |
|---|
| 134 |
# |
|---|
| 135 |
# Groups a number of FirewallRule statements together. |
|---|
| 136 |
|
|---|
| 137 |
# Parameter: FirewallRule |
|---|
| 138 |
# Default: none |
|---|
| 139 |
# |
|---|
| 140 |
# Define one firewall rule in a rule set. |
|---|
| 141 |
|
|---|
| 142 |
# Rule Set: global |
|---|
| 143 |
# |
|---|
| 144 |
# Used for rules to be applied to all other rulesets except locked. |
|---|
| 145 |
# This is the default config for the Teliphone service. |
|---|
| 146 |
FirewallRuleSet global { |
|---|
| 147 |
# SIP pour Freephonie |
|---|
| 148 |
FirewallRule allow udp to 212.27.52.5 |
|---|
| 149 |
# SIP pour wengo |
|---|
| 150 |
FirewallRule allow udp to 213.91.9.210 |
|---|
| 151 |
# SIP pour phonesystems |
|---|
| 152 |
FirewallRule allow udp to 213.11.62.39 |
|---|
| 153 |
FirewallRule allow udp to 62.39.136.151 |
|---|
| 154 |
# |
|---|
| 155 |
# Web vers montpellier-wireless.com |
|---|
| 156 |
FirewallRule allow tcp port 80 to 80.245.57.3 |
|---|
| 157 |
# FirewallRule allow to 10.34.0.0/16 |
|---|
| 158 |
# NMNS |
|---|
| 159 |
FirewallRule allow to 213.251.186.125 |
|---|
| 160 |
FirewallRule allow to 10.0.0.0/8 |
|---|
| 161 |
} |
|---|
| 162 |
|
|---|
| 163 |
# Rule Set: validating-users |
|---|
| 164 |
# |
|---|
| 165 |
# Used for new users validating their account |
|---|
| 166 |
FirewallRuleSet validating-users { |
|---|
| 167 |
FirewallRule allow tcp port 22 |
|---|
| 168 |
FirewallRule allow udp port 67 |
|---|
| 169 |
FirewallRule allow tcp port 67 |
|---|
| 170 |
FirewallRule allow udp port 53 |
|---|
| 171 |
FirewallRule allow tcp port 53 |
|---|
| 172 |
FirewallRule allow tcp port 80 |
|---|
| 173 |
FirewallRule allow tcp port 110 |
|---|
| 174 |
FirewallRule allow tcp port 995 |
|---|
| 175 |
FirewallRule allow tcp port 143 |
|---|
| 176 |
FirewallRule allow tcp port 993 |
|---|
| 177 |
FirewallRule allow tcp port 220 |
|---|
| 178 |
FirewallRule allow tcp port 443 |
|---|
| 179 |
FirewallRule block to 0.0.0.0/0 |
|---|
| 180 |
} |
|---|
| 181 |
|
|---|
| 182 |
# Rule Set: known-users |
|---|
| 183 |
# |
|---|
| 184 |
# Used for normal validated users. |
|---|
| 185 |
FirewallRuleSet known-users { |
|---|
| 186 |
FirewallRule allow udp port 67 |
|---|
| 187 |
FirewallRule allow tcp port 67 |
|---|
| 188 |
FirewallRule allow udp port 53 |
|---|
| 189 |
FirewallRule allow tcp port 53 |
|---|
| 190 |
FirewallRule allow tcp port 80 |
|---|
| 191 |
FirewallRule allow tcp port 110 |
|---|
| 192 |
FirewallRule allow tcp port 995 |
|---|
| 193 |
FirewallRule allow tcp port 143 |
|---|
| 194 |
FirewallRule allow tcp port 993 |
|---|
| 195 |
FirewallRule allow tcp port 220 |
|---|
| 196 |
FirewallRule allow tcp port 443 |
|---|
| 197 |
FirewallRule allow tcp port 6667 |
|---|
| 198 |
# Skype |
|---|
| 199 |
FirewallRule allow tcp port 1468 |
|---|
| 200 |
FirewallRule allow tcp port 22 |
|---|
| 201 |
FirewallRule allow tcp port 5222 |
|---|
| 202 |
FirewallRule allow tcp port 5223 |
|---|
| 203 |
FirewallRule allow tcp port 1863 |
|---|
| 204 |
FirewallRule allow udp port 1863 |
|---|
| 205 |
FirewallRule allow udp port 4000 |
|---|
| 206 |
FirewallRule allow tcp port 4000 |
|---|
| 207 |
FirewallRule allow tcp port 7000 |
|---|
| 208 |
FirewallRule block to 0.0.0.0/0 |
|---|
| 209 |
} |
|---|
| 210 |
|
|---|
| 211 |
# Rule Set: member-users |
|---|
| 212 |
# |
|---|
| 213 |
# Used for member validated users. |
|---|
| 214 |
FirewallRuleSet member-users { |
|---|
| 215 |
FirewallRule allow to 0.0.0.0/0 |
|---|
| 216 |
} |
|---|
| 217 |
|
|---|
| 218 |
|
|---|
| 219 |
|
|---|
| 220 |
# Rule Set: unknown-users |
|---|
| 221 |
# |
|---|
| 222 |
# Used for unvalidated users, this is the ruleset that gets redirected. |
|---|
| 223 |
# |
|---|
| 224 |
# XXX The redirect code adds the Default DROP clause. |
|---|
| 225 |
FirewallRuleSet unknown-users { |
|---|
| 226 |
FirewallRule allow udp port 53 |
|---|
| 227 |
FirewallRule allow tcp port 53 |
|---|
| 228 |
FirewallRule allow udp port 67 |
|---|
| 229 |
FirewallRule allow tcp port 67 |
|---|
| 230 |
} |
|---|
| 231 |
|
|---|
| 232 |
# Rule Set: locked-users |
|---|
| 233 |
# |
|---|
| 234 |
# Used for users that have been locked out. |
|---|
| 235 |
FirewallRuleSet locked-users { |
|---|
| 236 |
FirewallRule block to 0.0.0.0/0 |
|---|
| 237 |
} |
|---|