[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: missing something simple with rdr



On Thu, Dec 16, 2004 at 07:16:48AM -0500, Chad M Stewart wrote:
> # pfctl -vv -f /etc/pf.conf
> Loaded 345 passive OS fingerprints
> table <spamd> persist
> table <spamd-white> persist
> @0 rdr inet proto tcp from any to any port = smtp -> 127.0.0.1 port 8025
> 
> # telnet localhost 8025
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 bia.com ESMTP hello world; Thu Dec 16 12:09:16 2004
> quit
> 221 bia.com
> Connection closed by foreign host.
> 
> # telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 Chads AVS appliance
> quit
> 221 Bye
> Connection closed by foreign host.
have you tried telnet-ing to port 25 from a machine other than
localhost?  i could be mistaken, but i don't think your rdr rule will
apply to a connection from localhost to localhost.
-j
--
"This has purple stuff inside - purple is a fruit."
        --The Simpsons