DNAT help needed

I'm totaly confused. DNAT will not work, like it should.

DNAT Rule:
PDNAT Host: mailserver
PDNAT Service: 28

SDNAT host: mailserver
SDNAT Service: 25

wich packet rules do I need?

In my opinion: 

any - 28 , ext. interface allow
ext. Interface - 25 mailserver allow

it will not work, what is wrong?
am I wrong?

Please help me.
bxxp

Sorry wrong thread

[ 30 May 2002: Message edited by: bxxp ]

Parents Reply Children
  • ok. I've read the faq, but it seemes there ist no solution, because of the following:

    NAT is done before the packets pass the packetfilter.

    There must be a rule:

    any - port 25 - mailserver - allow

    In this case requests from any clients will pass the ASL if they use port 25.

    I need a translation from port 28 to port 25 and only the ASL is allowed to use port 25.

    I think there is no solution for my problem   [:(]