redirecting pf example
tarkhil at webmail.sub.ru
Fri Apr 13 11:45:10 UTC 2007
I'm trying to set up a box as round-robin TCP proxy. Of course, I'm
trying to do everything on kernel-level.
This simple setup
rdr on sk0 proto tcp from any to any port = smtp -> <outbound> port 25
should work. At least, I thought so.
However, attempt to connect to port 25 yielded unexpected result. pfctl
-s state shows
self tcp 126.96.36.199:25 <- 188.8.131.52:25 <-
connection never established, and no IP packet ever sends out to
I don't understand this thing. Maybe someone can point me to my error?
(firewall rules a quite permissive, in fact, they are pass in quick and
pass out quick for all interfaces. attempt to telnet to port 25 outside
More information about the freebsd-net