Optware, the right way

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 151, 152, 153 ... 157, 158, 159  Next
Author Message
fisheater
DD-WRT Novice


Joined: 18 Nov 2010
Posts: 7

PostPosted: Mon Apr 09, 2012 1:59    Post subject: ?Kingkong + OTRW, Asus N16 = partially working Reply with quote
Hi all,

New to the world of tinkering under the hood with these things, love it so far.

A bit stuck though: Using KingKong 18730M and trying to use optware. Tried to add some #!sh and other lines to the code, not luck. Tried the script, no luck.

Error I get: /usr/sbin/wl:-i eth2 interference 3 -> wl driver adapter not found. Searching the web/forums not helping clear this up. Is it likely simple, pls steer me in the direction of the fix.

Thank!
Sponsor
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Mon Apr 09, 2012 5:21    Post subject: Re: ?Kingkong + OTRW, Asus N16 = partially working Reply with quote
On which router?

Try the script in my previous post that will fix the #!/bin/sh

fisheater wrote:
Hi all,

New to the world of tinkering under the hood with these things, love it so far.

A bit stuck though: Using KingKong 18730M and trying to use optware. Tried to add some #!sh and other lines to the code, not luck. Tried the script, no luck.

Error I get: /usr/sbin/wl:-i eth2 interference 3 -> wl driver adapter not found. Searching the web/forums not helping clear this up. Is it likely simple, pls steer me in the direction of the fix.

Thank!
fisheater
DD-WRT Novice


Joined: 18 Nov 2010
Posts: 7

PostPosted: Mon Apr 09, 2012 19:13    Post subject: Reply with quote
Thanks for your suggestions, I am using the Asus N16 and did run your script via putty, it updated some files, did not others, then at the end noted that fixing the errors.

I will try and reformat the USB key, then run your script again.

Great work everyone, keep it up.

Will report back how it goes.

Thanks!
rocky13
DD-WRT User


Joined: 25 Apr 2008
Posts: 158

PostPosted: Wed Apr 11, 2012 2:18    Post subject: Reply with quote
basmaf wrote:
Ok Guys,

I spend some time fixing known bugs via the prep_optware script.

I did not add or remove any scripts, just fixing fraters scripts.
Install OTRW the as you're used only with a couple of fixes.
Code:
# Install or Update optware:
wget -O /tmp/prep_optware http://www.dd-wrt.com/phpBB2/download.php?id=22258
sh /tmp/prep_optware


