Example pf.conf here: http://marc.info/?l=openbsd-misc&m=120665186412690&w=2
The key is "route-to" and "reply-to" ---------------- On Saturday 28 June 2008 07:29:35 pm Jose H. wrote: > Hi all, a little help needed with some networking and pf: > I have one public IP with forwards traffic to my LAN, I am using "rdr" > and nat, a lot of nat rules for specific cases like smtp and so on, I > am also using ftp-proxy for the crappy ftp I can't get rid of. > > The problem is that now I need to add IPs from another C class to my > network, I was thinking on using another nic to assign the public IP > of the firewall and use that nic to do the same rdr rules I need for > the servers, and put the servers on the same lan as the rest BUT then > I am wondering how to manage the default gateway ? > > For example I have the default gw in the first C class with will be > x.x.x.1, but now I am adding y.y.y.y address to the fw, the traffic > will get in thru the y.y.y.1 gw and I will reply using x.x.x.1 which > may lead to lots of problems like firewalls not able to maintain the > state of the connections and so on. > > How do you guys do this kind of things !?