Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2004 16:45:53 -0400
From:      Chiang Seng Chang <cs@europa.ctzen.com>
To:        freebsd-questions@freebsd.org
Subject:   iptables to ipfw
Message-ID:  <20040420204553.GA3225@europa.ctzen.com>

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

anyone knows what is the equivalent of these in ipfw ?

  iptables -t nat -A POSTROUTING -s 10.1.0.2/32 -o eth0 -j MASQUERADE
  iptables -t nat -A POSTROUTING -s 10.50.4.0/22 -o eth0 -j MASQUERADE

it's for openvpn using tun0.

i have setup natd using:

  ipfw add divert natd all from any to any via dc0

and it is working.

but i would like to be more specific so that i am not nat'ing unnecessary.

tried without success:

  ipfw add divert natd all from 10.1.0.1/32 to any via dc0
  ipfw add divert natd all from 10.50.4.0/22 to any via dc0

thanks and regards.

-cs



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