Has anyone gotten a SOCKS proxy working on the 500g? My solution works, but I understand (and could be wrong) that using SOCKS means that the DNS lookup is done on the proxy machine.
Type: Posts; User: RCR
Has anyone gotten a SOCKS proxy working on the 500g? My solution works, but I understand (and could be wrong) that using SOCKS means that the DNS lookup is done on the proxy machine.
Erik, sorry for the long delay in answering, I haven't visited here in a while. My stuff is here.
Let me know if you find it useful.
The file that contains the USB mounts is /init/ftpdserver. But the device is not mounted read-only. Does your USB drive have a write lock that's set?
Oleg - what's the maximum size of the cramfs part of the firmware?
Thanks.
Answering my own question...
BUILD_DIR=build
TRX=$HOME/router/linksys/WRT54G/release/tools/trx
sudo /usr/sbin/mkcramfs $BUILD_DIR $BUILD_DIR.cramfs
rootfs_size=`stat -c "%s" rootfs`...
Has anyone been able to unpack and repack the new firmware? I suspect a change in the Asus header (or is it trailer...). What used to work with the old firmware: unpack/repack/upload no longer...
I'll stick with my approach of branching to the USB-resident init file ("functions" in Asus-speak) - their "user start" happens down in the FTP server startup script after a bunch of other setup work...
Just arrived, dated Mar. 23:
ftp://www.asus.com/pub/ASUS/wireless/WL-500g-03/wg01070506_WL500g_en.zip
This has the iptables state module. A quick recursive diff of the unpacked root file...
It's worse than bad setup scripts. Look at the /usr/local/lib/iptables directory - no state module!
Oddly enough the stuff that was posted purporting to be the Asus source (as required by the...
I'll be interested to see what you come up with. You might want to take a look at the O'Reilly book "Building Embedded Linux Systems" by Karim Yaghmour.
The micro_proxy proxy is designed to run from inetd, which isn't on the router. But you can compile BusyBox to give you an inetd daemon. This takes up more runtime RAM, though, so I prefer...
The router probably can't handle a lot of traffic, so this is probably a 1-user option, but it's handy if, for example, you need to use HTTP(S) from behind a firewall that only allows SSH out, or if...
I've had some success with using the router as a HTTP(S) proxy server. How? Well, if you have a program (an HTTP(S) proxy in this case) running the router on, for example, port 5000, and you have...
I agree that most is not needed. Could you explain #4, though? How does the splink_led module cause a reset, and what triggers it?
After some experimentation, I decided to avoid watchdog...
I just realized that the watchdog program has its configureation hard-coded into the binary . This will be a problem for anyone wanting to make significant changes to the way the router runs. For...
Also note that, if you want to use an alternate shell (not /bin/sh), for example "/mnt/ramfs/bin/ash", in the shell field of the /etc/passwd file, you have to add that shell to /etc/shells, which...
I don't think this is correct. I think the client (on the PC, not router) tells the server (dropbear on the route) what commad to execute. If you run your client with debug, you'll see the scp...
Oleg,
I have compiled dropbear and am running it as a daemon from the USB drive. However, I can't scp files to or from the Asus. Does scp work with your firmware? Is there a path issue,...
Oleg, since with your newest firmware some binaries are linked to libc and others are linked to ulibc, does this mean you give up RAM (because both shared libs are loaded) to save flash memory?
...
Thanks for the heads up on the ssh addition. As to the packing scripts, your original will only unpack the factory firmware, I wanted to be able to unpack yours and modify it without rebuilding...
I just emailed them. Here's the text of the README file:
Based on Oleg's work, I've written some tools to help unpack and repack the trx files. These will work with any trx file, even the modified ones since they unpack based on info found in the trx...
I agree. I would propose this priority:
[list=1]
Documentation, etc. on how to re-create the Asus firmware. To include how to set up your toolchain, how to build, how to install.
Changes based...
Thanks, Oleg, I won't be concerned about the small difference in size and content. How did you arrive at the offsets you use in the dd commands in your extract scripts? [Never mind - I see that was...
If I unpack and repack the factory firmware using the instructions on this forum, the new packed file is not identical to the original, even though I didn't modify anything in the build directory. ...