Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Apr 2013 12:11:37 +0430
From:      s m <sam.gh1986@gmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Fwd: how access inside from outside when nat is done from inside to outside
Message-ID:  <CAA_1SgEF7RtmY11yjFwFRspY-CwQ0fLqeTGvtx3jHkLQBA4mpQ@mail.gmail.com>
In-Reply-To: <CAA_1SgGN7h9d8Rzbuwqa-2HrgwJffrqrfOdzjAqDNbBhkvehPA@mail.gmail.com>
References:  <CAA_1SgGN7h9d8Rzbuwqa-2HrgwJffrqrfOdzjAqDNbBhkvehPA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hello guys

i am newbie in nat and have some problem with it.

  i want to nat inside traffic to outside and when i ping outside from
inside, every thing is ok and nat is done perfectly. but when i ping inside
from outside, request packets are sent without any nat translation while
reply packets are nated and therefore outside system can not recognize
reply packets and do not accept them. this is example of packets which are
received in a outside system when pings an inside system.

request packets:   src:192.168.2.1----> dst: 192.168.1.1
reply packets:       src: 192.168.2.50----> dst:192.168.2.1

is it a correct behavior or not? and if it is correct, it means that when i
configure to nat traffic from inside to outside, i can not access from
outside to inside systems? (in cisco router packets are exactly as mention
above, but outside system identifies reply packets and therefore accepts
them).

please let me know if i am misunderstanding.
thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA_1SgEF7RtmY11yjFwFRspY-CwQ0fLqeTGvtx3jHkLQBA4mpQ>