This are the bugs currently known to me
If there are more let me know and i will see what i can do.

  1. Missing shebang in asiablock
  2. Missing shebang in birmablock
  3. Missing shebang in worldblock
  4. Missing shebang in pound
  5. libpcre.so.0 removed (needed for grep and pound


basmaf..


After updating these files, i can not access through wan to ftp site. Would there be anything in there that would cause this?.

thanks.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Wed Apr 11, 2012 4:17    Post subject: Reply with quote
rocky13 wrote:
After updating these files, i can not access through wan to ftp site. Would there be anything in there that would cause this?.
thanks.


Which way do you mean?
Do you run a ftp server on your router or locally on your lan.
Or are you trying to access a ftp somewhere on the web.

basmaf,,
rocky13
DD-WRT User


Joined: 25 Apr 2008
Posts: 158

PostPosted: Wed Apr 11, 2012 14:30    Post subject: Reply with quote
basmaf wrote:
rocky13 wrote:
After updating these files, i can not access through wan to ftp site. Would there be anything in there that would cause this?.
thanks.


Which way do you mean?
Do you run a ftp server on your router or locally on your lan.
Or are you trying to access a ftp somewhere on the web.

basmaf,,


I am currently running proftpd as a standalone server on my router, i can access via lan but now I can't run it remotely via WAN. I have a WRT610nv2 18024 BS big build
rocky13
DD-WRT User


Joined: 25 Apr 2008
Posts: 158

PostPosted: Thu Apr 12, 2012 0:04    Post subject: Reply with quote
basmaf wrote:
rocky13 wrote:
After updating these files, i can not access through wan to ftp site. Would there be anything in there that would cause this?.
thanks.


Which way do you mean?
Do you run a ftp server on your router or locally on your lan.
Or are you trying to access a ftp somewhere on the web.

basmaf,,


No sorry, it is working now, like it did before, i had to disable the fixtables service and it works again, whenever the fixtable service is active it hammers all ip address that try to access my ftp site. I could not find a solution to fix this.
fisheater
DD-WRT Novice


Joined: 18 Nov 2010
Posts: 7

PostPosted: Thu Apr 12, 2012 2:20    Post subject: KingKong + OTWR + Asus N16 = stuck Reply with quote
Hi all,

This is a follow up to a post 3 ago: unable to use asiablock with that handy script by basmaf (thanks).

I reformatted my USB, reset up partitions, reloaded the opware via:

***
wget -O /tmp/prep_optware http://www.dd-wrt.com/phpBB2/download.php?id=22258
sh /tmp/prep_optware
***

Then tried to start asiablock and got the same error messages as before

***
Optware and basic packages are installed.

Checking Optware Scripts for bugs....

BUG - shebang is missing in /opt/etc/init.d/S95asiablock changed the file
BUG - shebang is missing in /opt/etc/init.d/S95birmablock changed the file
BUG - shebang is missing in /opt/etc/init.d/S95worldblock changed the file
BUG - shebang is missing in /opt/etc/init.d/S80pound changed the file
BUG - /opt/lib/libpcre.so.0 is missing creating a symlink


service asiablock on
service asiablock start

(loads rules)

S95asiablock: Restart firewall

/bin/sh: can't open 'echo -e # bof'
/usr/sbin/wl:-i eth2 interference 3 ->wl driver adapter not found
/usr/sbin/wl:-i eth2 interference 3 ->wl driver adapter not found
/usr/sbin/wl:-i eth2 interference 3 ->wl driver adapter not found
/usr/sbin/wl:-i eth2 interference 3 ->wl driver adapter not found
***

And with one new one

***
/bin/sh: can't open 'echo -e # bof'
***
Suggestions?

Thank for letting me use your collective brains.

FE
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Apr 12, 2012 4:15    Post subject: Reply with quote
Hi,

Do you have the wl interference level set in your firewall scipt? it should be in startup.

Please post output of:
Code:
grep '#!/bin/sh" >${SPAMfilepath}' /opt/etc/init.d/S95asiablock
grep "bof" /opt/etc/init.d/S95asiablock
cat /opt/etc/iptables.asia | head -n 2

It should look like this:
Code:
root@E4200:~# grep '#!/bin/sh" >${SPAMfilepath}' /opt/etc/init.d/S95asiablock
  echo -e "#!/bin/sh" >${SPAMfilepath}
root@E4200:~# grep "bof" /opt/etc/init.d/S95asiablock
  echo -e "# bof" >>${SPAMfilepath}
root@E4200:~#
root@E4200:/opt/etc# cat iptables.asia | head -n 2
#!/bin/sh
# bof
 
fisheater
DD-WRT Novice


Joined: 18 Nov 2010
Posts: 7

PostPosted: Thu Apr 12, 2012 4:24    Post subject: Reply with quote
Thanks for your reply.

To address your first question, 'Do you have the wl interference level set in your firewall scipt? it should be in startup.' I admit I am not sure what that means. The only firewall addition I have done is under Administration->Commands:

#i added this from another forum post
wanf=`nvram get wan_iface`
iptables -I INPUT 2 -i $wanf -p tcp -j asia
iptables -I FORWARD 1 -i $wanf -p tcp --dport 20:1024 -j asia

The output of grep is different from yours, I have not altered any of the files installed from your script:

root@ddwrt:~# grep '#!/bin/sh" >${SPAMfilepath}' /opt/etc/init.d/S95asiablock
echo -e "#!/bin/sh" >${SPAMfilepath}n echo -e "# bof" >>${SPAMfilepath}
root@ddwrt:~# grep "bof" /opt/etc/init.d/S95asiablock
echo -e "#!/bin/sh" >${SPAMfilepath}n echo -e "# bof" >>${SPAMfilepath}


1. Should I try removing the wan_iface bit from my firewall?
2. Is the output different enough to be the root of this error?

Thanks!

FE
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Apr 12, 2012 4:52    Post subject: Reply with quote
rocky13 wrote:
No sorry, it is working now, like it did before, i had to disable the fixtables service and it works again, whenever the fixtable service is active it hammers all ip address that try to access my ftp site. I could not find a solution to fix this.


Check this post http://www.dd-wrt.com/phpBB2/viewtopic.php?p=671806#671806

I have made a change to the stophammer script so it checks.
asia.ham for IP's before blocking it.

But that will only work when you add all the IP which are accessing you FTP server.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Apr 12, 2012 6:32    Post subject: Reply with quote
fisheater wrote:
The output of grep is different from yours, I have not altered any of the files installed from your script:


I made a mistake in the order of fixing bugs in the prep script... will update the script later.

For fixing your problem.
Files need to be created again

Remove files created by asia and run the prep script again
Code:
service asiablock stop
rm /opt/etc/iptables.asia*
wget -O /tmp/prep_optware http://www.dd-wrt.com/phpBB2/download.php?id=22258
sh /tmp/prep_optware
service asiablock start

# Check asiablock again.
grep '#!/bin/sh" >${SPAMfilepath}' /opt/etc/init.d/S95asiablock
grep "bof" /opt/etc/init.d/S95asiablock
cat /opt/etc/iptables.asia | head -n 2
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Thu Apr 12, 2012 15:22    Post subject: Reply with quote
Here are the edited S95*block services. Fixes firewall service being unable to load the full firewall configuration upon start/restart.

It contains the full path, so for extracting it use:

cd /
tar xvf /mnt/S95.tar



S95.tar
 Description:
Edited S95*block services.

Download
 Filename:  S95.tar
 Filesize:  50 KB
 Downloaded:  501 Time(s)


_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Apr 12, 2012 18:57    Post subject: Reply with quote
@ slobodan

That will indeed work, but that is not what i am trying to achieve.

I'm trying to modify the prep script in such way that every can use just it to update or install optware,
Without the need to hack crack copy paste in original scripts as it was in the past when frater kept his scripts up to date.

Everybody who uses OTRW on recent builds will have issues and is required to modify scripts and in some cases create symlinks.
Which makes OTRW unusable for the less experienced users

Since I got no response from frater concerning updating his scripts.
I don't see any other options...

Please don't misunderstand me I'm trying to bring OTRW back to life

basmaf..
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Thu Apr 12, 2012 23:22    Post subject: Reply with quote
basmaf wrote:
Since I got no response from frater concerning updating his scripts.
I don't see any other options...

Please don't misunderstand me I'm trying to bring OTRW back to life

basmaf..

With that being said, maybe whole setup should be hosted elsewhere? I do not want to "rip off" frater's hard work, but if he has chosen to abandon this project, maybe it needs to be moved?

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
Goto page Previous  1, 2, 3 ... 151, 152, 153 ... 157, 158, 159  Next Display posts from previous:    Page 152 of 159
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum