Talk:Olegs Firmware on Asus WL-500gP
From Free Knowledge Base- The DUCK Project: information for everyone
FROM HERE ON IS THE OLEGS FIRMWARE (not openwrt as above)
Olegs Firmware on Asus WL-500gP
Client mode does not work as expected: could not access internet in client mode Affected versions: all stock firmwares, no workaround Fixed in the 1.9.2.7-3 http://wl500g.info/faq.php?faq=asus_wl_x
flashfs save && flashfs commit && flashfs enable && reboot
wl0_mode=ap wl_mode=ap
Not necessary to copy wl_apsta.o anymore, included in wl.o now
brctl delif br0 eth1 ifconfig eth1 down echo 1 > /proc/sys/net/ipv4/ip_forward ifconfig eth1 up wl ap 0 wl scan wl scanresults wl join "SSID"
route add default gw eth1
udhcpc -i eth1 -s /bin/true
iptables -t nat -P POSTROUTING DROP iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
ping x.x.x.x
________________________________________________________________________________
since firmware 1.7.5.9-2 :
- (firmware is 1.9.2.7-7g)
VIA WEB INTERFACE
- set the router SSID to SSID of the AP you wish to connect to - set LAN interface parameters and workstation - set WAN interface to parameters of wireless network from AP because in * Wireless, Advanced, set Extended mode to "station" so wl scan would work client mode the WAN and WLAN functions are exchanged.
VIA TELNET
- nvram set 13_x_ClientMode=1 (0=ap, 1=sta, 2=wet) - nvram set 13_x_IBSS=1 (do this only if you need IBSS) - nvram commit - reboot
Use "wl assoc" to check the connection status.
nvram set 13_x_ClientMode=1 nvram commit
script /usr/share/udhcpc/default.script failed: No such file or directory
wl ap 0 wl wet 1 wl scan wl scanresults wl join "SSID" brctl showmacs br0 wl scan -t passive wl scanresults wl scan; sleep 2s; wl scanresults
[admin@(none) root]$ nvram show|sort size: 9662 bytes (23106 left) audio_enable=1 autofw_desc_x= autofw_enable_x=0 autofw_inport_x= autofw_inproto_x= autofw_num_x=0 autofw_outport_x= autofw_outproto_x= autofw_port0= boardflags=0x0110 boardnum=45 boardrev=0x10 boardtype=0x042f boot_local=1.9.2.7-7g boot_wait=off bridge_disable=0 cfe_wait_led_gpio=1 cfe_wait_on_restore=0 clkfreq=264 console_loglevel=0 custom_shutdown_command=stoprcasus ddns_enable_x=0 ddns_hostname_x= ddns_passwd_x= ddns_server_x= ddns_status_t= ddns_username_x= ddns_wildcard_x=0 default_boardflags=0x0110 default_http_passwd= default_http_username= default_lan_proto=dhcp_server default_new_disk_action=no_action default_physical_authentication_enable=disabled default_primary_pool_name= default_primary_share_name= default_router_disable=0 default_start_page=start_system.asp default_workgroup=WORKGROUP dhcp_dns1_x= dhcp_domain=wan dhcp_enable_x=1 dhcp_end=192.168.1.254 dhcp_gateway_x= dhcp_lease=86400 dhcp_start=192.168.1.2 dhcp_static_x=0 dhcp_staticip_x= dhcp_staticmac_x= dhcp_staticnum_x=0 dhcp_wins=wan dhcp_wins_x= dl_ram_addr=a0001000 dmz_ip= dmz_ipaddr= dr_default_x=1 dr_static_matric_x=1 dr_static_rip_x=0 dr_staticgateway_x= dr_staticipaddr_x= dr_staticnetmask_x=0 dr_staticnum_x=0 early_startup_command=convertasus et0macaddr=XX:XX:XX:XX:XX:XX et0mdcport=0 et0phyaddr=30 et1macaddr=XX:XX:XX:XX:XX:XX et1mdcport=1 et1phyaddr=31 ezc_enable=1 ezc_version=2 filter_client0= filter_lw_date_x=1111111 filter_lw_default_x=DROP filter_lw_dstip_x= filter_lw_dstport_x= filter_lw_icmp_x= filter_lw_num_x=0 filter_lw_proto_x= filter_lw_srcip_x= filter_lw_srcport_x= filter_lw_time_x=00002359 filter_maclist= filter_macmode=deny filter_wl_date_x=1111111 filter_wl_default_x=DROP filter_wl_dstip_x= filter_wl_dstport_x= filter_wl_icmp_x= filter_wl_num_x=0 filter_wl_proto_x= filter_wl_srcip_x= filter_wl_srcport_x= filter_wl_time_x=00002359 firmver=1.9.2.7 forward_port0= fw_disable=0 fw_dos_x=0 fw_enable_x=1 fw_log_x=none fw_lw_enable_x=0 fw_wl_enable_x=1 gpio6=robo_reset gpio_0_name=soft_power_switch gpio_3_name=power_enable hardware_version=WL500gp-01-01-00-00 http_lanport=80 http_passwd=admin http_username=admin http_wanport= infosvr_enable=1 is_default=1 is_modified=0 kernel_gpio_init_out_3=1 kernel_gpio_init_out_6=1 lan_dhcp=0 lan_domain= lan_gateway= lan_gateway_t=192.168.1.1 lan_hostname= lan_hwaddr=XX:XX:XX:XX:XX:XX lan_hwnames= lan_ifname=br0 lan_ifnames=vlan0 eth1 lan_ifnames_t=vlan0 eth1 lan_ipaddr=192.168.1.1 lan_ipaddr_t=192.168.1.1 lan_lease=86400 lan_netmask=255.255.255.0 lan_netmask_t=255.255.255.0 lan_proto=dhcp lan_proto_x=1 lan_route= lan_stp=1 lan_wins= landevs=vlan0 wl0 log_ipaddr= log_level=0 lpr_enable=1 macfilter_enable_x=disabled macfilter_list_x= macfilter_num_x=0 misc_conntrack_x=4096 misc_http_x=0 misc_httpport_x=8080 misc_io_mode=bcmgpio misc_lpr_x=0 misc_natlog_x=0 misc_ping_x=0 mr_enable_x=0 no_br=0 ntp_interval_x=2 ntp_server0=time.nist.gov ntp_server1= ntp_server=192.5.41.40 192.5.41.41 133.100.9.2 ntp_servers=time.nist.gov os_date=Apr 6 2007 os_flash_addr=bfc40000 os_name=linux os_ram_addr=80001000 os_server= os_version=3.91.37.0 pmon_ver=CFE 3.91.23.0 primary_ifname=eth0 printer_ifname=usb printer_model_t= printer_status_t= printer_user_t= productid=WL500gp qos_enable_x=0 qos_ipaddr_x= qos_maxbw_x= qos_minbw_x= qos_port_x= qos_rulenum_x=0 qos_umaxbw_x= qos_uminbw_x= qos_uport_x= qos_urulenum_x=0 raw_enable=1 regulation_domain=0X10US rescue_gpio=4 reset_gpio=7 restore_defaults=0 router_disable=0 scratch=a0180000 sdram_config=0x0062 sdram_init=0x0009 sdram_ncdl=0x407 sdram_refresh=0x0000 ses_enable=0 snmp_community=public snmp_contact=Administrator snmp_enable=0 snmp_location=Unknown sp_battle_ips=1 sr_enable_x=0 sr_gateway_x= sr_if_x= sr_ipaddr_x= sr_matric_x= sr_netmask_x= sr_num_x=0 sr_rip_x=0 startup_command=rcasus stats_server= telnet_enable=1 time_interval=20 time_zone=GMT0 timer_interval=3600 upnp_enable=1 url_date_x=1111111 url_enable_x=0 url_keyword_x= url_num_x=0 url_time_x=00002359 usb_audio_device= usb_bannum_x=0 usb_device= usb_ftp_device= usb_ftpanonymous_x=1 usb_ftpbanip_x= usb_ftpenable_x=1 usb_ftpmax_x=12 usb_ftpmaxuser_x= usb_ftpnum_x=0 usb_ftppasswd_x= usb_ftpport_x=21 usb_ftprights_x= usb_ftpscript_x= usb_ftpstaytimeout_x=240 usb_ftpsuper_x=0 usb_ftptimeout_x=120 usb_ftpusername_x= usb_nfsenable_x=0 usb_nfsnum_x=0 usb_smbcpage_x= usb_smbcset_x= usb_smbenable_x=0 usb_smbhidden_x=1 usb_smbwrkgrp_x=WORKGROUP usb_storage_device= usb_web_device= usb_web_flag= usb_webactivex_x=7777 usb_webattach_x=1 usb_webcaption_x=Web Camera Live Demo!!! usb_webdriver_x= usb_webenable_x=1 usb_webfresh_x=1 usb_webhttpcheck_x=0 usb_webhttpport_x=7776 usb_webimage_x=1 usb_webmode_x=1 usb_webmserver_x= usb_webrectime_x=0 usb_webremote1_x= usb_webremote2_x= usb_webremote3_x= usb_webremote4_x= usb_webremote5_x= usb_webremote6_x= usb_webremote_x=LAN Only usb_websecurity_date_x=1111111 usb_websecurity_time_x=00002359 usb_websecurity_x=0 usb_websendto_x= usb_websense_x=1 usb_websubject_x=Motion detection alert!!! vlan0hwname=et0 vlan0ports=1 2 3 4 5* vlan1hwname=et0 vlan1ports=0 5 vlan_enable=1 vts_desc_x= vts_enable_x=1 vts_ipaddr_x= vts_lport_x= vts_num_x=0 vts_port_x= vts_proto_x= vts_protono_x= wait_time=1 wan0_desc=Default Connection wan0_dns1_x= wan0_dns2_x= wan0_dns_t= wan0_dnsenable_x=1 wan0_domain= wan0_etherspeed_x=auto wan0_gateway= wan0_gateway_t= wan0_heartbeat_x= wan0_hostname= wan0_hwaddr=XX:XX:XX:XX:XX:XX wan0_hwaddr_x= wan0_hwname= wan0_ifname=vlan1 wan0_ifnames=vlan1 wan0_ipaddr= wan0_ipaddr_t= wan0_lease=86400 wan0_mode_x=2 wan0_nat_x=1 wan0_netmask= wan0_netmask_t= wan0_pppoe_ac= wan0_pppoe_demand=0 wan0_pppoe_idletime=1800 wan0_pppoe_ifname= wan0_pppoe_keepalive=0 wan0_pppoe_mru=1492 wan0_pppoe_mtu=1492 wan0_pppoe_options_x= wan0_pppoe_passwd= wan0_pppoe_relay_x=0 wan0_pppoe_service= wan0_pppoe_txonly_x=0 wan0_pppoe_username= wan0_primary=1 wan0_proto=dhcp wan0_proto_t= wan0_route= wan0_route_x=IP_Routed wan0_status_t=Disconnected wan0_unit=0 wan0_wins= wan_desc= wan_dns1_x= wan_dns2_x= wan_dns= wan_dns_t= wan_dnsenable_x=1 wan_domain= wan_etherspeed_x=auto wan_gateway= wan_gateway_t= wan_heartbeat_x= wan_hostname= wan_hwaddr= wan_hwaddr_x= wan_hwname= wan_ifname=vlan1 wan_ifname_t= wan_ifnames=vlan1 wan_ipaddr= wan_ipaddr_t= wan_lease=86400 wan_mode_x=2 wan_nat_x=1 wan_netmask= wan_netmask_t= wan_pppoe_ac= wan_pppoe_demand=0 wan_pppoe_idletime=1800 wan_pppoe_ifname= wan_pppoe_keepalive=0 wan_pppoe_mru=1492 wan_pppoe_mtu=1492 wan_pppoe_options_x= wan_pppoe_passwd= wan_pppoe_relay_x=0 wan_pppoe_service= wan_pppoe_txonly_x=0 wan_pppoe_username= wan_primary=0 wan_proto=dhcp wan_proto_t=Automatic IP wan_reason_t=lost IP from server wan_route= wan_route_x=IP_Routed wan_status_t=Disconnected wan_unit=0 wan_vport=4 wan_wins= wandevs=vlan1 watchdog=5000 web_hook_libraries=corewebhooks netwebhooks diskwebhooks winnet printwebhooks netregistration samplenetregistration samplehooks wl0_afterburner=off wl0_akm= wl0_antdiv=-1 wl0_ap_isolate=0 wl0_auth=0 wl0_auth_mode=none wl0_bcn=100 wl0_channel=0 wl0_closed=0 wl0_corerev=9 wl0_country= wl0_country_code=US wl0_crypto=0 wl0_dtim=1 wl0_frag=2346 wl0_frameburst=0 wl0_gmode=1 wl0_gmode_protection=off wl0_gmode_protection_x=0 wl0_hwaddr=XX:XX:XX:XX:XX:XX wl0_ifname=eth1 wl0_infra=1 wl0_key1= wl0_key2= wl0_key3= wl0_key4= wl0_key=1 wl0_lazywds=0 wl0_macapply_x=Both wl0_maclist= wl0_maclist_x= wl0_macmode=disabled wl0_macnum_x=0 wl0_maxassoc=128 wl0_mode=ap wl0_mode_ex=ap wl0_mode_x=0 wl0_mrate=0 wl0_net_reauth=36000 wl0_phrase_x= wl0_phytype=g wl0_phytypes=g wl0_plcphdr=long wl0_preauth=1 wl0_radio=1 wl0_radio_date_x=1111111 wl0_radio_power_x=19 wl0_radio_time_x=00002359 wl0_radio_x=1 wl0_radioids=BCM2050 wl0_radius_ipaddr= wl0_radius_key= wl0_radius_port=1812 wl0_rate=0 wl0_rateset=default wl0_rts=2347 wl0_ssid=default wl0_unit=0 wl0_wds= wl0_wds_timeout=0 wl0_wdsapply_x=0 wl0_wdslist_x= wl0_wdsnum_x=0 wl0_wep=disabled wl0_wep_x=0 wl0_wme=off wl0_wme_ap_be=15 63 3 0 0 off wl0_wme_ap_bk=15 1023 7 0 0 off wl0_wme_ap_vi=7 15 1 6016 3008 off wl0_wme_ap_vo=3 7 1 3264 1504 off wl0_wme_no_ack=off wl0_wme_sta_be=15 1023 3 0 0 off wl0_wme_sta_bk=15 1023 7 0 0 off wl0_wme_sta_vi=7 15 2 6016 3008 off wl0_wme_sta_vo=3 7 2 3264 1504 off wl0_wpa_gtk_rekey=0 wl0_wpa_psk= wl_afterburner=off wl_akm= wl_antdiv=-1 wl_ap_isolate=0 wl_auth=0 wl_auth_mode=open wl_bcn=100 wl_chan_list=1 2 3 4 5 6 7 8 9 10 11 wl_channel=0 wl_closed=0 wl_corerev= wl_country= wl_country_code=US wl_crypto=0 wl_dtim=1 wl_frag=2346 wl_frameburst=0 wl_gmode=1 wl_gmode_protection=off wl_gmode_protection_x=0 wl_hwaddr= wl_ifname= wl_infra=1 wl_key1= wl_key2= wl_key3= wl_key4= wl_key=1 wl_lazywds=0 wl_macapply_x=Both wl_maclist= wl_maclist_x= wl_macmode=disabled wl_macnum_x=0 wl_maxassoc=128 wl_mode=ap wl_mode_ex=ap wl_mode_x=0 wl_mrate=0 wl_net_reauth=36000 wl_phrase_x= wl_phytype=b wl_phytypes= wl_plcphdr=long wl_preauth=1 wl_radio=1 wl_radio_date_x=1111111 wl_radio_power_x=19 wl_radio_time_x=00002359 wl_radio_x=1 wl_radioids= wl_radius_ipaddr= wl_radius_key= wl_radius_port=1812 wl_rate=0 wl_rateset=default wl_rts=2347 wl_ssid=default wl_unit=0 wl_wds= wl_wds_timeout=0 wl_wdsapply_x=0 wl_wdslist_x= wl_wdsnum_x=0 wl_wep=disabled wl_wep_x=0 wl_wme=off wl_wme_ap_be=15 63 3 0 0 off wl_wme_ap_bk=15 1023 7 0 0 off wl_wme_ap_vi=7 15 1 6016 3008 off wl_wme_ap_vo=3 7 1 3264 1504 off wl_wme_no_ack=off wl_wme_sta_be=15 1023 3 0 0 off wl_wme_sta_bk=15 1023 7 0 0 off wl_wme_sta_vi=7 15 2 6016 3008 off wl_wme_sta_vo=3 7 2 3264 1504 off wl_wpa_gtk_rekey=0 wl_wpa_psk= wlan_hardware_present=yes wlan_ifname=eth1 wlan_ipaddr=192.168.x.1 wlan_netmask=255.255.255.0
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.1 * 255.255.255.255 UH 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 br0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
79/84