[Tfug] Opening up HTTP Server behind OBSD firewall

Jeremy C. Reed reed at reedmedia.net
Fri May 26 10:29:37 MST 2006


On Fri, 26 May 2006, Shaun Dixon wrote:

> rdr on $ext_if proto tcp from any to any port 12345 -> 10.0.0.2 port 80
> 
> Yet, when I test by browsing to the routers external address (
> http://x.x.x.x:12345) I just get a "page cannot be displayed" error in MSIE
> and "Firefox can't establish a connection to the server at x.x.x.x:12345" in
> Firefox

Does this work from the outside? Try connecting from a remote system. I 
have the same behaviour when trying to get to the redirected site from 
within my network, but works great when using a web browser from outside.

Have a look at the PF FAQ (from OpenBSD's website). And read the section 
about "Redirection and Reflection".

> rdr on $int_if proto tcp from any to any port 80 -> 10.0.0.2
> 
> Browsing to http://10.0.0.1 (internal router address) I get "page cannot be
> displayed" in MSIE and "The server at 10.0.0.1 is taking too long to
> respond" in Firefox

 Jeremy C. Reed

p.s. Anyone interested in purchasing an improved printed book based on the 
PF FAQ?




More information about the tfug mailing list