For a long time we have one internet provider, but now we have two. I have to put some of the traffic from one ISP to another judging by the user ip. At the same time certain users should still access internet via old ISP.
So I decided to do it on our gateway. 1) translate source ip address; 2) change next-hop of traffic destined for new ISP appropriately. Default route left intact and looks to the old ISP. By now I am doing it that way. 1) use "ipfw divert natd" to assign our address from new ISP's pool; 2) use "ipfw fwd" for policy routing. It works just fine, but this aproach is inconvinient because the details of NAT are hidden. I can not see what translations are active. And I can not see the past: - what was translated? - how it was translated? - when it was started and finished? - how much traffic it took? Log (enabled by -log option) don't give me much idea about what's going on. Actually it shows only aliasing statistics. ipnat was another option, but I failed to figure out is it possible to change next-hop address using ipf. I am thinking about collecting packet headers using tcpdump instead of log to analyze them later. All that happens under FreeBSD 7.0-CURRENT-200702 i386 So, roundup: 1) is it possible to change next-hop using ipf? 2) is it possible to see what natd is doing? _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"