Huzaif Abdul-Sattar wrote:

> I'm having issues with my exposed (RDR'ed) website. The subdirectories
> do not work without trailing slashes, it does not reidrect the clients
> to the correct path. It works fine without the firewall in the middle.
> eg:
> 
> http://mydomain.com/mydir -- doesn't work from behind the firewall.
> http://mydomain.com/mydir/ - works just fine.
> 
> I figured that the server was having issues sending redirects to the
> browser so I added the second line to the NAT rules.
> 
> Here are the rules for the site:
> 
> rdr fxp1 66..x.y.z/32 port 80 -> 10.x.x.x port 8090 tcp
> map fxp1 from 10.x.x.x/32 port = 8090 to any -> 66.x.y.z/32
> 
> Pass in log quick on fxp1 proto tcp from any to 10.x.x.x/32 port = 8090
> flags S keep state
> 
> Any ideas anyone?


I have a guess. I *think* that you may need something like:rdr fxp1 
66..x.y.z/32 port 8090 -> 10.x.x.x port 8090 tcp

Because after it's redirected it may be coming in on the right port. Maybe. 
It's been a long time since I've fuddled with that. Maybe.


Phil

-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
-Benjamin Franklin, 1759

Reply via email to