Hi all,
Setup for this test: - hostA the router/firewall [FreeBSD 4.4] - hostB linux bridge with ssh server running - hostC box on local network Using IPFilter 3.4.20: relevant ipnat rules: rdr rl0 172.27.40.1/32 port 8022 -> 172.27.40.9 port 22 map rl0 from 172.27.40.0/23 to 172.27.40.9/32 port = 22 -> 0/32 portmap tcp 20000:21000 Telnetting to port 8022 on the router (172.27.40.1) would redirect successfuly to the linux brigde (172.27.40.9) and (almost) all is as it should be.Ssh sessions work.The only thing that shouldn't be happening is the icmp redirect messages that the router sends to hostB and hostC.To solve this i tried to use the "fastroute" option to prevent the kernel from seeing the packets, alas generating the redirects.The rules used were: block in quick on rl0 to rl0 proto tcp from any to 172.27.41.9 port = 22 block in quick on rl0 to rl0 proto tcp from 172.27.40.9 port = 22 to any This automagically caused the router to reboot. Using IPFilter 3.4.27: Same ipf/ipnat rules as before.Telnetting to the router on port 8022 displays the ssh id string, however typing random chars, doesn't result in the ssh server saying "Protocol mismatch" and closing the connection.It just hangs there.Pings to hostB from the router don't work anymore, but work from localnet.Same for telnetting to port 22 on hostB.After trying some more telnets on router port 8022 from hostC, the router "hangs".It doesn't accept any new connections and the console is hung.It does respond to pings, and (i think, it was 3am when trying this,and i'm not sure) it is doing nat. Some of you might wonder why don't I just use a bouncer on the router and redirect to it.The answer is this: I don't like packets copied being copied all over the memory.rl cards are crappy cards and can only send from special aligned mbufs.And I especially don't want to add packets being copied to and from kernel space/user space. If I forgot to specify something please ask.I'm pretty tired right now, so I might have forgotten something. The implicit question was: How do I do the reflector work?(if possible).I know linux netfilter does it and it stops the kernel from generating the redirects. Thanks in advance for any help, Shock. __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
