This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

port forwarding [comprehension problem]

hi there,

we have 2 asl-systems and i'd like to forward all incoming smtp-requests fom asl-1 to asl-2. the ext. interfaces of both are in the same subnet. on asl-2 a smtp-proxy is running.

so, on asl-1 i created a dnat/snat:
any -> asl-1 (ext.int.) / smtp  --> dest.: asl-2 (ext.int) / none

and a rule:
asl-1 (ext.int.) -> asl-2 (ext.int.) / smtp - allowed
(by switching the log-function on i can see the requests are forwarded correctly)

on asl-2 the smtp-proxy is running. by establishing a telnet session on port 25 of asl-2's ext.int. the proxy answers in the expected manner. however if i try to establish a telnet session on port 25 of asl-1's ext.int. the connection fails.

i think there is a error in reasoning, but i cannot get over it.

maybe someone can give me a hint whats going wrong here?

TIA.


This thread was automatically locked due to age.
Parents
  • i think your problem is like this:

    your pc is connecting via telnet to asl1 port 25
    dnat rewrites the destination to asl2
    asl2 answers the request to your pc
    your pc is expecting data from asl1 but getting from asl2 (which will be ignored)

    so you need also a snat rule telling the system to rewrite the answering packets.

    one important tip for the packet filter rules: dnat/snat is done before (!) so you always need the natted source/destination as source/destination in your packet filter rule !! (sorry not native speaker, maybe sounds weird, hope you can understand it   )
Reply
  • i think your problem is like this:

    your pc is connecting via telnet to asl1 port 25
    dnat rewrites the destination to asl2
    asl2 answers the request to your pc
    your pc is expecting data from asl1 but getting from asl2 (which will be ignored)

    so you need also a snat rule telling the system to rewrite the answering packets.

    one important tip for the packet filter rules: dnat/snat is done before (!) so you always need the natted source/destination as source/destination in your packet filter rule !! (sorry not native speaker, maybe sounds weird, hope you can understand it   )
Children