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 ... 132, 133, 134 ... 157, 158, 159  Next
Author Message
crashfly
DD-WRT Guru


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

PostPosted: Thu May 12, 2011 3:03    Post subject: Reply with quote
kzimmer wrote:
Can anyone confirm that http://wd.mirmana.com/prep_optware
is down? I can't seem to download the optware prep files.

-Kole

It is likely that frater is having some connection issues. Yes, the site is down. I am sure he will look into it as soon as he can.

_________________
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.
Sponsor
kzimmer
DD-WRT Novice


Joined: 16 Jan 2010
Posts: 3

PostPosted: Fri May 13, 2011 0:49    Post subject: Reply with quote
Hmm... Still down. Is there a mirror by chance? I really want to get this working again. Thanks in advance.

-Kole
wetdirtmud
DD-WRT Novice


Joined: 17 Jun 2009
Posts: 11

PostPosted: Sat May 14, 2011 23:54    Post subject: Reply with quote
I'm trying to allow public access to my lighttpd server. It works fine locally:

http://192.168.3.1/index.html

however

http://[WANIP]/index.html

Shows nothing. Are there some steps I can run through to fix this? I imagine it is a firewall problem.
zoomlink
DD-WRT User


Joined: 08 May 2011
Posts: 221

PostPosted: Sun May 15, 2011 0:10    Post subject: Reply with quote
Do you have pound running?
wetdirtmud
DD-WRT Novice


Joined: 17 Jun 2009
Posts: 11

PostPosted: Sun May 15, 2011 0:13    Post subject: Reply with quote
zoomlink wrote:
Do you have pound running?


I just now started the 'pound' service. I haven't configured it in any way.
Here's this:


root@DD-WRT:/opt/etc# cat /tmp/pound/pound.cfg

Code:

User            "pound"
Group           "nobody"
TimeOut         30
Alive           30
Control         "/var/run/pound.ctl"

LogLevel                3
ListenHTTP
        Address 192.168.3.1
        xHTTP 3

        Port 8081

        Err503 "/opt/etc/pound/Err503"


        Service "dd-wrt"
                HeadRequire "^Host:[\t ]*dd-wrt"
                Backend
                        Address 192.168.3.1
                        Port 80
                end
        end
        Service "Default"
                BackEnd
                        Address 192.168.3.2
                        Port 80
                End
        End


http://192.168.3.2/ <- This internal address shows the page:

"lighttpd server is running (virtual hosting)."

Which I believe is good, so far...
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun May 15, 2011 6:53    Post subject: Reply with quote
You should run lighttpd on a secondary IP (192.168.3.2). This can be arranged by editing /opt/etc/init.d/S80vlighttpd

secIP=192.168.3.2
terIP=192.168.3.3

You will then have virtual hosting on secIP (192.168.3.2)and physical hosting on terIP (192.168.3.3).

You can then put your physical hosted website in /opt/share/www/
Your virtual hosted website should go to /opt/share/www/vhosts/com/yourdomain/www/

Pound is not necessary unless you want to expose more webservers to the Internet.

Pound creates a setup based on the hosts of your LAN.
in /opt/etc/pound you can use the files pound.header & pound.tail to put entries before and after these automated entries.

It's important to know how virtual hosting and DNS works. Laughing

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Sun May 15, 2011 11:42    Post subject: Reply with quote
I have some issue with the asterisk script (S90asterisk). I'm trying to setup asterisk on my RT-N16 and have noticed a couple of inital problems:

- when I run the script it seems to hang - I don't get back to the command prompt on my console. Restarting the console and issue 'service asterisk' shows that the service is running. Running 'asterisk -r' gets me the asterisk CLI. Asterisk is running

- Running 'Service asterisk stop' doesn't kill the firewall rules associated with asterisk. Only way to remove them is to reboot rooter.

Only me??
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun May 15, 2011 12:16    Post subject: Reply with quote
wabe wrote:
- Running 'Service asterisk stop' doesn't kill the firewall rules associated with asterisk. Only way to remove them is to reboot rooter.

Only me??

No, it doesn't.
I didn't think it was that necessary. The next time the firewall restarts it will remove these rules.
They are deleted in /tmp/etc/config
I just changed the service S90asterisk and added a 'stopservice firewall ; startservice firewall'

I didn't do this before, because it may take some time to restart the firewall. A reboot wasn't necessary. Just a restart of firewall.

wabe wrote:
- when I run the script it seems to hang - I don't get back to the command prompt on my console.


For debugging purposes: Did you wait more than 20 seconds?

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
wetdirtmud
DD-WRT Novice


Joined: 17 Jun 2009
Posts: 11

PostPosted: Sun May 15, 2011 15:55    Post subject: Reply with quote
Thank you for the reply Frater. Great work on all of this software.

My web server I'm trying to start is pretty much meant to share image files to friends. I would like lighttpd to work with pound so they can view pages from the Internet.

I'm a bit unclear how I would configure pound, I don't have pound.header / tail in the /opt/etc/pound directory like you suggested.

Since my last post I've restarted from scratch to try and wrap my head around the virtual hosting concept and services. I am at least greeted with a "Service is not available" page from the Internet, however - 192.168.3.[2-3] both show Problem Loading Page. Not sure why that is.

Thank you again !

frater wrote:

in /opt/etc/pound you can use the files pound.header & pound.tail to put entries before and after these automated entries.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun May 15, 2011 17:32    Post subject: Reply with quote
Pound enables you to expose more than 1 webserver on your LAN all on 1 IP using port 80.

If this is not what you need at this moment I would just expose lighttpd to port 80 using the firewall instead of pound.

Pound has a lot of advantages if you know what you're doing. I think you're not at that stage yet.
There's also a performance issue when using pound.

