IPFW IPFW Port forwarding Multihomed

Hi All,
I have 2 internet ISP.
My web server ip 192.168.2.10 and its traffic goes from ISP 1

I created port forwarding
Code:
ipfw nat 1 config if igb2 log redirect_port tcp 192.168.2.10:80 80
ipfw nat 2 config if igb3 log redirect_port tcp 192.168.2.10:80 80
I want to access webserver port from outside with ISP 1 and ISP 2 ips at the same time

port forwarding from ISP1 is working but not from ISP2

packets are coming to ISP2 interface but packets from webserver are going from ISP1

What must I do?

Thanks.
 
easiest way will probably be to add an address to the webserver like 192.168.2.210 and use that for isp2
then send all traffic from 2.210 to isp2
 
With pf it is possible I think. pass in on $int_if from $lan_net route-to { $ext_gw1 $ext_gw2 } round-robin
bu how can I do this with ipfw?
 
round robin wont do it, you have to return the packet the same way it came from
with ipfw maybe fiddling with check-state keep-state and :flowname will get you there
 
Back
Top