Bekijk de volledige versie : [HowTo] Install and configure Oleg's firmware
Hi,
/tmp is in memory and will be deleted if you power off / restart.
But your hdd is mounted to /tmp/harddisk (well, not really but the link shows to your hdd) and will be remounted after reboot.
You can see this if you use "mount"
wengi
bibi-phoque
27-01-2009, 20:07
Thanks for this great tutorial, I got everything I wanted running, ftp server, http server, transmission, ssh, Samba (the ones integrated to the firmware), I have write access to the USB drive, only the large files are causing me problem but I use ftp instead. I even got mediatomb working so I can stream video/audio from the PS3.
Now my problem is that none of these services are available from WAN.
When I first installed Oleg's firmware, I never went to command line and was able to access the ftp from WAN. When I started installing all the other services, I followed the tutorial step by step, but since, the ftp and the other services doesn't work from WAN (it works no problem from LAN).
The only thing I have done on the post-firewall was
#!/bin/sh
# this opens the ssh port to internet! Be sure to have strong passwords!
iptables -I INPUT -m tcp -p tcp --dport 22 -j ACCEPT
I did add the same command for the other ports, like 81 (web server), or 9091 (transmission), 20 and 21 for ftp, etc...
what am I doing wrong? why is the router blocking everything? I even tried to remove everything from the post-firewall (ftp from wan was working fine before I started touching everything).
I should mention that at one time I had the following in my post-firewall (http://www.macsat.com/php_web.php):
iptables -D INPUT -j DROP
iptables -A INPUT -p tcp --dport 81 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i $1 -p tcp --dport 80 -j DNAT --to-destination $4:81
iptables -A INPUT -j DROP
But I removed it when trying to debug my problem.
Thanks,
Yann
Hi,
unfortunaly this is iptables-magic, which i am not used to.
I use the wl-hdd as client in my network.
Maybe any other user can help you with this
wengi
bibi-phoque
28-01-2009, 11:44
Hi Wengi,
You are right, the problem is iptable related, not with your tutorial. I just don't understand what could cause the router to reject everything from WAN when the only thing I have in my post-firewall is "accept" port 21 and 22.
How can I make sure that the post-firewall is executed at the start? the post-firewall is executable and doesn't output errors when run manually.
However, when running iptables -L, I don't see mentions of port 21 or 22 (but ftp and ssh are mentioned).
As I am a newbie and want to learn, I don't mind if I don't get the answer but some direction on debugging tips would definitely help. Could somebody point me to the right direction?
In parallel, I'm going to learn more about the iptables command.
Thanks,
Yann
bibi-phoque
28-01-2009, 14:39
I might I found my problem...Because I'm now using post-firewall, I thought it was not necessary to create virtual servers in the web interface. But since I added port 20 and 21 to route to 192.168.1.1 in the web interface, the ftp now connects from WAN. It's still times-out when trying to get the listing but that's probably a different issue. As soon as I get home today I will replace my post-firewall with
#!/bin/sh
iptables -D INPUT -j DROP
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 22 -j DNAT --to-destination $4:22
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 21 -j DNAT --to-destination $4:21
iptables -A INPUT -j DROP
Hopefully my ftp will work fine after that. When that works, I can start working on the other services.
cheers,
Yann
examiner
03-02-2009, 11:35
Hi, does anyone have vsftpd running? I tried macsat's guide http://www.macsat.com/macsat/content/view/25/29/ on my WL500w, the server seems to be running - process ok, accepts connection, but no authentication.
Connected to 10.107.115.142.
500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/opt/usr/sha
re/empty
500 OOPS: child died
Connection closed by remote host.
any ideas?
thanx
PS: I have done the whole setup from the beginning of this thread - I do have Samba with xinetd.
Hi,
I can not get ipkg to work as explained in the guide. ipkg is installed, but when I try to install eg nano,
ipkg install nano
i get "file not found". I suppose I have to download it first to the same directory, tried that, but the file has a longer name than just "nano", and I guess that's the reason it doesn't work.
What am I doing wrong? isn't all packages supposed to install to /opt/tmp ? Do I have to download each individual package and copy it to this directory?
As I am going through this great Howto, I can not get the router to ping an outside address (like google.de or its IP). Which means I can not use wget, and probably some more problems later.
My router is set as access point, in hybrid mode, wireless bridged to another router which is the home gateway. The strange thing is, I can view web pages with computers cabled to the asus router (which bridges to the home gateway). But I can not ping to wan when I use putty. I can ping to computers in lan and the home gateway.
I have forwarded port 22 on the home gateway to the asus router, but it doesn't help (but this should not be necessary i guess?). Do I have to forward some specific ports to the asus router to be able to ping from putty?
Any other tip here?
I am almost done with upgrading to oleg's firmware following this great guide, but with this problem i can not use wget for ipkg...
Oh yes some more info:
- all firewalls are disabled
- I try to ping with both ip address and domain name, none works.
- the nameserver in resolv.conf is the ip of my home gateway. what should it be?
- when I try to ping domain name, the domain name is resolved with its IP in brackets, which should mean that there is a "way" out (since it is correcly resolved).
- this issue is moved from q&a, since it is an issue following this guide.
Hi Bodvar,
The exact same thing happened to me a couple of weeks ago when I was 'experimenting' with NAT (port forwarding, port triggering and routing). on my main router (Siemens). I also use the asus as an AP-only (so it's just a client). The 'experimenting' caused that the asus was unable to get a route to the WAN (internet). after deleting all the rules which applied to the ip-address of the asus, the asus was able to get on the internet again.. It could ping and use wget. So there must be something mixed up with NAT which prevented my asus to go online.
The reason why your pc's which are wired to the asus can connect to the internet is as follows
1) if you use static ip-addresses on you pc's you've manually set the DNS server (ip-of-main-router) in the ip-settings of the pc's
2) if you use dhcp and your asus is an AP-only, then your pc's probably get the ip-address from the main routers (an in these settings the main-router also specifies the DNS
If the above is not appliable, then check your DNS settings in the asus.
HTH
One more hint to raas' reply:
check your default gateway and take a look with traceroute where your packages are going.
wengi
Thanks guys, putting the IP of the home gateway as fixed in the asus router web interface (under home gateway option) did the trick!
Now I have been through this guide until the advanced section, but here is a problem: How can I get hdd spindown to work when I have cron installed?
I use scsi_stop as explained in http://wl500g.info/showthread.php?t=7836 and cron as explained in this guide. Doesn't work, as raas also pointed out earlier. scsi-stop worked fine until I installed cron.
Is this any way to get this to work togheter? I really need to spin down the hdd...but I also want to use transmission (which requires cron i guess)? why do I need cron?
Hi,
you need cron for logrotate, not for transmission.
wengi
Hi,
you need cron for logrotate, not for transmission.
wengi
I removed cron and logrotate, but the disk still spins up. But when I killed transmission daemon, it stopped spinning up again. So the clue lies with transmission. Is there any way to have the daemon started/stopped only when I need to download/seed)? I don't want to manually start/stop it every time (lazy yes I know..;)) . Or any other way to solve this? What about automatically start/stop transmission daemon only when needed?
Start and stop it manually.
No other way because the daemon hosts the webinterface.
wengi
examiner
06-02-2009, 12:13
I removed cron and logrotate, but the disk still spins up. But when I killed transmission daemon, it stopped spinning up again. So the clue lies with transmission. Is there any way to have the daemon started/stopped only when I need to download/seed)? I don't want to manually start/stop it every time (lazy yes I know..;)) . Or any other way to solve this? What about automatically start/stop transmission daemon only when needed?
Yeah, but you need cron, so yoou're back at the beginning.... As wengi said - you need to start/stop the daemon manually...
Bluelife
06-02-2009, 14:21
Well, hi...
i´m a new user of the forum and english is not my native language so, first of all, i apologize for that.
second of all, i have the wl500gP with oleg's firmware 1.2.9.7-10 and a Mybook 1TB witch i would like to connect to the router. My doubts starts here: i can't format the disk in ext3, can you tell me how?? and how vista can recognize that?? i know there's different ways to share de disk (ftp, samba, etc) witch is better?? witch is faster?? how to configure that?? i really really really need your help, im going nuts here with this...
what i need is a FULL tutorial since the begining, can anyone have the patience to do that??
Thanks
Bluelife
Bluelife
06-02-2009, 17:32
well, i've done what is in the tutorial... i've formated i've installed the tools and so and so... now in vista i dont know were to access de hdd and the OS doesnt even recognize the disk when directly connected...
thanks
Bluelife
Hi Bluelife, welcome to the forum.
This thread by wengi is probably the best tutorial you will find in this forum.
If you follow the steps exactly like they were pointed out there's 99.9% of success :D
About accessing the Harddisk.
Have you completed the whole setup from wengi? if not at which step did you stop?
If you've completed the setup, then your asus should show its harddisk in the network neighbourhood in windows. (that is, if you've configured the same 'workgroup' in vista than you have in the asus)
HTH
Hi,
there is/was (?) an issue with integrated samba and vista.
i have no vista and not the newest firmware.
Question to vista users:
Is the integrated samba working fine with vista when setup with my howto?
thanks
wengi
Bluelife
07-02-2009, 20:01
Hi Bluelife, welcome to the forum.
This thread by wengi is probably the best tutorial you will find in this forum.
If you follow the steps exactly like they were pointed out there's 99.9% of success :D
About accessing the Harddisk.
Have you completed the whole setup from wengi? if not at which step did you stop?
If you've completed the setup, then your asus should show its harddisk in the network neighbourhood in windows. (that is, if you've configured the same 'workgroup' in vista than you have in the asus)
HTH
Thanks for the reply, i really apretiated... well i did the 2nd,4,5,6,8 and 12th points and nothing happend.. maybe i just didnt save all documents with :wq! i just did ZZ in vi editor... maybe.. i dont know... but im thinkin in something else.. what about nfs server?? isnt better? or faster?? why samba?? and can i share the hdd in ntfs with nfs server or samba?? isnt that easier??
Thanks for the help.
Bluelife
I did the setup using Oleg's integrated version of samba. But it seems it doesn't support some norwegian characters (which are æ ø å, Æ Ø Å). Strangely, only ø and Ø is not supported. Samba in the original firmware actually supported all of them.
Should this work with the integrated samba version, or do you know if the custom samba setup can support this?
-------------------------------
UPDATED: It seems that support for dos codepage 865 is needed, which the integrated samba version seems to lack. Does the custom samba version support that? If so, how can it be set up?
mihaidenis
10-02-2009, 13:58
Your tutorial is great (i`m for the first time in linux world).
I follow your instruction and everything was ok.
Except a small error in in your TRANSMISSION (The torrent Client) script.
Transmission never start automatically at router reboot.
Your:
vi /tmp/harddisk/transmission/config/settings.json
is like this:
#!/bin/sh
#
# Startup script for transmission-daemon
case $1 in
start)
# update blocklist
echo "updating blocklist, ~4MB"
cd /tmp/harddisk/transmission/config/blocklists
wget -q http://www.bluetack.co.uk/config/level1.gz
if test -f level1.gz; then
rm level1
gunzip level1.gz
chmod go+r level1
fi
# start transmission
echo "starting transmission"
/opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
;;
stop)
if [ -n "`pidof transmission-daemon`" ]; then
kill -9 `pidof transmission-daemon`
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 (start|stop|restart)"
exit 1
esac
Mine is modified like that and it works now at router restart:
#!/bin/sh
#
# Startup script for transmission-daemon
case $1 in
start)
# update blocklist
echo "updating blocklist, ~4MB"
cd /tmp/harddisk/transmission/config/blocklists
wget -q http://www.bluetack.co.uk/config/level1.gz
if test -f level1.gz; then
rm level1
gunzip level1.gz
chmod go+r level1
fi
# start transmission
echo "starting transmission"
/opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
;;
stop)
if [ -n "`pidof transmission-daemon`" ]; then
kill -9 `pidof transmission-daemon`
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 (start|stop|restart)"
exit 0
esac
Thanks again for your tutorial.
Takes me more time to understand vi editor than your guide.
My script works fine here.
What did you change? I do not see the difference.
wengi
exit 1
[...]
exit 0
This is differnce (the only one).
lowie82ph
01-03-2009, 01:44
hi,
how can I limit the simultaneous downloads and uploads in transmission?
where can I specify the target, source and work folders?
thanks.
See the conf page:
http://trac.transmissionbt.com/wiki/EditConfigFiles#Overview1
You want to limit the number of connections or the number of active torrents?
wengi
lowie82ph
01-03-2009, 14:16
See the conf page:
http://trac.transmissionbt.com/wiki/EditConfigFiles#Overview1
You want to limit the number of connections or the number of active torrents?
wengi
yes, for example I have 5 torrents, I only want 2 active and the 3 are waiting. I can't see that option on the link you provided.
how can I set that?
thanks
As far as i know it is done manually.
You have to start a torrent manually after another has finished.
The old daemon had this feature but i didnt find it in the new one.
wengi
wengi (sry my english)
tnx for tut.
I try trasmission, is ok...i like it but the speed is slow ~1.5 MB/s, from pc: 4.5-6 MB/s from a local tracker.
u can help me with a tut on rtorrent made by you step-by-step?
maybe the speed on rtorrent is not the same as transmission.
sorry, no experience with rtorrent.
check your cpu and memory status with "top" when transmission is downloading.
Which hardware do you use?
wengi
wl-500gp V2
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
225 TheCrow 20 0 6772 6356 2368 R 81.2 21.1 1:47.55 transmission-da
229 TheCrow 15 0 640 640 492 R 3.4 2.1 0:01.55 top
95 TheCrow 9 0 0 0 0 S 3.1 0.0 0:02.99 usb-storage-0
129 TheCrow 9 0 0 0 0 S 0.9 0.0 0:00.43 kjournald
examiner
03-03-2009, 00:22
Hi wengi,
thank you for the great tutorial, I was lost in configuring my WL500W until I found this. :)
However, transmission is very very slow, sometimes it says "Downloading 0 of 0 peers". When I start the same torrent on my PC, it works fine and usually fast.
I have 16Mbit line and on PC I get speeds up to 1MByte/s, but on my WL500W, even with no-limit settings, I don't get more than 50 KB/s.
The most irritating is the fact that some torrents don't work at all, as explained above.
My WL500W is not a router, but it is set as AP only - it acts as any other PC on the network, such as mine, that works ok. Can the Blacklist cause such problems?
Hi,
one general thing:
YOUR ROUTER IS NOT A PC!
This means that it has about 10% the CPU power of your PC.
As you can see in TheCrow's post transmission is consuming over 80% of cpu power.
Don't expect too much from this little piece of hardware.
I normaly start a max of three torrents and the average dl rate is about 20-30k with my WL-HDD.
Keep cool and relax :cool:
wengi
PS: Maybe other torrent clients are faster, but do not expect them to be much faster!
examiner
04-03-2009, 08:46
OK, I can live with that...:) It is weird thoughm that UL is about 200KB and DL is so slow.
But what about the torrents that dont work at all? Why it says 0 of 0 peers? When I start the same torrent on my PC, it works ok. They both share the same public IP address, but some torrents just do not work on transmission.
It used to be ok at the beginning - i could download anything i wanted, but after some time..
Is there any chance to perform transmission diagnostics?
thx
examiner
did you update to the latest version of transmission?
ipkg update && ipkg upgrade
wengi
EDIT
Try to disable blacklist to make it faster.
@wengi, thanks a lot for this great how-to guide. All is perfectly working on my WL-500W router. http://wl500g.info/images/icons/icon14.gif
I copied this guide in one other forum, to spread this knowledge to my friends - HERE (http://hardwarebg.com/forum/showthread.php?t=148740). Off course it's with links to this thread and your name. I hope you have nothing against that. Thanks again. http://wl500g.info/images/icons/icon14.gif
my S90transmission-daemon not starting when i reboot router. How can i resolve that?? pls..
check content (with vi or nano).
check if executable.
wengi
if i start manualy , workin` ......so is executable...another ideea?
[TheCrow@WL-001FC6D7E6E7 root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
57 ? S 0:00 telnetd
62 ? S 0:00 httpd vlan1
67 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
85 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
88 ? Ss 0:00 waveservermain
91 ? Ss 0:00 rcamdmain
95 ? S 0:00 [usb-storage-0]
96 ? S 0:00 [scsi_eh_0]
109 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
112 ? Ss 0:00 infosvr br0
113 ? Ss 0:00 watchdog
115 ? Ss 0:00 \_ ntp
122 ? S 0:00 dropbear
166 ? Ss 0:00 \_ dropbear
167 pts/0 Ss 0:00 \_ -sh
170 pts/0 R+ 0:00 \_ ps axf
148 ? S 0:00 [kjournald]
149 ? S 0:00 [kjournald]
152 ? Ss 0:00 /usr/sbin/vsftpd
159 ? S 0:00 upnp -D -L br0 -W ppp0
[TheCrow@WL-001FC6D7E6E7 root]$
#!/bin/sh
#
# Startup script for transmission-daemon
case $1 in
start)
# update blocklist
echo "updating blocklist, ~4MB"
cd /tmp/harddisk/transmission/config/blocklists
wget -q http://www.bluetack.co.uk/config/level1.gz
if test -f level1.gz; then
rm level1
gunzip level1.gz
chmod go+r level1
fi
# start transmission
echo "starting transmission"
/opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
;;
stop)
if [ -n "`pidof transmission-daemon`" ]; then
kill -9 `pidof transmission-daemon`
fi
;;
restart)
$0 stop
$0 start
;;
if i start manualy , workin` ......so is executable...another ideea?...
Is it with the right file name... starting with "S" (for automatic starting scripts at boot time) and number with 2 digits (for priority among starting scripts order) - in this case "S90xxxxx"?
Is it in the right directory "/opt/etc/init.d/"?
Is it with the right file name... starting with "S" (for automatic starting scripts at boot time) and number with 2 digits (for priority among starting scripts order) - in this case "S90xxxxx"?
Is it in the right directory "/opt/etc/init.d/"?
[TheCrow@WL-001FC6D7E6E7 root]$ ls /opt/etc/init.d/
S10cron S90transmission-daemon rc.unslung
[TheCrow@WL-001FC6D7E6E7 root]$
IS OK?
Hi,
this is looking good, BUT as we see you have a S10cron which should start cron also.
But it does not as your ps shows some posts ago.
The question in general: Is your rc.unslung starting?
wengi
hmm....how can i know that??
[TheCrow@WL-001FC6D7E6E7 root]$ cat /opt/etc/init.d/rc.unslung
#! /bin/sh
# Start/stop all init scripts in /opt/etc/init.d
# starting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi
daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort -r`
for i in $daemons; do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
# Write to syslog
logger -t rc.unslung "$1 service $i"
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set $1
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i $1
;;
esac
done
[TheCrow@WL-001FC6D7E6E7 root]$
Also - look for the appropriate rights for "/opt/etc/init.d/" directory... there have to have an execute rights also - for the directory itself, and for files inside.
If it's necessary - do following:
chown 0:0 -R /opt/etc/init.d
chmod 755 -R /opt/etc/init.d
... and then... you know:
flashfs save && flashfs commit && flashfs enable && reboot
Also - look for the appropriate rights for "/opt/etc/init.d/" directory... there have to have an execute rights also - for the directory itself, and for files inside.
If it's necessary - do following:
chown 0:0 -R /opt/etc/init.d
chmod 755 -R /opt/etc/init.d
... and then... you know:
flashfs save && flashfs commit && flashfs enable && reboot
nothing....not starting....:(, only manually start...
it`s ok??
[TheCrow@WL-001FC6D7E6E7 root]$ cat /opt/etc/init.d/S10cron
#!/bin/sh
#
# Startup script for cron
PIDFILE=/opt/var/run/cron.pid
case $1 in
start)
/opt/sbin/cron
;;
stop)
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}` ;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac[TheCrow@WL-001FC6D7E6E7 root]$
Obviously nothing starts from the /opt/etc/init.d
Let we see what are the rights in this directory. Do the following:
cd /opt/etc/init.d
ls -la
... and also let we see what are mounting points on your router:
mount
... and post the results here.
Did you follow all the steps above at beginning in this thread for USB/hard drive partitioning, mounting points AND file systems (ext3 or ext2)?
what happens if you do a
/opt/etc/init.d/rc.unslung start after restart?
Are transmission and cron running?
There should also be rc.unslung lines in your syslog.
Could you please post the syslog of a boot?
wengi
Obviously nothing starts from the /opt/etc/init.d
Let we see what are the rights in this directory. Do the following:
cd /opt/etc/init.d
ls -la
... and also let we see what are mounting points on your router:
mount
... and post the results here.
Did you follow all the steps above at beginning in this thread for USB/hard drive partitioning, mounting points AND file systems (ext3 or ext2)?
[TheCrow@WL-001FC6D7E6E7 root]$ cd /opt/etc/init.d
[TheCrow@WL-001FC6D7E6E7 init.d]$ ls -la
total 20
drwxr-xr-x 2 TheCrow root 4096 Mar 6 09:21 .
drwxr-xr-x 4 TheCrow root 4096 Mar 6 09:30 ..
-rwxr-xr-x 1 TheCrow root 223 Mar 6 14:27 S10cron
-rwxr-xr-x 1 TheCrow root 595 Mar 6 14:33 S90transmission-daemon
-rwxr-xr-x 1 TheCrow root 642 Mar 6 09:10 rc.unslung
[TheCrow@WL-001FC6D7E6E7 init.d]$
[TheCrow@WL-001FC6D7E6E7 init.d]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
[TheCrow@WL-001FC6D7E6E7 init.d]$
what happens if you do a
/opt/etc/init.d/rc.unslung start after restart?
Are transmission and cron running?
There should also be rc.unslung lines in your syslog.
Could you please post the syslog of a boot?
wengi
[TheCrow@WL-001FC6D7E6E7 root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
61 ? S 0:00 telnetd
62 ? S 0:00 httpd vlan1
67 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
86 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
89 ? Ss 0:00 waveservermain
91 ? Ss 0:00 rcamdmain
95 ? S 0:00 [usb-storage-0]
96 ? S 0:00 [scsi_eh_0]
120 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
121 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
124 ? Ss 0:00 infosvr br0
125 ? Ss 0:00 watchdog
127 ? Ss 0:00 \_ ntp
145 ? S 0:00 dropbear
170 ? Ss 0:00 \_ dropbear
171 pts/0 Ss 0:00 \_ -sh
174 pts/0 R+ 0:00 \_ ps axf
157 ? S 0:00 [kjournald]
158 ? S 0:00 [kjournald]
161 ? Ss 0:00 /usr/sbin/vsftpd
168 ? S 0:00 upnp -D -L br0 -W ppp0
[TheCrow@WL-001FC6D7E6E7 root]$ /opt/etc/init.d/rc.unslung start
Stopping syslogd: syslogd.
Starting syslogd: syslogd.
updating blocklist, ~4MB
starting transmission
[TheCrow@WL-001FC6D7E6E7 root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:01 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
61 ? S 0:00 telnetd
62 ? S 0:00 httpd vlan1
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
86 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
89 ? Ss 0:00 waveservermain
91 ? Ss 0:00 rcamdmain
95 ? S 0:00 [usb-storage-0]
96 ? S 0:00 [scsi_eh_0]
120 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc -b
121 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
124 ? Ss 0:00 infosvr br0
125 ? Ss 0:00 watchdog
127 ? Ss 0:00 \_ ntp
145 ? S 0:00 dropbear
170 ? Ss 0:00 \_ dropbear
171 pts/0 Ss 0:00 \_ -sh
219 pts/0 R+ 0:00 \_ ps axf
157 ? S 0:00 [kjournald]
158 ? S 0:00 [kjournald]
161 ? Ss 0:00 /usr/sbin/vsftpd
168 ? S 0:00 upnp -D -L br0 -W ppp0
199 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
216 ? S 0:00 /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
217 ? S 0:00 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
218 ? R 0:39 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
[TheCrow@WL-001FC6D7E6E7 root]$
please post result of
cat /usr/local/sbin/post-mountwengi
please post result of
cat /usr/local/sbin/post-mountwengi
[TheCrow@WL-001FC6D7E6E7 root]$ cat /usr/local/sbin/post-mount
#! /bin/sh
/opt/etc/init.d/rc.unslung start
[TheCrow@WL-001FC6D7E6E7 root]$
Are all those scripts in /usr/local/sbin/ (and particularly /usr/local/sbin/post-mount) executable?
If not, make them executable:
chmod 755 -R /usr/local/sbin/
yap... guess that is....tnx :cool: now it`s working....
[TheCrow@WL-001FC6D7E6E7 root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
57 ? S 0:00 telnetd
62 ? S 0:00 httpd vlan1
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
86 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
89 ? Ss 0:00 waveservermain
91 ? Ss 0:00 rcamdmain
95 ? S 0:00 [usb-storage-0]
96 ? S 0:00 [scsi_eh_0]
120 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
121 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
124 ? Ss 0:00 infosvr br0
125 ? Ss 0:00 watchdog
127 ? Ss 0:00 \_ ntp
174 ? Ss 0:00 \_ /bin/sh /usr/local/sbin/post-mount 1058/702/104
175 ? S 0:00 \_ /bin/sh /opt/etc/init.d/rc.unslung start
208 ? S 0:00 \_ /bin/sh /opt/etc/init.d/S90transmission-d
218 ? R 0:02 \_ gunzip level1.gz
135 ? S 0:00 dropbear
212 ? Ss 0:00 \_ dropbear
213 pts/0 Ss 0:00 \_ -sh
219 pts/0 R+ 0:00 \_ ps axf
152 ? S 0:00 upnp -D -L br0 -W ppp0
169 ? S 0:00 [kjournald]
170 ? S 0:00 [kjournald]
173 ? Ss 0:00 /usr/sbin/vsftpd
200 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7
[TheCrow@WL-001FC6D7E6E7 root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
57 ? S 0:00 telnetd
62 ? S 0:00 httpd vlan1
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
83 ? Ss 0:00 lpd
86 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
89 ? Ss 0:00 waveservermain
91 ? Ss 0:00 rcamdmain
95 ? S 0:00 [usb-storage-0]
96 ? S 0:00 [scsi_eh_0]
120 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc -b
121 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
124 ? Ss 0:00 infosvr br0
125 ? Ss 0:00 watchdog
127 ? Ss 0:00 \_ ntp
135 ? S 0:00 dropbear
212 ? Ss 0:00 \_ dropbear
213 pts/0 Ss 0:00 \_ -sh
226 pts/0 R+ 0:00 \_ ps axf
152 ? S 0:00 upnp -D -L br0 -W ppp0
169 ? S 0:00 [kjournald]
170 ? S 0:00 [kjournald]
173 ? Ss 0:00 /usr/sbin/vsftpd
200 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
223 ? S 0:00 /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/conf
224 ? S 0:00 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/
225 ? R 0:04 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmiss
[TheCrow@WL-001FC6D7E6E7 root]$
examiner
06-03-2009, 23:47
did you update to the latest version of transmission?
ipkg update && ipkg upgrade
wengi
ok...the easiest solution is just right...;-) after upgrade i have like 256KB/s download, lots of peers...perhaps something with the version of transmission i had...:)
thanx
how can i acces my router with winscp.
when i try to connect...: "Cannot initialize SFTP protocol. Is the host running a SFTP server?"
i know i have to make soething on router but i don`t know:(
either use scp or:
ipkg install openssh-sftp-server
either use scp or:
ipkg install openssh-sftp-server
works....tnx:)
[admin@ASUS_160GB ipkg]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-4TwonM http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz'
[admin@ASUS_160GB ipkg]$ ipkg upgrade
sh: rm: Permission denied
Nothing to be done
Successfully terminated.
When i try to install unrar for example:
[admin@ASUS_160GB ipkg]$ ipkg install unrar
Package unrar (3.7.8-1) installed in /opt/ is up to date.
sh: rm: Permission denied
Nothing to be done
Successfully terminated.
Please why I always see Permission denied? I am logged as admin and df shows:
[admin@ASUS_160GB ipkg]$ df
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2
966M 103M 814M 12% /opt
/dev/discs/disc0/part3
916G 257G 613G 30% /tmp/mnt/disc0_3
Hi,
did this work at any time or is it a permanent error since you installed the router?
wengi
Hi,
did this work at any time or is it a permanent error since you installed the router?
wengi
Hi wengi,
i finished this tutorial succesfully so it worked before. But now after month of using this happened and Im not aware about anything what I did. Restart doesnt help.
do an e2fsck on /opt.
i guess the file system needs to be checked.
wengi
do an e2fsck on /opt.
i guess the file system needs to be checked.
wengi
[admin@ASUS_160GB /opt]$ e2fsck /dev/discs/disc0/part2
e2fsck 1.41.2 (02-Oct-2008)
/dev/discs/disc0/part2 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Is it safe to run or better be unmounted? And it is possible to run when /opt is unmounted? (When speaking about unmounting I dont know how to unmount :( umount /dev/discs/disc0/part2 doesnt working) umount: Couldn't umount /dev/scsi/host0/bus0/target0/lun0/part2: Invalid argument
And which parameters to use with e2fsck ? Is it e2fsck /dev/discs/disc0/part2 ok?
stop all services running on /opt so it is not used any more.
then unmount /opt
wengi
stop all services running on /opt so it is not used any more.
then unmount /opt
wengi
Can you help me to find what more is running at /opt?
[admin@ASUS_160GB root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
61 ? S 0:00 telnetd
66 ? S 0:00 httpd
71 ? S 0:00 klogd
72 ? S 0:00 [khubd]
80 ? Ss 0:00 lpd
82 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
86 ? Ss 0:00 waveservermain
88 ? Ss 0:00 rcamdmain
92 ? S 0:00 [usb-storage-0]
93 ? S 0:00 [scsi_eh_0]
95 ? Ss 0:00 infosvr br0
96 ? Ss 0:00 watchdog
97 ? Ss 0:00 \_ ntp
105 ? S 0:00 dropbear
117 ? Rs 0:00 \_ dropbear
149 pts/0 Ss 0:00 \_ -sh
197 pts/0 R+ 0:00 \_ ps axf
124 ? S 0:00 [kjournald]
125 ? S 0:00 [kjournald]
128 ? Ss 0:00 /usr/sbin/vsftpd
130 ? Ss 0:00 /usr/sbin/nmbd -D
132 ? Ss 0:00 /usr/sbin/smbd -D
[admin@ASUS_160GB root]$ umount /dev/discs/disc0/part2
umount: Couldn't umount /dev/scsi/host0/bus0/target0/lun0/part2: Invalid argument
You should try
umount /optif you get a "umount: cannot umount /opt: Device or resource busy" then begin to kill services.
i would guess vsftp and smb.
wengi
You should try
umount /optif you get a "umount: cannot umount /opt: Device or resource busy" then begin to kill services.
i would guess vsftp and smb.
wengi
Hi, I was unsuccesfull again :( Killed everything what I thing and still cant unmount.
Is it possible to change pre-mount at /usr/local/sbin to not mount disc and restart and check it?
I have pre-mount from you. How i can modify it? Thanks a lot.
the simplest way is just:
flashfs disable && reboot
after that disk will be automounted to something like /tmp/mnt/diskX_Y (check exact name), but none of the services related to disk will be started. Then you
umount /tmp/mnt/diskX_Y
now it should work. Then run e2fsck. When you finished:
flashfs enabled && reboot
the simplest way is just:
flashfs disable && reboot
after that disk will be automounted to something like /tmp/mnt/diskX_Y (check exact name), but none of the services related to disk will be started. Then you
umount /tmp/mnt/diskX_Y
now it should work. Then run e2fsck. When you finished:
flashfs enabled && reboot
:confused: flashfs disable && reboot gives me:
[admin@ASUS_160GB root]$ flashfs disable && reboot
/sbin/flashfs: /sbin/flashfs: 20: cat: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: nvram: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: nvram: Permission denied
EDIT: So, i tried this flashfs disable && reboot in few seconds after restart (before router mounted discs) and now i cannot connect with putty to it (gives me connection refused). But I discovered that i can access command line from web interface and finally unomunted it :)
Then i run e2fsck and it gives me that it needs terminal to interactive. So I tried e2fsck -p and then I flashfs enabled && reboot. But Problem is still the same.
[admin@ASUS_160GB root]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-6AXChz http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz'
Maybe e2fsck takes a longer time. How long for 1GB? Or how parameters I must use with e2fsck from web interface? :)
For info I typed to system command: e2fsck -p /dev/discs/disc0/part2
And it gives: /dev/discs/disc0/part2: clean, 8240/125696 files, 30375/251015 blocks (check in 4 mounts)
EDIT2: So I rebooted 4times to force e2fsck to check disc and to be sure run again e2fsck -p /dev/discs/disc0/part2 but after flashfs enabled && reboot again:
ipkg update
sh: wget: Permission denied
It is possible somehow to do e2fsck with putty? :)
adrianio
10-03-2009, 08:34
I have an Asus WL500GPV2 and I decided to try Oleg after dd-wrt (eko's NEWD).
My problem is that I installed OLEG 2.0.1.5 firmware (from forums discussions I found that should be a good choice instead Oleg 3.0.2.6).
I started utelnetd from secret page (utelnetd does not start automatically, I found it in /usr/sbin), and I found no dropbear and no flashfs script on either /bin, /sbin, /usr/bin or usr/sbin.
Can someone give me flashfs script and dropbear to install? And some help to install them?
Thank you very much and I hope to help others too, after I will learn this firmware.
But I discovered that i can access command line
ssh will be disabled, as dropbear is started from flashfs
you can either start it from web-command-line by typing:
dropbear
or access router through telnet (it should be enabled in the web interface, but then it starts automatically)
My problem is that I installed OLEG 2.0.1.5 firmware (from forums discussions I found that should be a good choice instead Oleg 3.0.2.6).
:D:D:D where did you found so advanced "Oleg's" firmwares?
To the best of my knowledge, the last Oleg's firmware titled 1.9.2.7-10
adrianio
10-03-2009, 14:08
:D:D:D where did you found so advanced "Oleg's" firmwares?
To the best of my knowledge, the last Oleg's firmware titled 1.9.2.7-10
From this web page top link "Firmware Wizard" ->> asus->wl500gpv2. Link to asus wl500gpv2 download directory -> http://files.wl500g.info/asus/wl500gpv2/firmware/
:(:(:(
it is asus original.
If you wish to get real Oleg's firmware, it is available here: http://oleg.wl500g.info/
For wl500gPv2 better take last version from here: http://oleg.wl500g.info/pre10a/ It seems to be very close to the next bugfix release.
adrianio
10-03-2009, 16:13
it is asus original.
If you wish to get real Oleg's firmware, it is available here: http://oleg.wl500g.info/
For wl500gPv2 better take last version from here: http://oleg.wl500g.info/pre10a/ It seems to be very close to the next bugfix release.
Very fast answer! Thank you! You've just got maximum points :D:D:D!!!
I read first page maybe hundreds times, but I did not think to click the link in the bottom of page! Bad for me!
Again, thank you!
Is there a way I can flash my asus to the previous version of oleg 1.9.2.7-9?
I'm currently on 1.9.2.7-10 but my router crashes every day almost.
Or how can I get the logs to see what is going on there?
I have wl-500gp v2
thank you.
Is there a way I can flash my asus to the previous version of oleg 1.9.2.7-9?
I'm currently on 1.9.2.7-10 but my router crashes every day almost.
Or how can I get the logs to see what is going on there?
I have wl-500gp v2
thank you.
what the problem is? Download and flash.
The best way to way to debug the situation is to get out system console output from the built in serial port. It requires some soldering skills.
More simple way could be to redirect syslog to the external storage, so that you can see if something was posted before the crash. I thing wengi's tutorial has something about that
ssh will be disabled, as dropbear is started from flashfs
you can either start it from web-command-line by typing:
dropbear
or access router through telnet (it should be enabled in the web interface, but then it starts automatically)
Thanks, I havent time to test it yet but I have another question on my mind :)
Is it way how to access to LAN computer which have windows sharing? For example best way for me will be through mc :) But probably must be mounted to some directory? Anyone have experience with this? :)
Thanks, I havent time to test it yet but I have another question on my mind :)
Is it way how to access to LAN computer which have windows sharing? For example best way for me will be through mc :) But probably must be mounted to some directory? Anyone have experience with this? :)
Use TELNET instead of ssh (as posted before).
I do not get the question. You want to do what? With mc?
wengi
First - thanks for the great tutorial, wengi :)
My smb.conf is resetting on reboot so that I lose a couple key manual settings - specifically "encrypt = yes" which is required for access via a Mac. I'm using the onboard samba via the web interface. I added smb.conf to /usr/local/.files
so that it should be saved when I execute "flashfs save && flashfs commit && flashfs enable && reboot" which I've run after making the desired changes to smb.conf. Executing "flashfs load" at the command line after reboot effectively loads my customized smb.conf and I'm fine - but why isn't it loading automatically on reboot? Do I need to add the load to one of the startup scripts? I thought it should automatically run...
THANKS
if you enable samba in the web-interface then /etc/smb.conf is automatically generated based on the settings in it every time you start router. So if you wish to customize smb.conf --- disable samba in web-interface and run from post-boot something like:
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
I didn't realize that about smb.conf - makes sense based on what I'm seeing. I'll give your recommendation a try. THANKS
adrianio
12-03-2009, 19:30
I have asus wl500gpv2 and installed the latest Oleg WL500gpv2-1.9.2.7-10.7.trx.
Sometimes when I give command "iptables -t nat -L" or "iptables -L" the listing freezes at half. I have to stop it.
I followed Wengi tutorial and I enabled syslogd to log on fixed hdd, but the log does not show anything. I stopped dropbear in post-mount and start sshd (openssh) from /opt, but the behavior is the same.
It seems that ssh console take commands and react slowly. I work with all services stopped: samba, ftp, upnp, and most of the time I have 50% free RAM!!!
By the way, upnp service don't work. Does anybody knows whatever to make it work?
Or should be better to my router model to revert to previously OLEG firmware?(WL500gpv2-1.9.2.7-10.5.trx or so)
I have asus wl500gpv2 and installed the latest Oleg WL500gpv2-1.9.2.7-10.7.trx.
Where have you found this firmware?
Last "original" oleg is WL500gp-1.9.2.7-10.trx (http://oleg.wl500g.info/1.9.2.7-10/)
Try this (http://code.google.com/p/wl500g/).
adrianio
try -n switch of iptables
kaizen
WL500gpv2-1.9.2.7-10.7.trx (http://oleg.wl500g.info/pre10a/) is a bugfix pre-release. It has pretty minor changes against 10, but incorporates later wifi driver which performs better for wl500gPv2
what meens this error and how can i fix`it ??
Mar 12 20:37:48 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:53 kernel: NET: 85 messages suppressed.
Mar 12 20:37:53 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:37:58 kernel: NET: 91 messages suppressed.
Mar 12 20:37:58 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:03 kernel: NET: 141 messages suppressed.
Mar 12 20:38:03 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:08 kernel: NET: 134 messages suppressed.
Mar 12 20:38:08 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:13 kernel: NET: 170 messages suppressed.
Mar 12 20:38:13 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:18 kernel: NET: 174 messages suppressed.
Mar 12 20:38:18 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:23 kernel: NET: 157 messages suppressed.
Mar 12 20:38:23 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:28 kernel: NET: 189 messages suppressed.
Mar 12 20:38:28 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:33 kernel: NET: 180 messages suppressed.
Mar 12 20:38:33 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:38 kernel: NET: 173 messages suppressed.
Mar 12 20:38:38 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:43 kernel: NET: 226 messages suppressed.
Mar 12 20:38:43 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:48 kernel: NET: 158 messages suppressed.
Mar 12 20:38:48 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:53 kernel: NET: 190 messages suppressed.
Mar 12 20:38:53 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:38:58 kernel: NET: 185 messages suppressed.
Mar 12 20:38:58 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:39:03 kernel: NET: 178 messages suppressed.
Mar 12 20:39:03 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:39:08 kernel: NET: 212 messages suppressed.
Mar 12 20:39:08 kernel: ip_conntrack: table full, dropping packet.
Mar 12 20:55:43 ntp client: Synchronizing time with time.nist.gov ...
Mar 12 21:46:29 kernel: NET: 48 messages suppressed.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:29 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:34 kernel: NET: 81 messages suppressed.
Mar 12 21:46:34 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:39 kernel: NET: 133 messages suppressed.
Mar 12 21:46:39 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:44 kernel: NET: 162 messages suppressed.
Mar 12 21:46:44 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:49 kernel: NET: 174 messages suppressed.
Mar 12 21:46:49 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:54 kernel: NET: 200 messages suppressed.
Mar 12 21:46:54 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:46:59 kernel: NET: 233 messages suppressed.
Mar 12 21:46:59 kernel: ip_conntrack: table full, dropping packet.
Mar 12 21:47:04 kernel: NET: 233 messages suppressed.
Mar 12 21:47:04 kernel: ip_conntrack: table full, dropping packet.
i found this solution, is ok???
Increasing the table size
The maximum number of connections tracked can be found by:
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max
4096
Time to double to number of connections that the table can track:
nano /etc/sysctl.conf
and add the line
net.ipv4.netfilter.ip_conntrack_max = 131072
reload the sysctl.conf
sysctl -p
and result:
net.ipv4.netfilter.ip_conntrack_max = 131072
you can edit this value from the web-interface in the firewall -> basic config
I'd suggest you to research this topic more seriously, because this conntrack table takes RAM. For such device with pretty limited memory 128K imho is too huge table
adrianio
13-03-2009, 07:22
Where have you found this firmware?
Last "original" oleg is WL500gp-1.9.2.7-10.trx (http://oleg.wl500g.info/1.9.2.7-10/)
Try this (http://code.google.com/p/wl500g/).
Thank you, Kaizen!
I have installed this firmware and it seems to be a stable version. It is just enough for what I need. And wireless driver perform very well. Next week I will test it with lot of optware packages. I want to stop services and start'em when I need with xinetd to keep RAM memory free.
By the way, does anybody knows command line switches to start web interface and pass them to xinetd?
adrianio
13-03-2009, 14:47
I think that's good for OLEG firmware to have an motd login (as OpenWRT and DD-WRT does).
And motd should be like so. So put file motd (without the extension ".txt") in /etc folder, edit /usr/local/.files and add "/etc/motd", save flash with "flashfs save && flashfs commit && flashfs enable && reboot". When log with dropbear, after login, logo will apear in console window.
To put the file on the router, I recommend using WinSCP (is freeware and "a must use" ) :)
So, "OLEG powered WL"
;):)
By the way, does anybody knows command line switches to start web interface and pass them to xinetd?
it's impossible, and to kill it either
if you enable samba in the web-interface then /etc/smb.conf is automatically generated based on the settings in it every time you start router. So if you wish to customize smb.conf --- disable samba in web-interface and run from post-boot something like:
/usr/sbin/smbd -d
/usr/sbin/nmbd -d
I added the 2 lines to post-boot (but it's "smbd -D" and "nmbd -D" as lowercase "-d" is for debug level) and disabled samba in the webinterface. Did the flashfs commit save reboot thing but samba didn't load on reboot - those processes didn't appear in the list from ps axf. But, if I manually run post-boot from the command line, samba is loaded and runs fine.
It seems post-boot isn't running after the boot - is that possible? Since I can run post-boot from the command line, it seems it's executable. The only difference from straight wengi tut is I have the swap on USB stick on disc1 and USB HDD for shared storage on disc0.
Any ideas?
put it in post-mount
it probably starts from post-boot, but exits directly cause it's missing the harddisk
thanks for the correction
you can make sure that post-boot is executed by adding to it:
logger -t post-boot "$* started."
afterwards you can check presence of this line in the syslog.
I'm not sure if the storage should be mounted to run samba (when post-boot is executed possibly it is not running yet). So, try to put it in the post-mount
If post mount could be executed multiple times better approach could be:
killall smbd && /usr/sbin/smbd -D
DrChair: you was faster than me :)
put it in post-mount
it probably starts from post-boot, but exits directly cause it's missing the harddisk
This worked, thanks. :D
al37919, I didn't add the extra code you suggested, I don't understand what it tries to do - but it seems just having smbd -D and nmbd -D in post-mount does what I need. Is there a reason I need that additional code?
Also, I stuck the logger code in both post-boot and post-mount. post-mount wrote to the syslog, but post-boot did not!? It seems like I have an issue with post-boot running, right? Any ideas on how to troubleshoot this/fix?
Thank you for your help and responsiveness!
hi! my provider has changed connection from pptp to ppoe and after that transmission stoped transers. it accesable wia web interface but shows 0 transers. what can be the source of the problem?
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
57 ? S 0:00 telnetd
62 ? S 0:01 httpd vlan1
68 ? S 0:00 klogd
71 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
73 ? S 0:00 [dnsmasq]
75 ? S 0:00 [khubd]
84 ? Ss 0:00 lpd
86 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
89 ? Ss 0:00 waveservermain
91 ? Ss 0:00 rcamdmain
95 ? S 0:00 [usb-storage-0]
96 ? S 0:00 [scsi_eh_0]
103 ? S 0:00 [portmap]
105 ? Ss 0:00 /usr/sbin/statd
107 ? S 0:00 [nfsd]
108 ? S 0:00 [lockd]
109 ? S 0:00 \_ [rpciod]
111 ? Ss 0:00 /usr/sbin/mountd
126 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
127 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
129 ? Ss 0:00 infosvr br0
130 ? Ss 0:00 watchdog
133 ? Ss 0:00 \_ ntp
147 ? S 0:00 dropbear
238 ? Ss 0:00 \_ dropbear
239 pts/1 Ss 0:00 \_ -sh
243 pts/1 R+ 0:00 \_ ps axf
156 ? S 0:01 upnp -D -L br0 -W ppp0
172 ? S 0:00 [kjournald]
173 ? S 0:00 [kjournald]
201 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7
207 ? Ss 0:00 /opt/sbin/cron
232 ? S 0:08 /opt/bin/transmission-daemon -g /tmp/harddisk/transmi
233 ? S 0:00 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/tra
234 ? S 0:20 \_ /opt/bin/transmission-daemon -g /tmp/harddisk
237 ? R 19:19 vi /opt/etc/init.d/S05syslogd
adrianio
15-03-2009, 11:13
Where have you found this firmware?
Try this (http://code.google.com/p/wl500g/).
I installed from your link WL500gpv2-1.9.2.7-d-r160.trx
That's OK. I see in this firmware lot of good things:
- kernel update to "Linux version 2.4.37";
- SSH configuration from webif;
- firewall configuration for "brute force attacks" from webif (although when I "iptables-save > /opt/tmp/iptables" - I cannot see rules installed :) )
Big problem:
I test swap working with "ipkg remove perl" + "ipkg install perl" and give in another putty window command "watch -n 1 free". So, swap memory does not entered working state (it is showed up, but not used). In time of perl installation free memory decrease till 500kb!
The same test I do with "WL500gpv2-1.9.2.7-10.7.trx" and in time of installation process swap begins swapping.
I see in log file some brute force attacks for SSH and FTP servers and trying to limit FTP logon incoming connections:
iptables -I INPUT 1 -p tcp -m tcp --dport 21 -m state --state NEW -m recent --set
iptables -I INPUT 2 -p tcp -m tcp --dport 21 -m state --state NEW -m recent --update --seconds 180 --hitcount 5 -j DROP
But in both firmware versions it seems that we have no support:
iptables: No chain/target/match by that name
adrianio
16-03-2009, 08:09
I'll answer to myself:
So, there is iptables module to insert to make these commands available: ipt_recent.o
in 1.9.2.7-d this module should be loaded automatically and rules added to INPUT chain if wan access to ssh or ftp server is enabled in the web-interface and corresponding bruteforce protection option is selected
First,
thanks for really great HOW TO, it helped me, because I'm linux beginner.
Anyway now I stucked on problem with samba. It showes me that my shares are only 20MB big, although my 3rd partition is 450GB big. I really don't know how to solve it. I searched nearly the whole internet :mad:
Help will be greatly appreciated.
Thanks Jakub
adrianio
17-03-2009, 08:49
Reading log file I found that:
Mar 17 01:38:44 pure-ftpd: (?@115.168.51.137) [INFO] New connection from 115.168.51.137
Mar 17 01:38:45 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:38:49 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:38:57 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:39:08 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:39:21 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:39:37 pure-ftpd: (?@115.168.51.137) [ERROR] Too many authentication failures
Mar 17 01:39:41 pure-ftpd: (?@115.168.51.137) [INFO] New connection from 115.168.51.137
Mar 17 01:39:42 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:39:47 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:39:55 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:40:06 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:40:21 pure-ftpd: (?@115.168.51.137) [WARNING] Authentication failed for user [oracle]
Mar 17 01:40:38 pure-ftpd: (?@115.168.51.137) [ERROR] Too many authentication failures
And these tryies are listing for about an hour, every second (they tryied user mysql,apache and test too)!!!
But I have inserted correct rules in /usr/local/sbin/post-firewall:
iptables -I INPUT 1 -p tcp -m tcp --dport 21 -m state --state NEW -m recent --set
iptables -I INPUT 2 -p tcp -m tcp --dport 21 -m state --state NEW -m recent --update --seconds 160 --hitcount 8 -j DROP
These rules, I find'em too when do "iptables -nL INPUT". The same rules.
Chain INPUT (policy ACCEPT)
target prot opt source destination
tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 state NEW recent: SET name: DEFAULT side: source
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 state NEW recent: UPDATE seconds: 160 hit_count: 8 name: DEFAULT side: source
ACCEPT tcp -- 0.0.0.0/0 192.168.1.1 tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 192.168.1.1 tcp dpt:21
ACCEPT tcp -- 0.0.0.0/0 192.168.1.1 tcp dpts:65100:65150
BUT.....SURPRISE when I do "iptables-save /opt/tmp/iptables" and read the file I found:
-A INPUT -p tcp -m tcp --dport 21 -m state --state NEW -m recent recent: seconds: 1701970168 hit_count: 1953391971 name: side: source
-A INPUT -p tcp -m tcp --dport 21 -m state --state NEW -m recent recent: seconds: 1701970168 hit_count: 1953391971 name: side: source -j DROP
And I saved this firewall after powering on the router (so the router had some hours to rest and clear memory)!!!!
What's that????
:eek:
show full output of:
cat /tmp/filter_rules
iptables-save -t filter
adrianio
17-03-2009, 09:26
show full output of:
cat /tmp/filter_rules
iptables-save -t filter
[root@WL-500gpv2 root]$ cat /tmp/filter_rules
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:MACS - [0:0]
:SECURITY - [0:0]
:logaccept - [0:0]
:logdrop - [0:0]
-A SECURITY -p tcp --syn -m limit --limit 1/s -j RETURN
-A SECURITY -p tcp --tcp-flags SYN,ACK,FIN,RST RST -m limit --limit 1/s -j RETURN
-A SECURITY -p udp -m limit --limit 5/s -j RETURN
-A SECURITY -p icmp -m limit --limit 5/s -j RETURN
-A SECURITY -j DROP
-A INPUT -m state --state INVALID -j DROP
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -i lo -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m state --state NEW -j ACCEPT
-A INPUT -p udp --sport 67 --dport 68 -j ACCEPT
-A INPUT -j DROP
-A FORWARD -i br0 -o br0 -j ACCEPT
-A FORWARD -m state --state INVALID -j DROP
-A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -o vlan1 ! -i br0 -j DROP
-A FORWARD -m conntrack --ctstate DNAT -j ACCEPT
-A logaccept -m state --state NEW -j LOG --log-prefix "ACCEPT " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logaccept -j ACCEPT
-A logdrop -m state --state NEW -j LOG --log-prefix "DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logdrop -j DROP
COMMIT
[root@WL-500gpv2 root]$ iptables-save -t filter
# Generated by iptables-save v1.2.7a on Tue Mar 17 11:19:54 2009
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [50:2400]
:OUTPUT ACCEPT [1784:622885]
:MACS - [0:0]
:SECURITY - [0:0]
:logaccept - [0:0]
:logdrop - [0:0]
-A INPUT -p tcp -m tcp --dport 21 -m state --state NEW -m recent recent: seconds: 1701970168 hit_count: 1953391971 name: side: source
-A INPUT -p tcp -m tcp --dport 21 -m state --state NEW -m recent recent: seconds: 1701970168 hit_count: 1953391971 name: side: source -j DROP
-A INPUT -d 192.168.1.1 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -d 192.168.1.1 -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -d 192.168.1.1 -p tcp -m tcp --dport 65100:65150 -j ACCEPT
-A INPUT -m state --state INVALID -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m state --state NEW -j ACCEPT
-A INPUT -p udp -m udp --sport 67 --dport 68 -j ACCEPT
-A INPUT -j DROP
-A FORWARD -i br0 -o br0 -j ACCEPT
-A FORWARD -m state --state INVALID -j DROP
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i ! br0 -o vlan1 -j DROP
-A FORWARD -m conntrack --ctstate DNAT -j ACCEPT
-A SECURITY -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -m limit --limit 1/sec -j RETURN
-A SECURITY -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -m limit --limit 1/sec -j RETURN
-A SECURITY -p udp -m limit --limit 5/sec -j RETURN
-A SECURITY -p icmp -m limit --limit 5/sec -j RETURN
-A SECURITY -j DROP
-A logaccept -m state --state NEW -j LOG --log-prefix "ACCEPT " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logaccept -j ACCEPT
-A logdrop -m state --state NEW -j LOG --log-prefix "DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logdrop -j DROP
COMMIT
# Completed on Tue Mar 17 11:19:54 2009
these lines:
-A INPUT -m state --state INVALID -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m state --state NEW -j ACCEPT
should be in the beginning of the INPUT chain.
Just a guess: at the moment you accept INVALID packets ==> the results can be unpredictable.
adrianio
17-03-2009, 11:31
Thank you Al! I re-ordered iptables rules as you say. I'll see the rezult.
But what is with those cryptic numbers in the iptables-save command? Cause it seems that they aren't counters - what are those numbers in the INPUT-recent chain?
adrianio
17-03-2009, 14:18
I tryied UPnP experience and I'm glad to share it with you.
First, I'm sorry Al, that I said that UPnP service does not work with 1.9.2.7-10.7 firmware. It works.
First we have to assure that UPnP service is installed and is working under Windows: http://support.microsoft.com/kb/941206
Second there are only few utilities to command router port forwarding from Windows. I tried about 5 of them an no one works except of this: http://www.codeproject.com/KB/IP/PortForward.aspx
...but the download link from the above site is broken :), so I found it and put it here in attach.
I hope you are satisfied with this! :)
I tryied UPnP experience and I'm glad to share it with you.
First, I'm sorry Al, that I said that UPnP service does not work with 1.9.2.7-10.7 firmware. It work.
First we have to assure that UPnP service is installed and is working under Windows: http://support.microsoft.com/kb/941206
Second there are only few utilities to command router port forwarding from Windows. I tried about 5 of them an no one work except of this: http://www.codeproject.com/KB/IP/PortForward.aspx
...but the download link from the above site is broken :), so I found it and put it here in attach.
I hope you are satisfied with this! :)
:cool: it works......tnx .....
adrianio
18-03-2009, 09:42
these lines:
should be in the beginning of the INPUT chain.
Just a guess: at the moment you accept INVALID packets ==> the results can be unpredictable.
Al, I studied how UPnp insert rules in VSERVER chain and in FORWARD chain. So, in FORWARD chain rules are added on top of rules to drop invalid packets and let RELATED, ESTABILISHED traffic, so .... I think here may be a source of errors on forwarding ports. I did not experienced errors, but, again, as you say above, INVALID packets could traverse FORWARD chain through UPnP forwarded ports.
Solution is as UPnP to trigger commands like:
iptables -I FORWARD 4 -p tcp -m tcp --dport port_num -j ACCEPT
or, for flexibility to target a predefined "UPnP" chain. But I do not know how to modify this ...
We do not even need to accept forwarding (through FORWARD chain) UPnP ports cause we have in firewall:
-A FORWARD -m conntrack --ctstate DNAT -j ACCEPT and so, DNAT-ed packets from VSERVER chain are already accepted through forwarding chain. ...But, it seems that this conntrack rule is not working. Maybe, because ip_conntrack.o module is missing?
I'm back cause I do not understand why there is no ending FORWARD rule to:
iptables -A FORWARD -j DROP
This is a security hole!!!
PORT COMMAND FAILED! 500 Illegal port COMMAND
i change port on ftp "1021" and when i try to connect it give that error
how can i fix it?
[TheCrow@WL-001FC6D7E6E7 root]$ lsmod
Tainted: P
usb-storage 63312 3
sd_mod 12660 6
scsi_mod 72624 2 [usb-storage sd_mod]
videodev 8752 0 (unused)
audio 47176 0 (unused)
soundcore 4920 0 [audio]
printer 12964 0 (unused)
ehci-hcd 22916 0 (unused)
usb-ohci 19412 0 (unused)
usbcore 76112 1 [usb-storage audio printer ehci-hcd usb-ohci]
ip_nat_ftp 3136 0 (unused)
ip_conntrack_ftp 4584 2
wl 897336 0 (unused)
et 29024 0 (unused)
[TheCrow@WL-001FC6D7E6E7 root]$
What is wrong????
adrianio
20-03-2009, 10:12
I don't know the answer for your question Crow, cause I have disabled ftp in web page and I installed another ftp server (for now is pure-ftpd).
But, I have a question too, related to ftp. Is there a way (optware package) to use disck quota? Cause I want to ftp running user (ftpuser) limit disk usage.
Pure-ftpd has disq quota for every user, but I'd like to apply quota for all ftp users group.
PORT COMMAND FAILED! 500 Illegal port COMMAND
try to connect in passive mode
examiner
21-03-2009, 08:08
Does anybody have working SANE? I would appreciate any help on this...thanx for any advice or link to an advice..;-)
As I cannot unmount part1, what is a standard procedure to make part1 on.
Use swapon / swapoff:
[admin@blechbuechse root]$ swapoff /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
total used free shared buffers cached
Mem: 13964 13448 516 0 1548 7336
-/+ buffers/cache: 4564 9400
Swap: 0 0 0
[admin@blechbuechse root]$ swapon /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
total used free shared buffers cached
Mem: 13964 13696 268 0 1548 7336
-/+ buffers/cache: 4812 9152
Swap: 500432 0 500432
wengi
Use swapon / swapoff:
[admin@blechbuechse root]$ swapoff /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
total used free shared buffers cached
Mem: 13964 13448 516 0 1548 7336
-/+ buffers/cache: 4564 9400
Swap: 0 0 0
[admin@blechbuechse root]$ swapon /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
total used free shared buffers cached
Mem: 13964 13696 268 0 1548 7336
-/+ buffers/cache: 4812 9152
Swap: 500432 0 500432
wengi
Thanks for your excellent help.
In the meantime TonyFullerMalv provided me with nice explanation
"
A dedicated swap partition does not get mounted, it is just used and is a raw filesytem.
"
Darius
Use swapon / swapoff:
[admin@blechbuechse root]$ swapoff /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
total used free shared buffers cached
Mem: 13964 13448 516 0 1548 7336
-/+ buffers/cache: 4564 9400
Swap: 0 0 0
[admin@blechbuechse root]$ swapon /dev/discs/disc0/part1
[admin@blechbuechse root]$ free
total used free shared buffers cached
Mem: 13964 13696 268 0 1548 7336
-/+ buffers/cache: 4812 9152
Swap: 500432 0 500432
wengi
Hi,
I am back, as the problem persists.
My router No.1 worked fine , Olegs firmware,
applications installed on usb 4GB stick
and part2 /opt mounted regularly, part1 was on.
I reflashed it with Koppel for cellular modem support.
And part1 stopped to be swap-on, /opt directory is empty
I insert the same usb stick into my No.2 router
and part1 swap is on, /part2 /opt is mounted and I can run applications.
I can swapon on router No.1 and it works.
Unfortunately /opt directory is empty, so no preinstalled applications to run.
I discover the problem with putty when
ssh telnet session is closed immediately for router No.1
As I use the same system hdd stick on both routers,
what can be done to have
part1 swap-on and part2 /opt mounted on router No.1 on boot ?
As you can see, swap was off
so I followed your great tutorial
mkswap
swapon
[admin@aa /opt]$ free
total used free shared buffers
Mem: 30324 14264 16060 0 1772
Swap: 0 0 0
Total: 30324 14264 16060
[admin@aa /opt]$ mkswap /dev/discs/disc0/part1
Setting up swapspace version 1, size = 534499328 bytes
[admin@aa /opt]$ free
total used free shared buffers
Mem: 30324 14272 16052 0 1772
Swap: 0 0 0
Total: 30324 14272 16052
[admin@aa /opt]$ swapon /dev/discs/disc0/part1
[admin@aa /opt]$ free
total used free shared buffers
Mem: 30324 14532 15792 0 1772
Swap: 521968 0 521968
Total: 552292 14532 537760
[admin@aa /opt]$ free
total used free shared buffers
Mem: 30324 14532 15792 0 1772
Swap: 521968 0 521968
Total: 552292 14532 537760
[admin@aa /opt]$
[admin@aa root]$ ls
[admin@aa root]$ cd /
[admin@aa /]$ cd /opt
[admin@aa /opt]$ ls
[admin@aa /opt]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /tmp/mnt/disc0_2 type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
[admin@aa /opt]$ free
total used free shared buffers
Mem: 30324 14256 16068 0 1772
Swap: 0 0 0
Total: 30324 14256 16068
[admin@aa /opt]$ fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 4009 MB, 4009754624 bytes
145 heads, 48 sectors/track, 1125 cylinders
Units = cylinders of 6960 * 512 = 3563520 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 150 521976 82 Linux swap
/dev/scsi/host0/bus0/target0/lun0/part2 151 500 1218000 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part3 501 1125 2175000 83 Linux
[admin@aa /opt]$ df -l
df: illegal option -- l
BusyBox v1.1.3 (2008.04.25-08:17+0000) multi-call binary
Usage: df [-hmk] [FILESYSTEM ...]
[admin@aa /opt]$ df -l
df: illegal option -- l
BusyBox v1.1.3 (2008.04.25-08:17+0000) multi-call binary
Usage: df [-hmk] [FILESYSTEM ...]
edited once again (was empty)
vi /etc/fstab
echo "/etc/fstab" >> /usr/local/.files
edited pre-mount
vi /usr/local/sbin/pre-mount
and on reboot
flashfs save && flashfs commit && flashfs enable && reboot
======
[admin@aa root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
[admin@aa root]$ free
total used free shared buffers cached
Mem: 30324 17492 12832 0 1864 8476
-/+ buffers/cache: 7152 23172
Swap: 521968 0 521968
[admin@aa root]$
So it works fine.
run mc
and clicking on arrow keys generates the following
AAAABBBBAAAAACCCCCDDDDAABBDDCCCDDABBBBBBBBACCDABD B
Ok. Closed putty session as there was no other way to press F10 for
mc exit
and get command line back
Opened new putty session
and arrows don't work in mc
so no way to use mc.
Any idea, any solution ?
Darius
adrianio
25-03-2009, 07:51
Hi,
Any idea, any solution ?
Darius
Have you tried firmware from here: http://code.google.com/p/wl500g/ ? This firmware has been compiled on 15-Mar-2009 and seems to be very stable. I installed it yesterday and I din't found no bugs till now. So, it seems that swap space has got some improvements in this firmware. Give it a try!
from Wengi tutorial:
Some settings are necessary for MC to run properly.
Code:
echo "export TERMINFO=/opt/share/terminfo">>/opt/etc/profile
echo "alias mc=\"mc -c\"">>/opt/etc/profile
make profile executable:
Code:
chmod +x /opt/etc/profile
By the way .... have you tried to work with WinSCP (Opensource)? It's possible after that you do not work with MC anymore :)
adrianio
25-03-2009, 17:45
Till now, in any firmware I tried, I have connected with WinSCP without any problem. Now, I connect OK through WinSCP, but when I want to edit a file (example: man.conf), I obtain the following message:
Received error message from remote side: 'scp: man.conf: not a regular file'
And after that the file I want to edit (or simply view) opens empty.
This behavior does not apply to every file. There are some files that I can open/view. I cannot find a rule for that files opens or not.
I can copy remote files to local directory and I can rename remote files that I cannot open.
I respond now to myself: I installed bash and it installed profile under /opt/etc and export LD_LIBRARY_PATH=/opt/lib. It seems that my error came from here...
Is it the same behaviour if you try to edit / view these files on command line?
wengi
adrianio
26-03-2009, 07:51
Is it the same behaviour if you try to edit / view these files on command line?
wengi
Yes Wengi, after posting I found that the behavior is the same on command line. But I solve it, by simply renaming "/opt/etc/profile" file who was replaced by "ipkg install bash"! The error has came from exporting LD_LIBRARY_PATH=/opt/lib (ipkg and wget has stopped working too).
I think that it is possible to work with LD_LIBRARY_PATH set, but after installing optware packages for wget and busybox. But it is possible that another original package to be affected by this ...
how can i instal and config a graph for wl-500gp V2??
how can i instal and config a graph for wl-500gp V2??
Could you please specify what kind of graph do you need?
Hello!
As first (as almost everybody) I want to thank You for that really precious and great tutorial. I successfully configured my new wl500-gp router with basic linux knowledge.
After first try and some additional settings (because of different root username, IP address, etc.) everything working like a charm.
I have a small problem just with one thing: Transmission is connected to trackers in Passive mode. This cause less peers, slower downloading and of course, I can help less leechers with my upload speed.
When I had such problem on local PC with uTorrent than I set up NAT and it worked, but now I do not know what to do. The router is directly connected to internet so it does not need port forwading - am I right?
I also tried a crazy thing - created NAT with inner IP address of router as destination IP but of course - does not work.
Do have anybody idea, how to solve this 'problem'?
EDIT:
So, after 2 days it was enough to ask here and I solved problem myself :).
Solution for others with the same problem: just open port as wengi did it for ssh in the tutorial.
Add the following lines to the /usr/sbin/post-firewall file:
#!/bin/sh
# Transmission
iptables -I INPUT -m tcp -p tcp --dport 51413 -j ACCEPT
Could you please specify what kind of graph do you need?
i found ...tnx http://wl500g.info/showthread.php?t=2848
I just did this configuration and it works great, but could you please tell what I must change to access HDD using ftp from WAN?
Thank You :)
I just did this configuration and it works great, but could you please tell what I must change to access HDD using ftp from WAN?
Thank You :)
There are two main solutions as I know: unsecure and secure.
Unsecure is simple opening the ftp port (21) from the outside adding exclusion to firewall - add following lines to the /usr/sbin/post-firewall file:
#!/bin/sh
# Transmission
iptables -I INPUT -m tcp -p tcp --dport 21 -j ACCEPT
Than you can connect via ftp using the created ftp user and access directories, where you have rights to go.
Much more secure is opening random high port the same way as before, redirect it to ssh port (22) and using tunneling for ftp port on existing ssh connection.
If you are interested about this solution, just write and I will try to create a little tutorial.
Of course there are much more solutions based of sftp or samba+windows sharing, etc.
now i have some other problems after I installed php-thttph ( if i'm not somewhere wrong).
some services didn''t start after boot.
[admin@WL-001FC64989AD root]$ ps axf
BusyBox v1.1.3 (2008.03.17-18:24+0000) multi-call binary
Usage: ps
[admin@WL-001FC64989AD root]$
when i try to mkdir /opt/tmp/ router says read-nly filesystem.
this means - i havent mountet my hdd.
how i can solve this problem?
hi,
post result of "mount" and "ps".
Maybe your filesystem is checked. This will take some time..
wengi
so if I have 1Tb harddrive, then this will take a LONG TIME.
Ok. when the checking will be done, i'll write if the problem still exist.
When I got home, everything was ok.
Is it possible to create VPN connection from wan to router? this would solve many problems :)
you could give openvpn a try.
Search the forum for openvpn.
wengi
OVPN has been seted up and it's working :) ( from local laptop). Later will try from WAN.
Yes. It's working great :)
I want to post a custom message when logging in with putty, how do i do that?
Please excuse me if this was discussed before and please link me to the topic or posts, but my internet connection is working painfully slow today and when i try to search for this i did not receive results.
Thank you.
lapcat:
http://wl500g.info/showpost.php?p=98784&postcount=268
Hello,
this is a general linux question.
Have alook at:
http://linux.about.com/library/cmd/blcmdl5_issue.htm
http://linux.about.com/library/cmd/blcmdl5_motd.htm
issue is pre-login, motd is post-login.
wengi
wtf is this
Apr 20 14:00:49 vsftpd[1562]: [Administrator] FAIL LOGIN: Client "210.82.111.91"
Apr 20 14:00:51 vsftpd[1562]: [Administrator] FAIL LOGIN: Client "210.82.111.91"
Apr 20 14:00:53 vsftpd[1562]: [Administrator] FAIL LOGIN: Client "210.82.111.91"
Apr 20 14:00:55 vsftpd[1565]: CONNECT: Client "210.82.111.91"
Apr 20 14:00:56 vsftpd[1564]: [Administrator] FAIL LOGIN: Client "210.82.111.91"
Apr 20 14:00:58 vsftpd[1564]: [Administrator] FAIL LOGIN: Client "210.82.111.91"
Apr 20 14:01:00 vsftpd[1564]: [Administrator] FAIL LOGIN: Client "210.82.111.91"
in web syslog I see, that someone has trayed to connect to my ftp from Apr 20 14:00:20 till Apr 20 14:24:28
how I can block that f*** IP address?
P.S. I don't have username "Administrator" for my ftp.
It would be silly :D
P.S.S. this isn't first time, when someone is traying to connect.
Hi all,
i added a step to correct the time zone settings for middle europe.
search the howto for "pre-boot" and you will find the additions.
wengi
Hi all,
pls I have still problem with permission denied when i try:
[admin@ASUS_160GB ipkg]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-4TwonM http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'
[admin@ASUS_160GB ipkg]$ ipkg upgrade
sh: rm: Permission denied
Nothing to be done
Successfully terminated.
I posted here at this thread before (read page 38, posts 559-569) but still have this problem.
I am really newbie with linux so Wengi pls can you write me how to use e2fsck on /dev/discs/disc0/part2??? Dont know how to operate with superblocks etc.
Second dont know if check is necessary because i can create dir on /opt and can copy files in it. So I can write to /opt.
Any idea how to fix this permission denied problem? After finished this tutorial it forks for half year without problems.
Neither I cannot do this if I want any change:
flashfs save && flashfs commit && flashfs enable && reboot
here is post:
[admin@ASUS_160GB tmp]$ flashfs save && flashfs commit && flashfs enable && reboot
/sbin/flashfs: /sbin/flashfs: 20: cat: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: [: Permission denied
tar: Removing leading '/' from member names
tar: /tmp/local: Unknown file type
tar: Error exit delayed from previous errors
/sbin/flashfs: /sbin/flashfs: 73: ls: Permission denied
Something is wrong in your flashfs.
Disable it:
nvram set boot_local=""
nvram commit
reboot
Then check again, e.g. with
flashfs status
If it responds, load it without execution:
flashfs load
and search for the error in flashfs
Related Russian thread: http://wl500g.info/showthread.php?t=18949
P.S. one of the guesses: return LD_LIBRARY_PATH to the default value if it was updated in flashfs
Related Russian thread: http://wl500g.info/showthread.php?t=18949
Ehm but I cant read Russian :)
flashfs status gives me all Permission denied
How can I search for errors in flashfs?
flashfs status gives me all Permission denied
even after disbling it?
How can I search for errors in flashfs?
using common sense --- e.g. comment [or remove] everything and then uncomment file-by-file, line-by-line
What if...I use a usb flash drive for the swap area, and the HDD only for share files, and attach them both to the router via a usb hub? I guess the HDD would not spin up by transmission then, since the activity caused by daemon (and transmission) goes to the usb flash drive?
Start and stop it manually.
No other way because the daemon hosts the webinterface.
wengi
Hi all,
pls I have still problem with permission denied when i try:
[admin@ASUS_160GB ipkg]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-4TwonM http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'
[admin@ASUS_160GB ipkg]$ ipkg upgrade
sh: rm: Permission denied
Nothing to be done
Successfully terminated.
I posted here at this thread before (read page 38, posts 559-569) but still have this problem.
I am really newbie with linux so Wengi pls can you write me how to use e2fsck on /dev/discs/disc0/part2??? Dont know how to operate with superblocks etc.
Second dont know if check is necessary because i can create dir on /opt and can copy files in it. So I can write to /opt.
Any idea how to fix this permission denied problem? After finished this tutorial it forks for half year without problems.
I have the same problem with e2fsck:
my ASUs says:
kernel: EXT3-fs warning: mounting fs with errors, running e2fsck is recommended.
so how to use e2fsck?
Thank You :)
so how to use e2fsck?
you have to unmount partition and run it like this:
e2fsck /dev/discs/disc0/part1
However the first can be tricky. I suggest the following procedure:
switch off router
disconnect usb device to be checked
switch on router
30 sec later connect usb device
then do
umount /opt
do similar operation for all mount points on this device which you can see by
mount
after that run e2fsck
Bohlendach
04-05-2009, 10:14
Has anyone used Wengis tutorial with the firmware, wl500g-1.9.2.7-d?
See: http://wl500g.info/showthread.php?t=18004
and
http://code.google.com/p/wl500g/wiki/NEWS
Do you think they are compatible, the firmware and wengis tutorial?
theMIROn
04-05-2009, 12:04
Do you think they are compatible, the firmware and wengis tutorial?They're compatible, but several parts isn't needed.
3. SSH-deamon
16. Open SSH port to Internet (if directly connected)
ssh and ssh access from WAN could be configured via WEB interface
5. Startup-scripts
#! /bin/sh
tz="CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00"
nvram set time_zone="$tz"
echo "$tz" > /etc/TZ
timezone should be set via WEB interface, even in "Manual" mode
I have to ask
For
"/dev/discs/disc0/part3 /tmp/harddisk ext3"
we nead the 5% reserved for superuser, or this is just for /opt ?
I have something like that
Filesystem Size Used Avail Use% Mounted on
/dev/discs/disc0/part3 408G 390G 0 100% /tmp/mnt/disc0_3
:mad::mad::mad:
Hello,
this is strange.
Did you try a e2fsck?
This is described some posts above (http://wl500g.info/showpost.php?p=143743&postcount=647)
wengi
Yes.
My steps are:
1. umount /tmp/mnt/disc0_3
2. e2fsck -f -C fd -D -v /dev/scsi/host0/bus0/target0/lun0/part3
Started at 16:25
e2fsck 1.38 (30-Jun-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/scsi/host0/bus0/target0/lun0/part3: ***** FILE SYSTEM WAS MODIFIED *****
64189 inodes used (0%)
26464 non-contiguous inodes (41.2%)
# of inodes with ind/dind/tind blocks: 24699/6983/0
103898995 blocks used (95%)
0 bad blocks
0 large files
58727 regular files
5450 directories
0 character device files
0 block device files
0 fifos
0 links
3 symbolic links (3 fast symbolic links)
0 sockets--------
64180 files
Finished at 17:10
3. reboot
4. df
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2 966M 117M 800M 13% /opt
/dev/discs/disc0/part3 408G 390G 0 100% /tmp/mnt/disc0_3
/dev/discs/disc0/part4 50G 45G 2.6G 95% /tmp/mnt/disc0_4
/dev/discs/disc1/part1 30M 1.6M 29M 6% /tmp/mnt/disc1_1
//////////////////////////////////////////////////////////////
Another problem (maybe just for me), on "11. Logrotate for Syslog"
you have
vi /opt/etc/crontab
and add the following line
0 0 * * * admin /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null
Ok.
If I run
/opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null
I get
$ -sh: /opt/sbin/logrotate: not found
[1] + Done(127) /opt/sbin/logrotate -f /opt/etc/logrotate.conf
And I think nothing is happening
///////////////////////////////////////////
P.S.
I hope that when you make a change in this tutorial you write a new post and not only edit the first pages. Otherwise it will be imposible to stay up to date with the latest changes :D (I am sure you already do it like this :o )
Now i see.
You mount harddisk without write access. Please show your fstab.
no. I have write access
#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1
/dev/discs/disc0/part4 /tmp/mnt/disk0_4 ext3 rw,noatime 1 1
For 5% reserved for superuser the solution may be
http://www.matuschek.se/blog/2009/troublesolving/ext3-and-reserved-space-for-super-user/
Where can I find tune2fs ?
EDIT:
ipkg install e2fsprogs
tune2fs -r 0 /dev/scsi/host0/bus0/target0/lun0/part3
tune2fs -r 0 /dev/scsi/host0/bus0/target0/lun0/part4
///////////////////////////////////////////////////////////
For "11. Logrotate for Syslog" I wait a solution :)
Hello,
you found a mistake.
It seems i forgot the installation during translation of the english howto.
HowTo chapter 11 updated:
Install logrotate
ipkg install logrotate
wengi
I upgrade Transmission 1.60.Preocess complete.
When i start transmission-daemon,It error that
[admin@MYASUS root]$ /opt/etc/init.d/S90transmission-daemon start
updating blocklist, ~4MB
wget: Unable to connect to remote host (87.98.173.24): Connection timed out
gunzip: Short read
starting transmission
I go to http://192.168.0.222:9091/transmission/web/
I found error that
404: Not Found
/opt/share/transmission/web/index.html
Please help me.
Hello,
the board is offline.
http://www.bluetack.co.uk/forums/index.php?
May 5th 2009 - We are in the process of setting up a new server to serve the lists. We hope to have it configured and ready to go within a week. We are grateful for everyone's patience and continued support.
wengi
Hello all,
i updated the content of /opt/etc/init.d/S90transmission-daemon.
The script detects if the download of the blocklist is available or not (as in these days).
transmission is started independend of dl success.
wengi
I am still getting 404 error after installing transmission 1.60, I thought the problem was fixed? Would it matter if I change my ip address to something different in configuration it says 192.168. i change it to 182.165. to my settings. Would that matter I am not sure.
Thanks in advance
Upgrade to latest version.
wengi
Hello all,
i again updated the content of /opt/etc/init.d/S90transmission-daemon.
The script uses a new url and up to three tries.
transmission is started independend of dl success.
wengi
ps: newest versionof transmission fixes webinterface problem.
Sorry guys, transmission is working goodbut samba2 webpage wont load. I am not sure if what I did is right so someone else might pick it up. I changed this setting in this file: /opt/etc/xinetd.conf to adjust my ip settings so where it use to say 172.16.0.0. I changed it to mine which 192.169.0.67/73
only_from = localhost 10.0.0.0/8 192.169.67.73/12 192.168.0.0/16
change to your subnet accordingly and tighten security!
Successfully terminated.
Also I changed the file as per the samba config file to access the browser to 192.169.0.67/73.
Is this correct ? Is this why samba2 wont load. I looked if samba and xinetd were running and they are. So I am not sure what I am doing wrong. Thank in advance.
Wengi thanks alot for the transmission help.
Hi all,
one more edit: Install wget with transmission to have my startup script work properly.
wengi
mataanjin
09-05-2009, 04:07
hi, i want to ask, why can't i acess transmission from outside?
this is my json.conf
{
"blocklist-enabled": 1,
"download-dir": "/tmp/harddisk/transmission/download",
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 1,
"max-peers-global": 200,
"peer-port": 51413,
"pex-enabled": 1,
"port-forwarding-enabled": 0,
"rpc-access-control-list": "",
"rpc-authentication-required": 0,
"rpc-password": "trans",
"rpc-port": 9091,
"rpc-username": "root",
"rpc-whitelist": "127.0.0.*,10.*.*.*,192.168.*.*","*.*.*.*"
"upload-limit": 30,
"upload-limit-enabled": 0
}
and how to redirect from port 3031 to 22 (i want to acess my ssh)
this is my post-firewall
#!/bin/sh
## FIREWALL
## set default policy
iptables -P INPUT DROP
## Allow access to various router services from WAN
for P in 3031 51413 9091; do
iptables -I INPUT 1 -p tcp --syn -i "$1" --dport $P -j ACCEPT
done
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3031 \
-j REDIRECT --to-port 22
anything wrong?
tq
HI, again :)
how I can shutdown router, before I disconect a hdd?
after few times when i plug off from electricity, hdd filesystem has been corrupted and I had to format all hdd.
Thank You :)
HI, again :)
how I can shutdown router, before I disconect a hdd?
after few times when i plug off from electricity, hdd filesystem has been corrupted and I had to format all hdd.
Thank You :)
I found this one (http://wl500g.info/showthread.php?t=16786&highlight=shut) but it isn't working.
no internet, but the led's are blinking :(
Now I get it :D
halt -p is working. the led which is blinkeing is only showing to which port I have connected pc. The power led and all other led's aren't blinking.
Questiion about IP tables and revconnect in windows.
I'm using revconnect in Windows, but he isn't working.
the question is:
how in iptables forward port 1024 to specified IP ( IP of my table PC)?
Thank You :)
Hi,
see first page, chapter 16. "Open SSH port to Internet (if directly connected)"
simply change the port number.
wengi
Hi,
see first page, chapter 16. "Open SSH port to Internet (if directly connected)"
simply change the port number.
wengi
Thank You :)
Next question:
I want to se up a homepage on my ASUS. By this tutorial (http://www.macsat.com/macsat/content/view/23/29/), I set up php-thttpd.
and in FW I write this
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 81
:confused: when I browse network, all I can see is my homepage. What i must change, to wiev web from local PC?
Thanks :)
TorontoFish
05-06-2009, 03:51
Hi Wengi,
I have been running 2 WL-HDD 2.5 with the oleg's firmware 1.9.2.7-9 for almost 6 months now. I set them up exactly as you you wrote in this thread, for torrent downloading using transmission. I have to say your guide is very accurate and detailed. Thank you very much for your work. I really really appreciate it!
The first WL-HDD is using a 4GB old hard drive I took out from a very old Toshiba laptop. Even though the drive is very loud, it's been running just fine, the noise doesn't bother to me, because it's in the basement in the utility room. The second WL-HDD is using a new 160GB Samsung internal hard drive, it's quiet, and problematic. At first, I partitioned the drive as 512MB(swap)/10GB(/opt)/149.5GB(for everything else), the unit ran fine until it reached the 25th mount for the hard drive, e2fsck wanted to scan the 3rd partition, but it ran for more than 3 days, I had to kill it. I tried it a few times, it didn't work. So I thought it must be something I did wrong. So I followed your guide again from the very beginning, re-did the whole thing from the scratch.
Same thing happened, after the 3rd partition got mounted 25 times, it launched e2fsck, and it ran forever. This time I am sure it the problem with the firmware, maybe the partition is just too big for this little WL-HDD? (got be, because my 4GB WL-HDD is still running strong even after 50 reboots) So I again re-did the whole thing, but this time split the 3rd partition in half, so it's only 75GB. Sadly, it didn't fix the problem, it occurs again after the partition got mounted 25 times. After googling, I found this:
http://http://www.techds.in/2009/05/e2fsck-hanging-at-70-on-large-partition.html
I am just wondering here, did you (or anybody reading this post) experience anything like this? Is there a work-around I can try? I think re-build a package is just too much for me.
Bob
Hi,
i did not experience this behaviour until now.
The link you provided adresses e2fsprogs-1.35. We are using a newer version.
[admin@blechbuechse root]$ ipkg list_installed | grep -i e2
e2fslibs - 1.41.4-1 - Ext2 Filesystem Libraries
e2fsprogs - 1.41.4-1 - Ext2 Filesystem Utilities
e2tools - 0.0.16-3 - Ext2 toolsThis bug _should_ be solved.
Did you update your system to the newest version (ipkg update/upgrade)?
wengi
TorontoFish
05-06-2009, 19:43
Hi,
i did not experience this behaviour until now.
The link you provided adresses e2fsprogs-1.35. We are using a newer version.
[admin@blechbuechse root]$ ipkg list_installed | grep -i e2
e2fslibs - 1.41.4-1 - Ext2 Filesystem Libraries
e2fsprogs - 1.41.4-1 - Ext2 Filesystem Utilities
e2tools - 0.0.16-3 - Ext2 toolsThis bug _should_ be solved.
Did you update your system to the newest version (ipkg update/upgrade)?
wengi
Hi Wengi, thank you for your quick reply. As usual, you are always there to help!
I ran "ipkg list_installed | grep -i e2", but it didn't return anything on both of my WL-HDDs. I am not running the latest firmware per se, because I am using WL-HDD 2.5, the "latest" firmware for it is 1.9.2.7-9. Am I missing some packages?
Here is the output of "ipkg list_installed":
bzip2 - 1.0.5-1 - Very high-quality data compression program
coreutils - 7.2-1 - Bunch of heavyweight *nix core utilities
cron - 4.1-7 - Standard vixie cron, with cron.d addition
diffutils - 2.8.1-6 - contains gnu diff, cmp, sdiff and diff3 to display differe
nces between and among text files
findutils - 4.2.32-1 - File finding utilities
groff - 1.19.2-2 - front-end for the groff document formatting system
hdparm - 9.15-1 - Linux hard drive parameter utility
ipkg-opt - 0.99.163-10 - The Itsy Package Manager
less - 429-1 - Less file browser
libcurl - 7.19.4-1 -
libuclibc++ - 0.2.2-8 - C++ standard library designed for use in embedded system
s
lynx - 2.8.6-1 - A text browser for the World Wide Web
man - 1.6f-1 - unix manual page reader
man-pages - 2.76-1 - unix manual pages
nano - 2.1.9-1 - A pico like editor
ncurses - 5.7-1 - NCurses libraries
ncursesw - 5.7-1 - NCurses libraries with wide char support.
openssl - 0.9.7m-5 - Openssl provides the ssl implementation in libraries libcry
pto and libssl, and is needed by many other applications and librari
procps - 3.2.8-1 - PROCPS System Utilities
samba2 - 2.2.12-1 - Lightweight Samba suite provides file and print services to
SMB/CIFS clients.
screen - 4.0.3-2 - A screen manager that supports multiple logins on single term
inal
termcap - 1.3.1-2 - Terminal emulation library
transmission - 1.61-1 -
uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
unzip - 5.52-3 - A (de)compression library for the ZIP format
xinetd - 2.3.14-8 - Highly configurable, modular and secure inetd
zlib - 1.2.3-3 - zlib is a library implementing the 'deflate' compression system
Bob
Hi,
do a
ipkg install e2fsprogs e2tools
then retry e2fsck.
wengi
updating blocklist
starting transmission
/opt/bin/transmission-daemon: can't load library 'libevent-1.4.so.2'
[admin@WL-001BFC57BA83 root]$
Same thing here after i installed latest updates. Something wrong with the updates?
Cheers! :cool:
TorontoFish
07-06-2009, 15:53
Hi,
do a
ipkg install e2fsprogs e2tools
then retry e2fsck.
wengi
Thank you Wengi, that did fix my problem.
However, I guess from now on I have to do the e2fsck manually, because the e2fsck happens during the pre-mount, at that time the /opt partition won't be available for the unit to launch the e2fsck included in the e2fsprogs package. Maybe somebody can come out an idea how to check /opt partition using the default BusyBox e2fsck if needed, then mount /opt and use the e2fsck included in e2fsprogs to scan other partition(s). That will be ideal!
Thanks again for your help Wengi.
Hi,
@Dytte
[admin@blechbuechse root]$ ipkg list_installed | grep -i libevent
libevent - 1.4.11-1 - libevent to implement an event loop
If this does not appear:
ipkg install libevent
wengi
what port does ipkg install use, when its downloading? it takes forever when its trying to download the files, but if i try to download it manualy then there no problems
Its using wget.
HTTP. Port 80.
wengi
drevnerussky
12-06-2009, 07:46
hi,
I have a 8GB sd card installed on my wl-500gp (version 1). yesterday i downloaded a file using rtorrent. after the downloading is finished, i turned off the power of the router, and unplugged the card reader. i connected the reader to my pc (i use ubuntu) copied the file to my hard drive, unmounted the sd card and unplugged it. then i connected the card reader to the router. i turned on the power again, but i found that the router didn't mount my sd card. i checked the "/etc/fstab", nothing changed. i also checked everything under /usr/local/sbin, still the same. this had happened many times, could anyone help me out?
thanks in advance.
drevnerussky
17-06-2009, 10:51
Anyone, PLEASE?
i really need help.
Hi,
not really an idea.
Did you do an e2fsck on the partitions?
wengi
Some time unknown users are trying to connect to my router using ssh.
Jun 18 00:17:33 dropbear[1510]: bad password attempt for 'root' from ::ffff:190.154.226.132:47127
Jun 18 00:17:34 dropbear[1510]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:17:38 dropbear[1511]: bad password attempt for 'root' from ::ffff:190.154.226.132:47566
Jun 18 00:17:39 dropbear[1511]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:17:45 dropbear[1512]: bad password attempt for 'root' from ::ffff:190.154.226.132:47864
Jun 18 00:17:46 dropbear[1512]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:17:50 dropbear[1513]: bad password attempt for 'root' from ::ffff:190.154.226.132:48231
Jun 18 00:17:51 dropbear[1513]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:17:55 dropbear[1514]: bad password attempt for 'root' from ::ffff:190.154.226.132:48510
Jun 18 00:17:56 dropbear[1514]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:02 dropbear[1515]: bad password attempt for 'root' from ::ffff:190.154.226.132:48759
Jun 18 00:18:03 dropbear[1515]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:09 dropbear[1516]: bad password attempt for 'root' from ::ffff:190.154.226.132:49061
Jun 18 00:18:10 dropbear[1516]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:14 dropbear[1517]: bad password attempt for 'root' from ::ffff:190.154.226.132:49413
Jun 18 00:18:14 dropbear[1517]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:19 dropbear[1518]: bad password attempt for 'root' from ::ffff:190.154.226.132:49664
Jun 18 00:18:19 dropbear[1518]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:27 dropbear[1519]: bad password attempt for 'root' from ::ffff:190.154.226.132:49900
Jun 18 00:18:27 dropbear[1519]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:32 dropbear[1520]: bad password attempt for 'root' from ::ffff:190.154.226.132:50281
Jun 18 00:18:33 dropbear[1520]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:39 dropbear[1521]: bad password attempt for 'root' from ::ffff:190.154.226.132:50565
Jun 18 00:18:39 dropbear[1521]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:43 dropbear[1522]: bad password attempt for 'root' from ::ffff:190.154.226.132:50901
Jun 18 00:18:44 dropbear[1522]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:49 dropbear[1523]: bad password attempt for 'root' from ::ffff:190.154.226.132:51125
Jun 18 00:18:50 dropbear[1523]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:54 dropbear[1524]: bad password attempt for 'root' from ::ffff:190.154.226.132:51433
Jun 18 00:18:54 dropbear[1524]: exit before auth (user 'root', 1 fails): Disconnect received
Jun 18 00:18:59 dropbear[1525]: bad password attempt for 'root' from ::ffff:190.154.226.132:51691
Jun 18 00:19:00 dropbear[1525]: exit before auth (user 'root', 1 fails): Disconnect received
What I have done wronh in my outer configuration, that other see my router?
My friend doesn't have these false ssh connections. configuration is the same.
Hi,
this is normal. Everyone opening an ssh server on the default port will have these attacks.
If you don not need ssh access from internet: close the port (iptables)
If you need ssh from internet: use a strong password and live with it or do some settings to secure ssh access.
eg. http://wl500g.info/showpost.php?p=98784&postcount=268
wengi
Can anyone tell me how can i add ftp after i run this how-to?
Hi,
install a ftp server of your choice with ipkg
[admin@blechbuechse root]$ ipkg list | grep -i ftpd
bftpd - 2.3-1 - bftpd is a very configurable Linux FTP server which can do chroot without special configuration or directory preparation.
ftpd-topfield - 0.7.7-0 - FTPD for the Topfield TF5000PVRt
proftpd - 1.3.2-2 - Highly configurable FTP server with SSL-TLS
pure-ftpd - 1.0.22-1 - A free (BSD), secure, production-quality and standard-conformant FTP server.
stupid-ftpd - 1.5beta-1 - FTP server with ftp-daemon functionality and a command-line mode.
tnftpd - 20081009-1 - tnftpd (formerly lukemftpd) is a port of the NetBSD FTP server to other systems.
vsftpd - 2.1.2-2 - ftp daemon with an emphasis on speed and security
wengi
after i run almost all the how-to (at least the parts i needed) i enabled the ftp from web-gui.
I'm using WL500gx-1.9.2.7-d-r381.trx latest.
But the performance of the ftp were very poor.
After i disabled the ftp from web-gui i could not see my usb harddisk.
What could be the cause?
Do I need to restore the defaults and run the how-to again?
thanks.
Hi,
1) restart router
2) see if hdd is mounted in shell (mount)
What exactly do you mean with
i could not see my usb harddisk.
wengi
PS: i can not see my WL-HDD harddisk because it is internal.... ;)
Hi,
What exactly do you mean with
wengi
PS: i can not see my WL-HDD harddisk because it is internal.... ;)
df shows me only:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
tmpfs 15088 152 14936 1% /tmp
and i rebooted 3 times already
output from "mount" command:
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
Your hdd is not mounted at all.
what about your syslog?
Any entries regarding hdd?
maybe there is a e2fsck running in background?
wengi
I'm a newbie in this OS although i know some linux.
how do i check syslog?
Have a look at /opt/var/log
there is the syslog/messages.
also type ps axf and see if there is e2fsck running
wengi
i don't have /opt available - 'cause hdd is not mounted.
output from syslog:
Jan 1 01:00:04 kernel: usb.c: registered new driver usbdevfs
Jan 1 01:00:04 kernel: usb.c: registered new driver hub
Jan 1 01:00:04 kernel: usb-uhci.c: $Revision: 1.275 $ time 17:43:15 Jun 21 2009
Jan 1 01:00:04 kernel: usb-uhci.c: High bandwidth mode enabled
Jan 1 01:00:04 kernel: PCI: Enabling device 01:02.0 (0000 -> 0001)
Jan 1 01:00:04 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 01:00:04 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
Jan 1 01:00:04 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:04 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 01:00:04 kernel: hub.c: USB hub found
Jan 1 01:00:04 kernel: hub.c: 2 ports detected
Jan 1 01:00:04 kernel: PCI: Enabling device 01:02.1 (0000 -> 0001)
Jan 1 01:00:04 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 01:00:04 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 01:00:04 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:05 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 01:00:05 kernel: hub.c: USB hub found
Jan 1 01:00:05 kernel: hub.c: 2 ports detected
Jan 1 01:00:05 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interfa
ce driver
Jan 1 01:00:05 kernel: PCI: Enabling device 01:02.2 (0000 -> 0002)
Jan 1 01:00:05 kernel: ehci_hcd 01:02.2: PCI device 1106:3104
Jan 1 01:00:05 kernel: ehci_hcd 01:02.2: irq 12, pci mem c0147000
Jan 1 01:00:05 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 01:00:05 kernel: EHCI: Enabling VIA 6212 workarounds
Jan 1 01:00:05 kernel: ehci_hcd 01:02.2: USB 2.0 enabled, EHCI 1.00, driver 10
Dec 2004/2.4
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 kernel: usb.c: registered new driver usblp
Jan 1 01:00:05 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:05 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 01:00:06 kernel: Initializing USB Mass Storage driver...
Jan 1 01:00:06 kernel: usb.c: registered new driver usb-storage
Jan 1 01:00:06 kernel: USB Mass Storage support registered.
also e2fsck is not in ps (no ps axf available also)
okay, that was stupid :rolleyes: sorry.
There is no hdd detected in your syslog.
remove all usb devices (printers, hubs, etc).
Only leave hdd connected.
reboot and have a look at the syslog.
wengi
I'll just that when I reach home.
I forgot to mention I'm working remotely - currently at work :)
i fixed my issue with the HDD by just unplug and then plug it back.
Now I need a tutorial to install the vsftpd.
I found some : macsat, nslu2 - but i have'n succeeded running ftp.
I noticed that in my r381 firmware the vsftpd is installed by default.
How can i fixed the configuration according to my needs?
You can configure the built in ftp via the webinterface.
If this is not working for your needs you can create your own conf and save it in flash.
wengi
how can i forward port 51413 for transmission?
how can i forward port 51413 for transmission?
iptables -I INPUT -m tcp -p tcp --dport 51413 -j ACCEPT
claudiuid
07-07-2009, 22:03
Hi
I am a new member of this forum and also new to Linux
I want to thx wengi for this great how
everything worked fine ... till samba
i've installed xinetd then samba2
i have made all the changes in swat settings and everything looked ok but
when i've changed the ip in host alow setting and entered 192.168.1.18/24
and reboot i received
400 Server Error
Samba is configured to deny access from this client
Check your "hosts allow" and "hosts deny" options in smb.conf
i removed and install samba back....same thing
i have a lot of torrents on my usb hdd and i want to copy them to my xp pc
pls help
The solution is right there, in your own post:
Samba is configured to deny access from this client
Check your "hosts allow" and "hosts deny" options in smb.conf
claudiuid
07-07-2009, 23:39
Hi again
I checked the settings a few times more and now seems to be ok
thx for the quick answer
now in my workgroup I can see the router but when I try to open it
I get the message
\\Wl-0022152740da\disk0-3is not accessible.You might not have permissionthis network resource.Contact the administrator of this server to find out if u have access permision.
This network name cannot be found.
This is the config pf my samba# Samba config file created using SWAT
# from 192.168.1.18 (192.168.1.18)
# Date: 1970/01/01 01:08:35
# Global parameters
[global]
netbios name = WL-0022152740DA
server string = Samba Optware Server
security = SHARE
admin log = Yes
log file = /opt/var/log/samba/log.%m
max log size = 50
load printers = No
dns proxy = No
guest account = admin
hosts allow = 192.168.1.18
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /opt/var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
[www]
comment = HTTP server files
path = /opt/share/www
read only = No
guest ok = Yes
[torrent]
comment = torrent files
path = /tmp/mnt/torrent
read only = No
guest ok = Yes
Thx again in advance
... the ip in host alow setting and entered 192.168.1.18/24
Hi and welcome to the forum,
If you are using subnets with /24 you should use a .0 IP.
Try 192.168.1.0/24
wengi
claudiuid
08-07-2009, 14:41
thx for the reply wengi
but i need help for the problem described in post #704
have a look at the smb.conf in chapter 17 A)
This is the config i am using with the built in samba.
But the config should nearly be the same with samba2.
wengi
claudiuid
10-07-2009, 09:20
hi again
my asus 500gp stopped working
the guys in the store from where i bought it told me that they are going to change it with a new 500gp v2
my question is : will this how to work with this 500gp v2 ?
thx
yes.
V2 is simply the same but slower hardware.
wengi
First and foremost a thanks to oleg for the FW & wengi for the excellent tute.
I want to setup a wl520gu as a media file server & torrent box. I have followed wengi tute but find that inetd & samba just don't work. when I remove inetd & samba and just install samba, it works.
I get the same error message as claudiuid ie
\\Wl520gu\torrent is not accessible.You might not have permissionthis network resource.Contact the administrator of this server to find out if u have access permision.
This network name cannot be found.
(edited smb.conf entries, replace with another problem as described below 31/07/2009)
Also when not using inetd, devices attached to the WL520gu is able to see the samba share but PC connected to the AP or other wireless client is not able to see the samba share of the WL520GU.
Any help is appreciated.
Thanks
Hello guys,
I tried and tried and tried but to no avail...
I'd like to switch of the ipv6 functionality completely so my wl500g only uses ipv4 addresses but have not found a way to do this.
The reason I want to do this is because of Wondershaper. Basically I would like to limit my upload speed to the internet but NOT on my LAN obviously. My setup involves an ADSL modem in bridged mode (not possible to do any traffic control there) and a router (too old to support QoS) and my wl500g as access point. I need to do the traffic control on the Asus therefore but only to the outside. Wondershaper or 'tc' do not seem to support ipv6 though. I mean it does work but it is not possible to make the distinction between internal traffic and external traffic.
Using Wondershaper I set up a class for my internal range and a class for my 'external' range (effectively 0.0.0.0/0). Unfortunately I can only setup my internal range class using ipv4 addresses.
So if anyone knows how to configure Wondershaper to work with ipv6 then, yes please! If not then I would very much like to know how to disable ipv6 in my current firmware?
Thanks a lot in advance!
this is my laest PAIN in the ASS
I want to make ftp more secure, by using portforwarding.
iptables -t nat -A PREROUTING --dport 10000 -j DNAT --to-destination 21
I know that, there's something missing :(
could someone Linux guru help me out?
I tryed this one (http://wl500g.info/showpost.php?p=119838&postcount=7)
Still nothing
Next problemm
How to (http://wl500g.info/showthread.php?t=10307) step 15
I did everything step-by-step , but asus says
Server refused our key
I found this (http://wl500g.info/showpost.php?p=61354&postcount=5), but I dont understand "simply use the dropbear part of the" <- is this the step 15?
The question is: how I can create automated login for ssh?
Next problemm
How to (http://wl500g.info/showthread.php?t=10307) step 15
I did everything step-by-step , but asus says
Server refused our key
I found this (http://wl500g.info/showpost.php?p=61354&postcount=5), but I dont understand "simply use the dropbear part of the" <- is this the step 15?
The question is: how I can create automated login for ssh?
Thanks to HoGo and google I solved this problem.
Problem was in file/folder permission and wrong type of rsa key.
Problemm with iptables and sftp is still actual!
this is my laest PAIN in the ASS
I want to make ftp more secure, by using portforwarding.
iptables -t nat -A PREROUTING --dport 10000 -j DNAT --to-destination 21
Hi,
i am not an iptables expert, but referencing this (http://www.go2linux.org/iptables-port-26-redirection-accept-email-on-another-port) you could try
iptables -A INPUT -p tcp --dport 10000 -j ACCEPT
iptables -A PREROUTING -t nat -p tcp --dport 10000 -j REDIRECT --to-port 21
The first one opens port 10000. The second redirects.
wengi
Hi,
i am not an iptables expert, but referencing this (http://www.go2linux.org/iptables-port-26-redirection-accept-email-on-another-port) you could try
iptables -A INPUT -p tcp --dport 10000 -j ACCEPT
iptables -A PREROUTING -t nat -p tcp --dport 10000 -j REDIRECT --to-port 21
The first one opens port 10000. The second redirects.
wengi
Thanks :)
I'll try this one :)
Now I get this error
[root@WL-001FC64989AD root]$ flashfs save && flashfs commit && flashfs enable && reboot
/sbin/flashfs: /sbin/flashfs: 20: cat: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: [: Permission denied
tar: Removing leading '/' from member names
tar: /tmp/local: Unknown file type
tar: Error exit delayed from previous errors
/sbin/flashfs: /sbin/flashfs: 73: ls: Permission denied
Did you install bash?
If so: remove it.
bash modifies your profile and this is the result.
You can reinstall bash later...
wengi
If so: remove it.
bash modifies your profile and this is the result.
You can reinstall bash later...
wengi
It helped :)
Thanks :)
So now I can reisntall bash?
Hi,
iptables -A PREROUTING -t nat -p tcp --dport 10000 -j REDIRECT --to-port 21
wengi
This helped. Now everything ( read as sftp ) is working great :)
This helped. Now everything ( read as sftp ) is working great :)
I still can access from port 21 ( I have disabled it into iptables) :(
How I can install/get gcc on my asus?
How I can install/get gcc on my asus?
ipkg install buildroot
(it's 42 Mb big, so you need swapspace, diskspace and patience ;) )
Also usefull:
ipkg install optware-devel
(it contains the other packages needed for compiling)
ipkg install buildroot
(it's 42 Mb big, so you need swapspace, diskspace and patience ;) )
Also usefull:
ipkg install optware-devel
(it contains the other packages needed for compiling)
I have 512 MB swap
900 GB of diskspace :)
and lots of patient :)
I want to/I need to execute this line at start-up. I must put it post-boot or do something else?
Hi!
I am unable to add torrents to the download list, any ideas? All software is up to date to the latest versions.
rm_fontes
24-09-2009, 21:23
i have a doubt regarding the disk connected to the router. after i follow the 4rd point of the tutorial and activate the swap and ipkg partitions can i start the router without the disk connected?
i have a doubt regarding the disk connected to the router. after i follow the 4rd point of the tutorial and activate the swap and ipkg partitions can i start the router without the disk connected?
Yes, you can. But you will only have the basic firmware functions.
wengi
Good morning :)
I need help with php-mysql.
I know that in this forum somwhere is the answer, but I cant found :(
So ...
I have done thttpd and mysql by this tutorial (http://www.macsat.com/macsat/content/view/23/29/)
but
php version 5.2.10 ( now 5.2.11) isn't working with mysql version 4.1.22
Only php version which is working is 5.2.9
( this I noticed in php.php file. and I can't login to my webpage using mysql)
So what should I do, to solve the problem?
Thank You and I hope You understud something. My ENG is bad
This is definitly the wrong thread to ask php-mysql related things....
wengi
Good morning :)
I need help with php-mysql.
I know that in this forum somwhere is the answer, but I cant found :(
So ...
I have done thttpd and mysql by this tutorial (http://www.macsat.com/macsat/content/view/23/29/)
but
php version 5.2.10 ( now 5.2.11) isn't working with mysql version 4.1.22
Only php version which is working is 5.2.9
( this I noticed in php.php file. and I can't login to my webpage using mysql)
So what should I do, to solve the problem?
Thank You and I hope You understud something. My ENG is bad
Hi,
ipkg install php-mysql should do this trick, it's the 'connection' bewtween php and mysql.
As found in: http://www.wl500g.info/showthread.php?t=20306 which is found in the tutorial section.
(but, like wengi says.. this topic isn't about mysql/php)
Hi, i have a problem with the fdisk command i supose.
[admin@asus root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
[admin@asus root]$ fdisk /dev/discs/disc0/disc
Unable to open /dev/discs/disc0/disc
My hardware is: WL-500gP2, with Oleg 1.9.2.7-10-USB-1.71
And a Hdd WD 1TB My Book. I have made the HDD ext3, ntfs, fat 32, swap...and all the same...where could i be wrong. Please
I what to make my Hdd a Server for Php mysql and apache.
Thank you in advance.
Hello and welcome to the forum,
Let us see if your hdd is recognized.
Please post the result of
ls -lah /dev/discs/
ls -lah /dev/result/of/first/ls
Please replace the /result/of/first/ls with the output of first command.
This should result in something like this:
[admin@blechbuechse root]$ ls -lah /dev/discs/
total 0
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
lr-xr-xr-x 1 admin root 30 Jan 1 1970 disc0 -> ../ide/host0/bus0/target0/lun0
[admin@blechbuechse root]$ ls -lah /dev/ide/host0/bus0/target0/lun0/
total 0
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
brw------- 1 admin root 3, 0 Jan 1 1970 disc
brw------- 1 admin root 3, 1 Jan 1 1970 part1
brw------- 1 admin root 3, 2 Jan 1 1970 part2
brw------- 1 admin root 3, 3 Jan 1 1970 part3
Also post the result of
dmesg | grep -i usb
dmesg | grep -i ide
wengi
Thank you for your prompt reply, wengi !
I have my HDD formated and partioned - with Partition Magic in Wdos - like this:
1 - 400 GB NTFS
2 - 400 GB NTFS
3 - 99 GB FAT 32
this is the code you've asked me for
[admin@asus root]$ ls -lah /dev/discs/
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
lr-xr-xr-x 1 admin root 31 Jan 1 1970 disc0 -> ../scsi/host1/bus0/target0/lun0
[admin@asus root]$ ls -lah /dev/scsi/host1/bus0/target0/lun0
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
brw------- 1 admin root 8, 0 Jan 1 1970 disc
[admin@asus root]$ dmesg | grep -i usb
usb.c: USB disconnect on device 00:03.0-1.1 address 7
usb.c: kusbd: /sbin/hotplug remove 7
hub.c: new USB device 00:03.0-1.1, assigned address 8
usb.c: kmalloc IF 8190fa40, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 8 default language ID 0x409
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8
usb.c: usb-storage driver claimed interface 8190fa40
usb.c: kusbd: /sbin/hotplug add 8
usb.c: USB disconnect on device 00:03.0-1.1 address 8
usb.c: kusbd: /sbin/hotplug remove 8
hub.c: new USB device 00:03.0-1.1, assigned address 9
usb.c: kmalloc IF 8190f900, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 9 default language ID 0x409
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 9
usb.c: usb-storage driver claimed interface 8190f900
usb.c: kusbd: /sbin/hotplug add 9
[admin@asus root]$ dmesg | grep -i ide
Hmm....
disc is there, but no partitions.
can you partition the disk with fdisk as stated in the tut?
(Not with external programs)
wengi
here is what i've tried to do...and didn't work...
[admin@asus root]$ ls -lah /dev/discs/
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
lr-xr-xr-x 1 admin root 31 Jan 1 1970 disc0 -> ../scsi/host1/bus0/target0/lun0
[admin@asus root]$
[admin@asus root]$ fdisk /dev/scsi/host1/bus0/target0/lun0
You will not be able to write the partition table.
Unable to read /dev/scsi/host1/bus0/target0/lun0
[admin@asus root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
[admin@asus root]$
If i try
[admin@asus root]$ fdisk /dev/discs/disc0/disc
Unable to open /dev/discs/disc0/disc
:(
Sorry, no idea atm.
Could you try another hdd/usbstick?
Just to check if it is a general or particular problem.
wengi
i've tried with a 2gb usb stick formated FAT
i didn't made the hole process but it is able to make fdisk comands.
I have formated FAT the HDD, and made a partition of 2 GB and the ret of 900 GB unpartitioned, but i had the old problem...
Could be a problem with the hdd?
If i connect the hdd in the router just for file sharing...it can't be seen...i have enabled samba and FTP, NFS is Not enabled...
Do you have any ideea?
outlaw11
26-10-2009, 22:06
what settings/configuration should i restore if i need to use other hdd? (hw failure on old one)
well, you need to restore .. pretty much everything :) . My advice is to reset the device to defaults and follow again the wengi's tutorial. Since most of the progs + their configs were on the hdd (opt partition), you won't feel the difference.
simistef
05-11-2009, 07:41
Just like the others, my Samba stopped showing suddenly. Everything looks fine, no error logs, just not showing anymore.
Also i have the same problem with Mediatomb media server. Sometimes works, sometimes not. It was not listed in this tutorial, but i think it should, because it provides a complete solution along with the samba server and torrent client.
tmsulica
14-11-2009, 20:01
Hy wengi, great work . I installed latest olg's firmware on my WL500-gp by your tutorial and it works like a charm, no error . But i have an question:
Seems like transmission don't work with local peer discovery. I will tell you why:
My network is an country network (from Romania, it's called RDS) and if i download a torrent with my u torrent from win XP i get around 150-200k downl rate without local peer discovery, but if somebody from my network ( about 500.000 users) is on line with that file my transfer rate jumps to 1,5 mbs or even 2 mbs. That thing is not happening in transmission.
Is any way to make it work there too for increasing speed if somebody from my network shares the file ?
Thanks, hope you will have an answer . Good job. My congrats.
You can mail me if you want, i will give my email. 10x
Hi,
i am sorry but this is too transmission-special.
I know how to install and configure but have no idea about local peer discovery.
But one minute google results in:
http://forum.transmissionbt.com/viewtopic.php?f=3&t=5754
http://trac.transmissionbt.com/ticket/1394
Seems that transmission still does not support this feature.
wengi
tmsulica
16-11-2009, 09:25
Thank you very much for your answer, maybe transmissiond has it ? but i have another question for you cuz i am a newbie :) :
I want to make my asus router to play some mp3 files from my hdd mounted on the device and play it to an usb soundcard ( My router stands on my 5.1 media sistem and it would be easy to play music or an radio - streaming one -without turning computer on).
Can i do this ? I gogle it but i do not have an very good answer. (Cuz i am a newbie).
If i can, i wold need an linux player for router an drivers for the sound card , no ? The soundcard is ESS USB Audio from Konig (cmp-soundusb12).
PLEASE HELP IF YOU KNOW , AN IF YOU DON'T MAYBE YOU CAN GUIDE ME TO SOMEBODY ELSE !
THANK YOU FOR YOUR HELP !
I FOUND SOMETHING ON http://omgili.com/jmp/jHIAmI4hxg.9n1...FZUPNxH3FlaA-- BUT I DO NOT KNOW DEUTCH, and translated is rubbish ... HLP PLEASE
Never done that before.
Searching for soundcard here in the forum gives me an idea.
But i have no idea if this will work.
There is a german thread about that: http://wl500g.info/showthread.php?t=19813
This states that the newest firmware (http://code.google.com/p/wl500g/) should support soundcards.
"ipkg install libusb" ans "lsusb" should help if you get usb problems.
Then use
madplay
or
http://wl500g.info/showthread.php?t=4150
or
http://wl500g.info/showpost.php?p=62590&postcount=37
or
http://wl500g.info/showpost.php?p=111374&postcount=44
I think all the information is here in the forum. you have to read, learn and test.
wengi
tmsulica
25-11-2009, 20:10
thank you very much, but i do not know deutch :(( that is a problem for me
Hi,
three of the four links are english.
Where is your problem?
wengi
tmsulica
26-11-2009, 09:33
No problem here, just that the german forum seems to be more coplex on information on that thread, the others i read it. Thank you for your help.
As i said.
My knowledge with soundcards on routers is zero.
If you managed it to work you could write a short howto :)
wengi
tmsulica
26-11-2009, 10:29
Ok , i will do that 10x !
Thanks to your HOWTO I managed to install USB HDD yesterday!
However after the HDD installation when I reboot my Asus, it sometimes becomes crippled in a strange way. I mean some important modules & services are not loaded.
For example the et (ethernet) module is not loaded, so there is no LAN or WAN, and only way to access it is through wireless. Thank god the wl module was loaded!
Also dropbear wasn't started but httpd was, so I could access it and reboot again and then everything was normal
It seems to me that sometimes some startup scripts are loaded and sometimes not. Though I can't figure out why this happens???
Hi RDF,
Informations needed!!
- Hardware?
- Firmware?
- Full install of my HowTo?
- log files (dmesg, syslog, anything else that could help).
wengi