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.
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
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. _________________ 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
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.
- 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
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.
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
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.
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
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
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