Date: Sat, 04 Jul 2009 00:49:38 -0700 From: Tim Traver <tt-list@simplenet.com> To: Dimitry Andric <dimitry@andric.com> Cc: freebsd-pf@freebsd.org Subject: Re: Extremely simple redirect rule doesnt appear to be working Message-ID: <4A4F0992.8090906@simplenet.com> In-Reply-To: <4A4DE199.4010701@andric.com> References: <4A4D2010.4020908@simplenet.com> <4A4DE199.4010701@andric.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric wrote: > On 2009-07-02 23:01, Tim Traver wrote: > >> In reading up, it appears that the redirect config line should do that, >> and in testing, I have a simple line like this in the pf.conf >> >> rdr pass inet proto tcp from any to 209.131.36.158 port 80 -> [internal >> address here] port 80 >> >> now, I haven't made that internal address be an address on the local box >> yet, cause I'm testing to see how this works... >> >> I can manually telnet to [internal address here] port 80 with no >> problems and get the apache greeting. >> >> Once I turn on and load the pf.conf file (with pfctl -F all -f >> /etc/pf.conf), and I try to telnet to 209.131.36.158 port 80 (generic >> www.yahoo.com), I don't get redirected to the internal address port 80 >> and get the apache greeting that is expected... >> > > Please post your pf.conf, or it will rather difficult to see what is > wrong. > Dmitry, I appreciate your post, but my pf.conf file only consists of the rule that I have stated for the redirect. I have no other filtering going on... Thanks, Tim.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A4F0992.8090906>