If you need performance you can run pound on a full linux system.....
fseka wrote:
And what is the recommended procedure for upgrading the optware installation?
redownload prep_optware and run it....
Code:
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware
_________________ 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
Today I did some modification on /opt/etc/init.d/S80pound.
It will now take care of the firewall so you don't need to make any portforwards in the webif.
It also allows you to run pound on the LAN ip.
In that case it will also create the appropriate PREROUTING rules in the 'nat table'.
In /opt/etc/pound/pound.tail you can add additional entries to handle for instance HTTPS.
I am using it to handle my Zarafa-server and by using this trick I am able to run more than 1 https server on 1 IP without TLS. This is quite unique.
Code:
ListenHTTPS
Address 192.168.10.1
Port 443
Cert "/opt/etc/ssl.crt"
CAList "/opt/etc/ca.pem"
VerifyList "/opt/etc/sub.class1.server.ca.pem"
xHTTP 3
Service "AutoDiscover"
URL "/Autodiscover.*"
BackEnd
Address 192.168.10.100
Port 80
End
End
Service "zarafa"
URL "/(zarafa-webaccess|Microsoft-Server-ActiveSync|webmail).*"
BackEnd
Address 192.168.10.125
Port 80
End
End
Service "Worldclient"
BackEnd
Address 192.168.10.25
Port 80
End
End
End
ListenHTTPS
Address 192.168.10.1
Port 446
Cert "/opt/etc/ssl.crt"
CAList "/opt/etc/ca.pem"
VerifyList "/opt/etc/sub.class1.server.ca.pem"
Service "Webadmin"
BackEnd
Address 192.168.10.25
Port 1000
End
End
End
All this is done by S80pound _________________ 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 modified /opt/etc/init.d/S80pound and removed the command to write_config, created a custom /opt/etc/pound/pound.cfg:
Code:
User "pound"
Group "nobody"
TimeOut 120
Alive 30
Control "/var/run/pound.ctl"
LogLevel 2
ListenHTTP
Address 0.0.0.0
xHTTP 3
Port 8080
Service "bt_server"
HeadRequire "^Host:[\t ].*bt\.DOMAIN\.com*"
Backend
Address 192.168.1.14
Port 8080
end
end
I set up a port forward from 80 to 192.168.1.1:8080 (IP of dd-wrt router)
Pound is running (ps shows instances), when I visit bt.DOMAIN.com (using my domain of course), it times out. There is a server listening at 192.168.1.14:8080, I can successfully see it locally and externally if I forward 8080.
What am I doing wrong? Thanks!
EDIT:
It seems to be almost-working. I am able to access the webserver by typing bt.DOMAIN.com:8080, but having to specify port 8080 every time is definitely not desired
The startup-script is also responsible for writing rules with iptables.
Which script did you use as base?
The latest script should work out of the box....
It will check the config which port is used, but if you hacked that script it is unable to find the config, so it will leave the netfilter alone...
Don't you want to go to port 80 on your backend?
Here it's 8080
Code:
Backend
Address 192.168.1.14
Port 8080
end
_________________ 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
Don't you have OTRW?
If not, why? _________________ 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
because as any user I want something that work out the box I guess
Well, it doesn't. With the co-operation of Brainslayer he could have had the first box in the world that could do this, but he was apparently not interested....
It was my idea in the first place to run this on a SoHo router.
The easiest way for you is to install OTRW. It only need USB-storage with ext3 filesystem and a simple command to install it. _________________ 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
It always amazes me why people insist to keep their old hardware when they can just go to a store and buy something that will last them another 4 years with the possibilities they need.
It can't be that hard to sell your current model to a friend and maybe even let him fully finance your new model because you helped him out and installed the thing. _________________ 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
nice advice but if I sell my routers they will not have lasted me 4 years
6 years ago I bought an Asus WL500G DeLuxe which a friend of mine now has. It has USB storage. _________________ 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
Posted: Thu Feb 10, 2011 11:59 Post subject: Question on pound and port 80 to 80
Hi.
I think this question is directed to Frater, but anyone who knows may come up with an answer as well:
I want to run pound with listening external port 80 to internal ports 80 as well so i don't need to change every internal web to port 8080 (for example).
I have tried by changing to default listening address to port 80, but then the pound service fail to start, reporting that port 80 is already in use. By dd-wrt administrative panel, I guess.