supernodo 11a
Es un Linksys WRT54GL flasheado con DD-Guifi v1.02 con su configuración por defecto; además es el que hace de DHCP.
# Generat per a:
# DD-guifi
# unsolclic version: v3.6-beta
nvram set router_name="Nodo11a"
nvram set wan_hostname="Nodo11a"
nvram set lan_ipaddr="10.35.229.161"
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="n11.badalonawireless.net"
nvram set wan_dns="10.35.228.131 10.35.228.35 10.35.229.3"
nvram set wan_domain="n11.badalonawireless.net"
nvram set http_passwd="badalona"
nvram set time_zone="+01 2 2"
nvram set sv_localdns="10.35.228.131 10.35.228.35 10.35.229.3"
nvram set wl_net_mode="mixed"
nvram set wl0_net_mode="mixed"
nvram set wl_afterburner="on"
nvram set wl_frameburst="on"
nvram set txant="0"
nvram set wl0_antdiv="0"
nvram set wl_antdiv="0"
nvram set block_wan="0"
#
# Gestio
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="badalonawireless.net"
nvram set snmpd_syscontact="badalonawireless.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 AAAAB3NzaC1yc2EAAAABIwAAAQEAvx2HVO8lbj8ombxf5fSAv8IZR9DHOLQlhzUCq/N3VvvuCy3LlNjju1JSLunxPpVWOE9ZDnP6V0KCYg+n\
65S2t7K/Aj1v4951MFSIw1ZAmYPJCgXHRt6fJ0tloDIqC1RaHDtSNtQtbKK2TBMvAJwrdYcr85eu8MtnXgce2GC7DqWxrOS6wUm2hiadz2Bv\
i9Rwvc7vmmkpcax62dYpF0VCJjkpFUqJ1FqM76O1GgcnK/awqfT3Ic0ghFBROZnB8KdWtgNvGX05ynaL4tooWmFtB1p95Chk5NWllvm3XKbb\
aTyyz8BaILjdwYhbFVXUtT/vOBzBV+dbpyp3kXhX7bGONw== bdnwlnetadm@tuxi.n03.badalonawireless.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.35.228.36"
#
# Mode AP
nvram set wl_mode="ap"
nvram set wl0_mode="ap"
nvram set wl_channel="4"
nvram set wl_ssid="badalonawireless-n11"
nvram set wl_macmode="disable"
nvram set wl0_macmode="disable"
nvram set wl_macmode1="disable"
nvram set wl0_macmode1="disable"
#
# Tallafocs desactivat
nvram set filter="off"
#snmp, ssh y redireccionador
nvram set rc_firewall="iptables -F;iptables -X;iptables -t nat -F;\
iptables -t nat -X;\
iptables -A FORWARD -p tcp --dport 80 -d 10.35.228.35 -j ACCEPT; \
iptables -A PREROUTING -t nat -p tcp -s 10.35.229.160/27 -d! 10.32.0.0/13 \
--dport 80 -j DNAT --to 10.35.228.35:80; \
iptables -t nat -A POSTROUTING -p tcp -s 10.35.229.160/27 -d 10.35.228.35 \
--dport 80 -j MASQUERADE; \
iptables -A INPUT -m state --state INVALID -j DROP \
"
# DD-WRT OSPF routing
nvram set wk_mode="ospf"
nvram set routing_lan="on"
nvram set routing_wan="on"
nvram set routing_ospf="on"
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"
#zebra conf
nvram set zebra_conf="hostname zebra
password zebra
enable password zebra
interface br0
line vty"
#ospfd conf
nvram set ospfd_conf="hostname ospfd
password zebra
enable password zebra
interface br0
ip ospf hello-interval 10
ip ospf priority 1
ip ospf dead-interval 40
ip ospf cost 1
ip ospf retransmit-interval 7
ip ospf transmit-delay 8
line vty
router ospf
ospf router-id 10.35.229.161
redistribute kernel
redistribute connected
redistribute static
network 0.0.0.0/0 area 0
no default-information originate"
#
# DHCP
nvram set dhcp_lease="720"
nvram set static_leasenum="0"
nvram set dhcp_start="166"
#
#
nvram set rc_startup="#!/bin/ash
/usr/sbin/wl shortslot_override 0
ifconfig eth1 -promisc -allmulti
ifconfig br0 -promisc -allmulti
ifconfig eth0 promisc
killall -9 zebra; killall -9 ospfd
/usr/sbin/zebra -r -d -f /tmp/zebra.conf;/usr/sbin/ospfd -d -f /tmp/ospfd.conf
cd /tmp/var/snmp
grep count_ip_conntrack < snmpd.conf || echo "exec count_ip_conntrack \
/bin/sed -n $= /proc/net/ip_conntrack" >> /var/snmp/snmpd.conf
killall -TERM snmpd
/usr/sbin/snmpd -c /var/snmp/snmpd.conf"
#
# Fi del script i reiniciar
nvram commit
reboot

Comentarios recientes
hace 1 semana 3 días
hace 2 semanas 23 horas
hace 3 semanas 2 días
hace 3 semanas 6 días
hace 4 semanas 1 día
hace 4 semanas 1 día
hace 5 semanas 3 días
hace 5 semanas 5 días
hace 5 semanas 5 días
hace 5 semanas 6 días