Hi, I'm trying to set up a solaris box with ipfilter to help ease an IP migration. The box has a single interface; I want to reflect all traffic destined to the old IP to the moved box.
<disclaimer> Before you flame me, yes I've read the HOWTO, and seen a few posts on this list about why a reflector is supposedly a bad idea, it will never work, use plug-gw, yadda yadda :-). I don't want application level proxies, I would like to use ipfilter if humanly possible :-). The fact remains I have a reflector working with Linux and iptables, but I'd rather use Solaris/ipfilter since my employer has about a gazillion spare sun boxes lying around :-). Okay, disclaimer aside. </disclaimer> What I have is a rdr/map combo that rewrites the destination address when the packets come in, and then a map line to rewrite the source when the packets turn around and go back out. The problem is the ip checksum isn't updated correctly, which you can see on the receiving end (the moved box) with tcpdump: 15:06:18.325553 172.19.12.85.33605 > taos.http: S [bad tcp cksum 9356!] 648358444:648358444(0) win 8760 <mss 1460> (DF) (ttl 250, id 20687, len 44) ... and then the box never replies to this SYN. I've found a post by someone else on this list from a year or two ago bringing up the exact same problem with the checksums. Does anyone here have any ideas? # rdr remaps the dest addr on incoming packets rdr eri0 172.19.12.223/32 port 0 -> a.b.c.d port 0 # map remaps the source addr on outgoing packets map eri0 from any to a.b.c.d/32 -> 172.19.12.85/32 172.19.12.223 is an aliased IP on the reflector. a.b.c.d is the moved box 172.19.12.85 is the reflector's main IP. I've tried both using 85 and 223 for the source address in the map line (not sure which, if either, would work when handling return traffic--but hey, I haven't gotten there yet), but both cause a checksum error. Thanks! I've been using ipfilter for years at home and I think it's great. Steve
