ez-ipudate didn't changes between r396-r461. So, if router provides internet successfully, it is not an error of FW itself.
Printable View
hello!
I have some problems with wget (the one from ipkg)
basicly when you try to download something it takes ages to resolve the adress for some reason:confused:
about 30 to 50 seconds
with the wget from /usr/bin/wget it just happens straight away
I'm not entirely sure if this is firmware related but it seemed to happen after updating r396 to r473
well yes that's the weird thing since I'm using the same DNS server for everything.
My modem is on 192.168.1.1
and the router is connected via dhcp and has no problem receiving the dns server (confirmed by the modem). The only thing the router does is forward the dns server on 192.168.2.1 (used by the computers)
Even when I connect to the dns server directly and try browsing on my pc, there is no delay in resolving addresses.
the nslookup command gives this:
I mean... it's using the right adressPHP Code:nslookup google.com
Server: 192.168.1.1
Address 1: 192.168.1.1 openrg.home
[about 20 seconds delay]
Name: google.com
Address 1: 74.125.127.100
Address 2: 74.125.67.100
Address 3: 74.125.45.100
even when I try an open dns server I get the same delay:
so I dunno anymore:pPHP Code:nslookup google.com 208.67.220.220
[10 seconds delay]
Server: 208.67.220.220
Address 1: 208.67.220.220
[another 20 sec delay]
Name: google.com
Address 1: 74.125.67.100
Address 2: 74.125.127.100
Address 3: 74.125.45.100
Gentlemen, I need your help to solve my PREROUTING problem …
I used the latest FW, seem that during few hours after rebooting the 500gP v1 everything is work, but after some time everything stops.
Asus 500gp used as AP as open system. In some cases the clients have to be prerouted to the information web pages on port 81.
On port 81 I use bysybox_httpd, starting with post-mount script:
When the client has to be prerouted I use the following command in script:Code:# InfoWeb server on 81
busybox_httpd -p 81 -u root -h /tmp/harddisk/opt/www_info
So, after fresh reboot the prerouting is working, but after some time and adding new MACs to preroute list the browser got TIME OUT, and no Info Pages appears.Code:mac=$1
port=$2
iptables -t nat -A PREROUTING -p tcp -m mac --mac-source $mac --dport 80 -j DNAT --to-destination 192.168.1.1:$port
The command
gives:Code:iptables -L -vn -t nat
Where is the trouble?Code:Chain PREROUTING (policy ACCEPT 300K packets, 23M bytes)
pkts bytes target prot opt in out source destination
147K 14M VSERVER all -- * * 0.0.0.0/0 83.183.110.99
46 2192 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 MAC 00:1D:EE:61:FE:11 tcp dpt:80 to:192.168.1.1:81
Chain POSTROUTING (policy ACCEPT 97076 packets, 9890K bytes)
pkts bytes target prot opt in out source destination
211K 15M MASQUERADE all -- * vlan1 !83.183.110.99 0.0.0.0/0
823 82476 SNAT all -- * br0 192.168.1.0/24 192.168.1.0/24 to:192.168.1.1
Chain OUTPUT (policy ACCEPT 18669 packets, 1220K bytes)
pkts bytes target prot opt in out source destination
Thank you
WiZi
Unfortunately, this is not easy question, for me at least.
We already has similar reports (see Issue 34), but still can't reproduce problem.
In your sample I can see only single DNAT rule. Is problem appears with single client after some time, or only when several rules was added? Did you remove rule for disconnected clients?
When forwarding stops, can you trace packets with tcpdump yourself?
Hi,
The trouble starts every time, not depending on the number of added MACs.
No, all added rules are permanent. Some cases use the same way to preroute the unwanted clients to the port 82, where ra the BanPages about banned MAC.
Some more specification of 500gp:
- the 500gp is used without WIFI card, so just HOME GATEWAY for Ethernet ports
- all clients are connecting using standalone APs connected to the 500gp trough LAN
Is there must be any additional rule to allow prerouting trough “br0” ?
Thank you
WiZi
I will try to reproduce situation.
Can you tell me if packets counter (output of "iptables -L -vn -t nat") still increase value after forwarding stops? After which time period this bug appeared - one hour, one day ? Was this happens on previous FW versions?
Updated 04-09-2009:
Unfortunately I can't reproduce fail, rule live above day with constant HTTP_GET queries:PHP Code:$ iptables -L PREROUTING -t nat -vn
Chain PREROUTING (policy ACCEPT 3635 packets, 456K bytes)
pkts bytes target prot opt in out source destination.
313K 19M DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 MAC 00:1E:8C:5C:BC:XX tcp dpt:81 to:192.168.1.100:8181
lly,
I need the following under the oleg firmware, please help:
1) NTFS support (stable read-only will be ok), do I need to install ntfs-3g or just ntfs.o? If need to install ntfs-3g, what are the commands to load? insmod -s fuse.o and then....?
2) how can I enable jffs support in oleg? I understand that flashfs is only 64k and only enough for scripts. Where can I store the
3) what are the scripts to auto-detect usb plugged in and enable auto-mounting of partitions?
4) how to support codepages 936 (ie. chinese characters in filename) over samba? where to dl the necessary files?
many thanks!
the support is already here, but internal flash memory is used for flashfs (gzipped tar actually) by now. So, it's kinda useless.
/usr/local/sbin/post-mount
you need to build or to search for codepage.936 and unicode_map.936 charset files, then place it in /usr/codepage folder, using mount -o bind
currently, we have no plans to add more ddns services, 'coz http://www.dnsomatic.com supports a lot of them, acting as ddns proxy.
Search forum for torrent/transmission threads
he actually meant that the kernel modules to support jffs are already built and available in the file modules-1.9.2.7-d-rXXX.tgz here: http://code.google.com/p/wl500g/downloads/list
To use it you need to familiarize yourself with the documentation on this file system, or have a look how it is implemented, e.g. in openwrt.
and then you need to create jffs/jffs2 partition instead flashfs mtd block and so on.
search google,
http://uuu.enseirb.fr/~kadionik/embe...howto_mtd.html
and beware, firmware is pretty sure that there's flashfs, but not jffs.
moreover, choosing wrong mtd block could (and I'm afraid will) brick your router
I tried to plug in a ntfs thumb drive, I can see that under telnet, the NTFS drive is mounted (can be found under /tmp/mnt) and the file can be listed using ls. However, when I tried to use the explorer to open the share folder via samba in windows, the directory cannot be found. Why is that?
I tried to create a post-mount script to load in the 936 codepage, how to restart the samba service? commands pls!
found a bug in the firmware:
I've done the following to enable codepage 936
1) mount the codepage file to /usr/codepages
2) modified /etc/smb.conf to add in "client code page = 936" in global section
3) created /usr/sbin/.files to include /etc/smb.conf
4) the samba config web page (dos code page set to "unspecified")
5) flashsh save, commit, enable (can see that /etc/smb.conf is included)
However, when I reboot the router or mount a new disk, the line "client code page = 936" just disappears from the etc/smb.conf file. appears that smbd resets and write to the smb.conf everytime it mounts/restarts and remove the custom setting.
Can author add a section in samba setup web page for a field to include custom code page paramater "client code page = 936" when unspecified codepage is selected?
If you start samba from GUI, this is expected behavior for all Oleg based FW's.
Good idea, but we are too busy to do it now. If someone can prepare patch for this, it will be done much faster.Quote:
Can author add a section in samba setup web page for a field to include custom code page paramater "client code page = 936" when unspecified codepage is selected?
As workaround you can set manuallyCode:nvram set usb_smbcpage_x=936
[QUOTE=lly;159531]If you start samba from GUI, this is expected behavior for all Oleg based FW's.
How can I start samba from the post-boot script manually (which includes auto-mounting of USb drives)? the samba command line appears a bit different for oleg version
Heard that samba3 solve the current Chinese character problem, can the oleg firmware install samba3?
coming back on the DNS problems I have...
I just reflashed the firmware again (via tftp) and set up everything manually.
but it doesn't seem to make any difference:confused:
I didn't even set advanced stuff, just the things needed to connect to the internet, very basic.
And still the same results:confused:
multiple applications suffer from this slow resolving...
I think there is just something that's not entirely right.
like with the scsi start/stop utilities on googlecode, it sometimes works half, even when I restart the script or try it manually, the only fix is a reboot.
EDIT:
it seems not to matter if dnsmasq is running or not, it just has the same result on nslookup!
I have filesnames originally in utf8 coding, contains simplified chinese, traditional chinese and japs characters in the filename for different files. Should I install samba3 or can use certain codepages in order for Windows xp to display the samba shared filenames correctly? If samba2 is ok, what's the codepage I need to install?
well yes, that was my idea as well!
but it seems that nslookup responds the same way when dnsmasq (self compiled one and the one from the fw) is running or isn't running at all.
it looks up the ip-adresses, just very slowly:p
this is not a dnsmasq problem I think:confused:
Hey, I updated to r566
since I saw this update:
it doesn't make any difference however:(Quote:
dnsmasq 2.50test10 (speedup of DNS queries)
dnsmasq in firmware:
my native compiled version:Code:dnsmasq: started, version 2.50test10 cachesize 150
dnsmasq: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
dnsmasq-dhcp: DHCP, IP range 192.168.2.2 -- 192.168.2.254, lease time 1d
dnsmasq: read /etc/hosts - 2 addresses
dnsmasq: using nameserver 192.168.1.1#53
contents of /etc/hosts:Code:dnsmasq: started, version 2.50 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
dnsmasq-dhcp: DHCP, IP range 192.168.2.2 -- 192.168.2.254, lease time 1d
dnsmasq: read /etc/hosts - 2 addresses
dnsmasq: using nameserver 192.168.1.1#53
and as usual, it doesn't matter for nslookup whether dnsmasq is running or not, it always does exactly the same thing.Quote:
127.0.0.1 localhost.localdomain localhost
192.168.2.1 wpte.kicks-ass.net my.router my.WL500W
dnsmasq is launched at startup properly and shows up in the processlist.
EDIT:
It seems when I edit /etc/resolv.conf to use opendns servers instead of my modems 192.168.1.1 the lookup works very fast...
Quote:
nameserver 208.67.222.222
nameserver 208.67.220.220
even when I set the nslookup to use the modems server:Quote:
nslookup google.com
Server: 208.67.222.222
Address 1: 208.67.222.222 resolver1.opendns.com
Name: google.com
Address 1: 74.125.45.100 yx-in-f100.google.com
Address 2: 74.125.67.100 gw-in-f100.google.com
Address 3: 74.125.127.100 pz-in-f100.google.com
that is kinda weird...:confused:Quote:
nslookup google.com 192.168.1.1
Server: 192.168.1.1
Address 1: 192.168.1.1
Name: google.com
Address 1: 74.125.67.100 gw-in-f100.google.com
Address 2: 74.125.127.100 pz-in-f100.google.com
Address 3: 74.125.45.100 yx-in-f100.google.com
now I guess I should be calling my ISP for some explenations?
nslookup on xp/vista/7 seem to work good with 192.168.1.1 however... still a bit weird:
I'll be using the opendns servers I guess:pQuote:
C:\>nslookup google.com
Server: openrg.home
Address: 192.168.1.1
DNS request timed out.
timeout was 2 seconds.
Name: google.com
Address: 74.125.45.100
Can you resetup your modem into the bridge mode and use pppoe connection type? Smth's wrong with modem's dns server/resolver.
And/or you can always specify ISP's dns servers inside router to not to depend from modem's one.
EDIT: to add any additional dns servers you should create /usr/local/etc/dnsmasq.conf with
that'smy config for opendns 'coz my IPS have probs sometimes with resolvingCode:server=208.67.222.222
server=208.67.220.220
Yeh well, I created the configuration in the web interface, since you can manually specify what servers to use:)
and that with the modem is not going to work... it only supports DHCP LAN, and does not have a wireless extention card at the moment.
I have a "LiveBox" from sagem, and it's known to fail.
http://www.ecoscentric.com/images/wa...ox-redboot.jpg
next year they should come with optic fiber, the main line is only 50meter away from me, laying there for almoast 3 years... but when I get it I'll be having a new modem as well as a new ISP, since this one just doesn't care if your modem breaks down:p
the current configuration is just standart, latest firmware (happens automatically, and no way to go back), and everything is portforwarded to my wl-500w:D
Just flashed this firmware, but now the router doesn't mount my harddisks anymore.
Also /dev/disks isn't present.
All disks are behind a usb2.0 hub. The strange thing is that the hub gets detected twice
Code:Jan 1 01:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
Jan 1 01:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:03 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 01:00:03 kernel: hub.c: USB hub found
Jan 1 01:00:03 kernel: hub.c: 2 ports detected
Jan 1 01:00:03 kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
Jan 1 01:00:03 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 01:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 01:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:03 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 01:00:03 kernel: hub.c: USB hub found
Jan 1 01:00:03 kernel: hub.c: 2 ports detected
Jan 1 01:00:04 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 1 01:00:04 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan 1 01:00:04 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan 1 01:00:04 kernel: ehci_hcd 01:03.2: irq 12, pci mem c0147000
Jan 1 01:00:04 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 01:00:04 kernel: EHCI: Enabling VIA 6212 workarounds
Jan 1 01:00:04 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
Jan 1 01:00:04 kernel: hub.c: USB hub found
Jan 1 01:00:04 kernel: hub.c: 4 ports detected
Jan 1 01:00:04 kernel: usb.c: registered new driver usblp
Jan 1 01:00:04 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:04 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 01:00:04 kernel: Initializing USB Mass Storage driver...
Jan 1 01:00:04 kernel: usb.c: registered new driver usb-storage
Jan 1 01:00:04 kernel: USB Mass Storage support registered.
Jan 1 01:00:04 kernel: vlan1: Setting MAC address to 00 xx xx xx xx xx.
Jan 1 01:00:04 kernel: VLAN (vlan1): Underlying device (eth0) has same MAC, not checking promiscious mode.
Jan 1 01:00:05 dnsmasq[73]: read /etc/hosts - 3 addresses
Jan 1 01:00:05 dnsmasq-dhcp[73]: read /etc/ethers - 2 addresses
Jan 1 01:00:05 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Jan 1 01:00:05 dhcp client: deconfig: lease is lost
Jan 1 01:00:05 kernel: hub.c: USB hub found
Jan 1 01:00:05 kernel: hub.c: 4 ports detected
Jan 1 01:00:05 dnsmasq[73]: read /etc/hosts - 3 addresses
Jan 1 01:00:05 dnsmasq-dhcp[73]: read /etc/ethers - 2 addresses
Jan 1 01:00:05 dnsmasq[73]: using nameserver .........
Jan 1 01:00:05 dnsmasq[73]: using nameserver .........
Sep 15 11:56:28 ddns: IP address has not changed since the last update
Sep 15 11:56:28 dhcp client: bound IP : ...............
Sep 15 11:56:28 kernel: hub.c: new USB device 01:03.2-1.1, assigned address 3
Sep 15 11:56:37 ntp client: Synchronizing time with time.nist.gov ...