Spam from NAT boxes

Lou Kamenov loukamenov at gmail.com
Mon Mar 6 20:17:52 PST 2006


On 3/6/06, soralx at cydem.org <soralx at cydem.org> wrote:
>
> > >   ipfw add fwd xx.xx.xx.xx,25 tcp from 192.168.0.0/24 to any 25
> > >   I got some matches in this rule when I try to send an email, but I
> > > didnt get redirected to my email server.

this is pretty easy with ipnat, this is for smtp and smtps.

for example.

rdr iface0 from any to any port = 25 ->ip on iface0? port 25
rdr iface0 from any to any port = 465 -> ip on iface0? port 465

it helps.

i can't tell you the syntax for natd, but someone else might.

l


More information about the freebsd-hackers mailing list