Forum

IPv4 on a IPv6 only host via ReverseProxy

Calle
3 September 2012, 19:25
Hi,

I'm trying to enable ipv4 on a ipv6 only host by passing the traffic through Hiawatha configured as a reverse proxy but I cant figure out the syntax. The gw have both ipv4 and ipv6 enabled.

my Virtualhost looks like this:

VirtualHost {
Hostname = test.xxx.xx
WebsiteRoot = /usr/local/var/www/public_html
StartFile = index.php
ReverseProxy .* http://[XXXX:4f8:150:1102:ffff:ffff:9:f]
}


I'm obviously missing something otherwise it would work.

Best regards
Calle

P.S Is the manual page on the site really updated? It seems to diff to the manpage included with Hiawatha 8.4


Hiawatha version: 8.4
Operating System: Ubuntu 10.04.1
Hugo Leisink
3 September 2012, 21:11
In the current version, there is a problem with detecting IPv6 addresses in the ReversProxy option. I've fixed this. Please, try this test version [www.leisink.net] and let me know if it works.
Calle
3 September 2012, 22:54
Still no success. Reports syntax error on this line:
ReverseProxy .* http://[XXXX:4f8:150:1102:ffff:ffff:9:f]

Tried:
ReverseProxy .* http://XXXX:4f8:150:1102:ffff:ffff:9:f

But no luck.
Hugo Leisink
3 September 2012, 23:53
Please, redownload the same package and try again. I've made some improvements.
Calle
4 September 2012, 01:04
It works! Thank you for your help! It seems like it is a bit slow though. Every other request is fast and the next one is pretty slow. I have not applied the patch to the ipv6 only host only to the gateway.
Calle
8 September 2012, 00:00
The connections seems slow is there a way to figure out what the problem is. Is it the gateway or is it the host or mix in between. I have no idea how to troubleshoot this so if you have any input it would be much appreciated!
Hugo Leisink
8 September 2012, 13:47
Try using a network sniffer like Wireshark or tcpdump to see when a request and a respons is sent and how long it takes to send it.
Calle
15 September 2012, 21:23
I have not had time to look into this matter properly but I have tried to enable logging at the reverseproxy. It seems like none of the requests are logged right now. Is that the normal behavior or is something poorly configured?
Hugo Leisink
16 September 2012, 16:19
Requests handled via the reverse proxy are logged just like other requests. Are the ownership and access rights of your logfiles correct?
Calle
16 September 2012, 23:22
The VirtualHost lookes like this:
VirtualHost {
Hostname = xxx.xxx.com
WebsiteRoot = /usr/local/var/www/test/public_html
StartFile = index.php
ErrorLogFile = /usr/local/var/www/test/log/error.log
AccessLogFile = /usr/local/var/www/test/log/access.log
ReverseProxy .* http://[x:x:x:1102:ffff:ffff:9:f]
}

the paths to the files exists and the rights to write to the files seems ok
Hugo Leisink
18 September 2012, 08:19
I just checked it myself. Requests forwarded via the ReverseProxy are logged. I don't know what goes wrong on your machine.
Calle
21 September 2012, 22:46
The logging seems to work. Strangely a reboot seems to have fixed whatever problem there was.
Hugo Leisink
22 September 2012, 10:12
Looks like it's what I guessed: the ownership of the files didn't match Hiawatha's user id.
This topic has been closed.