sangprabv wrote:
> Hi,
> I just add these file rules:
> DNAT net loc:192.168.8.35 tcp - - 202.158.70.38
> DNAT net loc:192.168.8.36 tcp - - 202.158.70.38
> DNAT net loc:192.168.8.37 tcp - - 202.158.70.38
> 
> And these on file nat:
> 202.158.70.38 eth0 192.168.8.35 no no
> 202.158.70.38 eth0 192.168.8.36 no no
> 202.158.70.38 eth0 192.168.8.37 no no
> 
> I try to connect to the internet and check the IP and all hosts returns
> 202.158.70.38. The question is when there is incoming packet to
> 202.158.70.38. Is it going to forward to all hosts or will match from
> top declared rules and nat which is in this case is 192.168.8.35? TIA.

It will match the first DNAT rule.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to