ConfigurationDeWifidog
Un article de MarseilleWirelessWiki.
voisi quelques points du fichier de configuration
GatewayID -> POur l'instant on mets la MAC mais ce serait mieux de faire comme puteaux genre NodePrenomNom
ExternalInterface eth0 sur wrt54G
- Parameter: GatewayInterface
- Default: NONE
- Mandatory
- Set this to the internal interface. Typically br0 for OpenWrt, and eth1 otherwise
GatewayInterface : C'est l'interface Wifi - eth1 pour openwrt sur WRT54GS
- Parameter: GatewayAddress
- Default: Find it from GatewayInterface
- Optional
- Set this to the internal IP address of the gateway
- GatewayAddress 192.168.1.1 ( faculatatif )
- AuthServer {
- Hostname auth.ilesansfil.org
- SSLAvailable yes
- Path /
- }
Actuellement pour le serveur est
Hostname auth.marseille-wireless.org
SSLAvailable yes
Path /wifidog/
Ici l'idée serait de sauthetifier à trois serveurs différent : ville , pays , monde , mais ce n'est pas possible pour l'instant
L'utilité dans le cas d'une node qui n'a aucun accès a internet serait aussi que si on ne spécifie pas de serveur, wifidog rediriges vers localhost , comme nocat aurait fait. Cela permet d'annoncer aux visiteurs sur quelle node ils sont et quels services sont proposés
Le reste est à detailler :
- AuthServer {
- Hostname auth2.ilesansfil.org
- SSLAvailable yes
- Path /
- }
- AuthServer {
- Hostname auth3.ilesansfil.org
- SSLAvailable yes
- Path /
- }
- Parameter: Portal
- Default: none
- Optional
- Set this to a URL for your portal, if you run without an auth server
- Portal http://www.ilesansfil.org/
- Parameter: Daemon
- Default: 1
- Optional
- Set this to true if you want to run as a daemon
- Daemon 1
- Parameter: GatewayPort
- Default: 2060
- Optional
- Listen on this port
- GatewayPort 2060
- Parameter: HTTPDName
- Default: WiFiDog
- Optional
- Define what name the HTTPD server will respond
- HTTPDName WiFiDog
- Parameter: HTTPDMaxConn
- Default: 10
- Optional
- How many sockets to listen to
- HTTPDMaxConn 10
- Parameter: CheckInterval
- Default: 60
- Optional
- How many seconds should we wait between timeout checks
CheckInterval 60
- Parameter: ClientTimeout
- Default: 5
- Optional
- Set this to the desired of number of CheckInterval of inactivity before a client is logged out
- The timeout will be INTERVAL * TIMEOUT
ClientTimeout 5
- Parameter: TrustedMACList
- Default: none
- Optional
- Comma separated list of MAC addresses who are allowed to pass
- through without authentication
- TrustedMACList 00:00:DE:AD:BE:AF,00:00:C0:1D:F0:0D
- Parameter: FirewallRuleSet
- Default: none
- Mandatory
- Groups a number of FirewallRule statements together.
- Parameter: FirewallRule
- Default: none
- Define one firewall rule in a rule set.
- Rule Set: global
- Used for rules to be applied to all other rulesets except locked.
- This is the default config for the Teliphone service.
FirewallRuleSet global {
FirewallRule allow udp to 69.90.89.192/27 FirewallRule allow udp to 69.90.85.0/27 FirewallRule allow tcp port 80 to 69.90.89.205
}
- Rule Set: validating-users
- Used for new users validating their account
FirewallRuleSet validating-users {
FirewallRule block tcp port 25 FirewallRule allow to 0.0.0.0/0
}
- Rule Set: known-users
- Used for normal validated users.
FirewallRuleSet known-users {
FirewallRule allow to 0.0.0.0/0
}
- Rule Set: unknown-users
- Used for unvalidated users, this is the ruleset that gets redirected.
- XXX The redirect code adds the Default DROP clause.
FirewallRuleSet unknown-users {
FirewallRule allow udp port 53 FirewallRule allow tcp port 53 FirewallRule allow udp port 67 FirewallRule allow tcp port 67
}
- Rule Set: locked-users
- Used for users that have been locked out.
FirewallRuleSet locked-users {
FirewallRule block to 0.0.0.0/0
}

