Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2002 19:31:01 +0800
From:      Benny Chee <bennyc@magix.com.sg>
To:        freebsd-ipfw@FreeBSD.ORG
Subject:   ipfw+fwd+divert+natd
Message-ID:  <20020425193101.B20143@magix.com.sg>

next in thread | raw e-mail | index | archive | help
hi,

  just have a minor issue with the following features in ipfw:

  fxp0: 207.1.1.1/24 (public IP)
  fxp1: 10.0.0.1/24  (private IP)

  windoze: 10.0.0.2:3389  (terminal server - no default route)

  scenario:
  internet -> fxp0-fxp1 -> windoze 

  1) Just to be able to tunnel in from the internet to my freebsd4.5 box to reach the windoze box at TCP port 3389.
  2) Problem is, my windoze box do not have any default route. It can only reach 10.0.0.1. 
  3) When packet reaches fxp0, it has to modify it's source to that of fxp1, and passes the packet onto the windoze box.
  4) i have turned on natd, with 
     natd -n fxp0 -redirect_port tcp 10.0.0.2:3389 3389

  How can this be done?

benny

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




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