I want to advice you to turn off the service pound and use the rc_firewall to direct port 80 to your wan IP to port 80 of your webserver's IP.

I didn't write any code regarding opening the firewall in the vlighttpd script because I never had the feeling anyone was using it.

In your case you can put this into your rc_firewall
Code:
wanip=`nvram get wan_ipaddr`
iptables -t nat -I PREROUTING -d $wanip -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.3.2:80
iptables -I INPUT 3 -p tcp -d 192.168.3.2 --dport 80 -j ACCEPT


It should then listen to the Internet using virtual hosting.

Beware that you need to have a website placed in /opt/var/www/vhosts/ with the hostname you are using. If you use the domain wetdirtmud.dyndns.org you need to place it in:
/opt/var/www/vhosts/org/dyndns/wetdirtmud/

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Sun May 15, 2011 18:49    Post subject: Reply with quote
frater wrote:


wabe wrote:
- when I run the script it seems to hang - I don't get back to the command prompt on my console.


For debugging purposes: Did you wait more than 20 seconds?


Yes considerably longer.
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Mon May 16, 2011 8:53    Post subject: Reply with quote
wabe wrote:


Yes considerably longer.


I think I figured this one out. I noticed that my ssh-session connects through the wan-interface. Since the S90asterisk script restarts the firewall this would break the connection - right?

Frater: Thanks for the upgraded script! - I think it makes sense to let all services that alter the firewall rules resets them when the service is stopped.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Tue May 17, 2011 23:19    Post subject: Reply with quote
With optware installed there is an easy fix for the ddns problems

install Inadyn 1.97.4
Code:
ipkg install inadyn

And add this code to startup script
Code:
# Inadyn DDNS fix
sleep 20
if [ -e /tmp/ddns/inadyn.conf ]; then
cd /tmp/ddns && mv inadyn.conf inadyn.backup
sed 's/ --cache_dir \/tmp\/ddns//' inadyn.backup | tee -i inadyn.conf
/opt/bin/inadyn --input_file /tmp/ddns/inadyn.conf
fi


Shocked
Wed May 18 01:07:11 2011: Started 'Inadyn version 1.97.4' - dynamic DNS updater.
Wed May 18 01:07:11 2011: DNS lookup of 'xxxxx.dyndns.org' gives IP# 'xx.xx.xx.xx'
Wed May 18 01:07:11 2011: Checking for IP# change, connecting to checkip.dyndns.org(91.198.22.71)
Wed May 18 01:07:11 2011: No IP# change detected, still at xx.xx.xx.xx
icehacker
DD-WRT Novice


Joined: 16 May 2011
Posts: 45

PostPosted: Fri May 20, 2011 0:23    Post subject: Reply with quote
hey there farter i would like to install OPTWare on my WD Sharespace 4TB can you help me out.

Thanks

PS:- I know this is not the right place to post. I did search alot in google but few instruction are there for Sharespace
Ampersand
DD-WRT User


Joined: 14 Jun 2009
Posts: 52

PostPosted: Sat May 21, 2011 14:16    Post subject: Reply with quote
basmaf wrote:
With optware installed there is an easy fix for the ddns problems ....


I've done what you wrote but still no go:
Quote:

Sat May 21 16:07:05 2011: Started 'Inadyn version 1.97.4' - dynamic DNS updater.
Sat May 21 16:07:05 2011: DNS lookup of 'xxxxxx.dyndns.info' gives IP# '93.205.172.xxx'
Sat May 21 16:07:06 2011: Checking for IP# change, connecting to checkip.dyndns.org(204.13.248.70)
Sat May 21 16:07:06 2011: IP# for alias 'xxxxxx.dyndns.info' needs update to '93.205.183.xxx'
Sat May 21 16:07:06 2011: Updating DDNS server with new IP#, connecting to members.dyndns.org(204.13.248.112)
Sat May 21 16:07:06 2011: Error validating DDNS server reply: check username, password, hostname, abuse:
HTTP/1.1 403 Forbidden
Date: Sat, 21 May 2011 14:07:06 GMT
Server: Apache
X-UpdateCode: X
Content-Length: 7
Connection: close
Content-Type: text/html; charset=iso-8859-1

badauth
Sat May 21 16:07:06 2011: DDNS server response:
HTTP/1.1 403 Forbidden
Date: Sat, 21 May 2011 14:07:06 GMT
Server: Apache
X-UpdateCode: X
Content-Length: 7
Connection: close
Content-Type: text/html; charset=iso-8859-1

badauth
Sat May 21 16:07:06 2011: DDNS server response was an error, exiting!


This is what I get in log webif window after reboot. When I type 'inadyn' in console above log changes into:

Quote:

Sat May 21 16:13:06 2011: Started 'Inadyn version 1.97.4' - dynamic DNS updater.
Sat May 21 16:13:06 2011: Cached IP# from previous invocation '93.205.183.xxx'
Sat May 21 16:13:06 2011: Checking for IP# change, connecting to checkip.dyndns.org(204.13.248.70)
Sat May 21 16:13:06 2011: No IP# change detected, still at 93.205.183.xxx


but this is not true and IP is not updated anyway.

What I am doing wrong? Is this fix working for someone else?

_________________
Asus WL-500GPv2 + OTRW (CABLE) - DD-WRT v24-sp2 (08/12/10) mini-usb-ftp - K24 build 14929
Asus RT-N16 + OTRW take2 (PPPoE) - DD-WRT king kongmod Release: 02/03/13 (SVN: 20500M)
Linksys E4200 + DD-WRT v24-sp2 (02/03/13) stdkong - build 20500M - Repeater Bridge
Goto page Previous  1, 2, 3 ... 132, 133, 134 ... 157, 158, 159  Next Display posts from previous:    Page 133 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