Forgive me if this is a topic that has been discussed already. I tried to no avail to find a solution from Google and from various man pages. What I'm trying to do is actually quite simple, I just can't figure out how to do it. I'm trying to do simple outbound IP redirection. The FreeBSD system is the gateway for a number of machines, and I need traffic to certain addresses re-routed. Under Linux, I could simply use a DNAT target in iptables. So far I've been unsuccessful in finding something similar in IPFW/natd (which is the setup I'm currently running).
Basically I want the equivalent of the following:
Basically I want the equivalent of the following:
Code:
iptables -t nat postrouting -a -p tcp -s [match internal network IP] -d [match destination IP] -j DNAT --to-destination [address of redirect]