# Generated for:
# Alchemy
#
# unsolclic version: v3.7
# 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.
#
# TorelloGestiomat
# Global network parameters
nvram set router_name="TorelloGestiomat"
nvram set wan_hostname="TorelloGestiomat"
nvram set lan_ipaddr="10.138.50.193"
nvram set lan_gateway="0.0.0.0"
nvram set lan_netmask="255.255.255.224"
nvram set wan_proto="disabled"
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.0.2 10.138.50.194"
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.0.2"
#
# AP mode
nvram set wl_mode="ap"
nvram set wl0_mode="ap"
nvram set wl_channel="10"
nvram set wl_ssid="guifi.net-TorelloGestiomat"
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 dr_setting="3"
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"
nvram set wk_mode="ospf"
nvram set route_default="1"
nvram set expert_mode="1"
nvram set ospfd_conf="
!
password guifi
enable password guifi
!
interface br0
interface wds0.
!
router ospf
ospf router-id 10.138.50.193
network 10.138.50.192/27 area 0
default-information originate
!
line vty
!"
#
# DHCP
nvram set dhcpd_statics="
10.138.50.195 FF:FF:FF:FF:FF:FF TorelloDPlanasRadio1
10.138.50.196 00:1D:73:55:56:6F TorelloEsterRRd1
10.138.50.197 00:0D:0B:CB:55:0E TorelloCanReig4
10.138.50.198 00:16:01:F4:AF:04 TorelloAClavijoRadio1
10.138.50.199 00:12:F0:05:A5:2C TorelloPCasasTRadio1
10.138.50.200 00:16:01:AD:D5:AC TorelloDabkiewiczRadio1
10.138.50.201 00:00:00:00:00:01 TorelloillamolaRd2
10.138.50.202 00:1D:73:18:1A:87 sergimariaRd1
10.138.50.203 FF:FF:FF:FF:FF:FF TorelloMiquel
10.138.50.204 FF:FF:FF:FF:FF:FF JBonetRadio1
10.138.50.206 FF:FF:FF:FF:FF:FF TorelloMinaireRadio1
10.138.50.207 FF:FF:FF:FF:FF:FF TorelloCodisaRadio1
10.138.50.208 00:14:BF:D2:66:35 TorelloRTornerRd1
10.138.50.210 00:1D:73:55:73:57 TorelloSandraSanchezRd1
10.138.50.211 00:15:6D:AD:5E:BC TorelloJorditejedorRd1
10.138.50.212 00:21:29:B5:E6:DA TorStMiquel34Rd1
10.138.50.213 00:1D:7E:C6:D2:32 TorelloIsmaRd1
10.138.50.214 00:15:6D:AE:D9:2D torelloaserraRd1
10.138.50.216 00:16:B6:C9:17:E8 TFrancescXRd1
10.138.50.217 00:15:6D:D9:16:F8 TorelloJuanRRd1
10.138.50.218 00:15:6D:F7:78:55 TorelloDRubioRd1
10.138.50.221 00:15:6D:F6:74:7B TorelloViveRd1
10.138.50.222 00:18:39:83:0E:70 TorelloRosellRd2"
nvram set dhcp_start="227"
#
#
nvram set rc_startup="#!/bin/ash
#
# unsolclic: v3.7
# radio: 878-TorelloGestiomat
#
#
/bin/sleep 10
/usr/sbin/wl shortslot_override 0"
#
# end of script and reboot
nvram commit
reboot