# Generado por:
# Alchemy
#
# unsolclic version: v3.6-beta
# open a telnet/ssh session on your device and run the script below.
# Note: Use Status/Wireless survey to verify that you have the
# antenna plugged in the right connector. The right antena is probably
# the one which is at the right, looking the WRT54G from the front
# (where it have the leds). If needed, change the antenna connector
# at Wireless->Advanced Settings.
# Security notes:
# Once this script is executes, the router password for root/admin users is "guifi"
# You must change this password if you want to keep it secret. If you like to still
# be managed externally, you must install a trusted ssh key. Upon request, your setup
# might be asked for being inspected to check the Wireless Commons compliance.
# No firewall rules are allowed in the public network area.
# By being in client mode, the router has the firewall enabled to distinguish between
# private and public areas, and only SNMP, ssh and https 8080 ports are enabled
# for external administration. Everything else is closed, therefore you might
# have to open ports to share resources.
#
# TorelloDipSudAP3
# Global network parameters
nvram set router_name="TorelloDipSudAP3"
nvram set wan_hostname="TorelloDipSudAP3"
nvram set lan_ipaddr="10.138.60.1"
nvram set lan_gateway="0.0.0.0"
nvram set lan_netmask="255.255.255.192"
nvram set wan_proto="static"
nvram set wan_ipaddr="10.138.50.4"
nvram set wan_netmask="255.255.255.224"
nvram set lan_domain="guifi.net"
nvram set wan_domain="guifi.net"
nvram set http_passwd="guifi"
nvram set time_zone="+01 2 2"
nvram set sv_localdns="10.138.50.194"
nvram set wan_dns="10.138.50.194 10.138.25.68 10.138.0.2"
nvram set wl_net_mode="b-only"
nvram set wl0_net_mode="b-only"
nvram set wl_afterburner="on"
nvram set wl_frameburst="on"
nvram set txpwr="28"
nvram set txant="0"
nvram set wl0_antdiv="0"
nvram set wl_antdiv="0"
nvram set block_wan="0"
#
# Management
nvram set telnetd_enable="1"
nvram set sshd_enable="1"
nvram set sshd_passwd_auth="1"
nvram set remote_management="1"
nvram set remote_mgt_https="1"
nvram set snmpd_enable="1"
nvram set snmpd_sysname="guifi.net"
nvram set snmpd_syscontact="guifi_at_guifi.net"
nvram set boot_wait="on"
# This is just a fake key. You must install a trusted key if you like to have you router managed externally
nvram set sshd_authorized_keys="
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwWNX4942fQExw4Hph2M/sxOAWVE9PB1I4JnNyhoWuF9v\
id0XcU34kwWqBBlI+LjDErCQyaR4ysFgDX61V4kUuCKwBOMp+UGxhL648VTv5Qji/YwvIzt7nguUOZ5A\
GPISqsC0717hc0Aja1mvHkQqg9aXKznmszmyKZGhcm2+SU8= root@bandoler.guifi.net\
"
nvram set http_enable="1"
nvram set https_enable="1"
#
# NTP Network time protocol
nvram set ntp_enable="1"
nvram set ntp_server="10.138.15.130"
#
# AP mode
nvram set wl_mode="ap"
nvram set wl0_mode="ap"
nvram set wl_channel="1"
nvram set wl_ssid="guifi.net-TorelloDipSudAP3"
nvram set wl_macmode="disable"
nvram set wl0_macmode="disable"
nvram set wl_macmode1="disable"
nvram set wl0_macmode1="disable"
#
# Firewall disabled
nvram set filter="off"
# Alchemy OSPF routing
nvram set wk_mode="ospf"
nvram set dr_setting="3"
nvram set route_default="1"
nvram set dr_lan_rx="1 2"
nvram set dr_lan_tx="1 2"
nvram set dr_wan_rx="1 2"
nvram set dr_wan_tx="1 2"
#
# DHCP
nvram set dhcpd_statics="
10.138.60.2 00:16:01:ED:08:AE TorelloEMartinRadio3
10.138.60.3 00:14:BF:D2:6C:B3 TorelloJCasadoRadio1
10.138.60.4 FF:FF:FF:FF:FF:FF TorelloAToneuRadio3
10.138.60.5 00:14:BF:77:9C:BF TorelloJMLopez
10.138.60.6 FF:FF:FF:FF:FF:FF TorelloFlorenSanchezRadio1
10.138.60.7 00:16:B6:11:42:90 TorelloGCollazosRadio1
10.138.60.8 FF:FF:FF:FF:FF:FF TorelloXRoma
10.138.60.9 00:16:B6:11:46:AA TorelloJrifa
10.138.60.10 00:14:BF:3C:99:0C SVDTCarsan
10.138.60.11 00:14:BF:EF:36:54 TorelloLVaqueRadio1
10.138.60.12 00:14:BF:EB:76:23 TorelloSVicencRadio1
10.138.60.13 00:16:00:1D:32:CE TorelloFSanchezRadio1
10.138.60.14 00:16:B6:11:48:04 TorelloEcubiRadio1
10.138.60.15 00:1D:73:18:88:3F TorelloSilverRadio1
10.138.60.16 FF:FF:FF:FF:FF:FF TorelloLLCapaRadio1
10.138.60.17 00:1D:7E:F1:03:27 TorelloXVillegasRadio1
10.138.60.18 FF:FF:FF:FF:FF:FF TorelloEMartiRadio1
10.138.60.19 00:16:B6:D9:00:2D TorelloARuizRadio1
10.138.60.20 00:16:B6:D9:00:30 TorelloMPuigviRadio1
10.138.60.21 00:1A:70:47:B8:B1 TorelloMasRadio1
10.138.60.22 00:16:01:4D:95:E2 TorelloIvetRadio1
10.138.60.23 00:16:01:F4:A9:61 TorelloDavidTRadio1
10.138.60.24 FF:FF:FF:FF:FF:FF TorelloManelCRadio1
10.138.60.25 00:16:B6:D9:01:0B TorelloADovalRadio1
10.138.60.26 FF:FF:FF:FF:FF:FF TorelloJCasanovasRadio1
10.138.60.27 00:15:6D:A7:AE:31 TorelloLlTanyaRd1
10.138.60.28 FF:FF:FF:FF:FF:FF torellobaradio1
10.138.60.29 FF:FF:FF:FF:FF:FF TorelloECarreraRadio2
10.138.60.30 FF:FF:FF:FF:FF:FF torelloyespesRadio1
10.138.60.31 00:16:B6:11:46:B4 torelloAijunRadio1
10.138.60.32 00:1D:7E:ED:03:0D TorelloRicardRodriguRd1
10.138.60.34 00:16:B6:D9:12:96 TorelloDolsaGarciaRadio1
10.138.60.35 00:16:01:F4:8B:AF TorelloVienaRadio1
10.138.60.36 00:16:B6:D9:C2:A5 torellodpalauRadio1
10.138.60.38 FF:FF:FF:FF:FF:FF TorelloLozanoRadio1
10.138.60.39 00:16:B6:11:42:A0 TorelloMVerdaguer
10.138.60.40 00:16:B6:11:46:AE TorelloGPenaRadio1
10.138.60.41 FF:FF:FF:FF:FF:FF torellopsurribasRadio1
10.138.60.42 00:16:B6:11:46:C3 TorelloPEscribaRadio1
10.138.60.43 00:16:B6:D9:01:02 TorelloJRomaRadio1
10.138.60.45 00:16:B6:11:46:BA TorelloSalvadorERadio1
10.138.60.48 00:16:01:0D:00:52 TorelloMVazquezRadio1
10.138.60.49 00:16:01:0D:02:C2 TorelloAMaciaRadio1
10.138.60.51 00:18:39:86:F2:6F TorelloASubiranasRadio1
10.138.60.55 00:18:39:BC:0D:CA TorelloMPalaciosRadio1
10.138.60.57 FF:FF:FF:FF:FF:FF TorelloCongostRadio1"
nvram set dhcp_start="62"
#
#
nvram set rc_startup="#!/bin/ash
#
# unsolclic: v3.6-beta
# radio: 1493-TorelloDipSudAP3
#
#
/bin/sleep 10
/usr/sbin/wl shortslot_override 0"
#
# end of script and reboot
nvram commit
reboot