Freebsd 5.3-stable natd multiple external ipadress

"Mattias Nordlund" <[email protected]>
Newsgroups gmane.os.freebsd.newbies
Message-ID <A8F5DD049DA1984189CE0E5818EF48EA151DF3@EXCH-03.bredband.bahnhof.se>

Hi,
I have a problem .
Freebsd 5.3 Stable
Natd
Ipfw

external interface = fxp1
internal interface = fxp2

I have three external ipadress on fxp1
81.10.5.2 /29
81.10.5.3 
81.10.5.4 

On the fxp2 (internal interface) I have :
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24

I need to route the packets from my internal net to the correct external
ipadress.
Something like:
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to 81.10.5.2
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -j SNAT --to 81.10.5.3
iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -j SNAT --to 81.10.5.4

How can I do that with ipfw and nat ?
Heeelp 


Regards,
Mattias 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.