hi,folks: here's my network's layout: | | em0 (160.79.174.99/29) GateWay (FreeBSD 5.x ipf/ipnat, gateway_enabled) em1 (192.168.1.1/25) | | em0 (192.168.1.126/25) -- Bridge -- em1 (192.168.1.254/25) | | | | LAN1 LAN2 | | +---------------------+ +---------+---------+ | | | | | hostA(192.168.1.2/25) ... hostB(192.168.1.250/25) WEB Server Mail Server
and here's the ipnat.rules on my gateway box map em0 192.168.1.0/24 -> 160.79.174.99/32 portmap tcp/udp 10000:60000 map em0 192.168.1.0/24 -> 160.79.174.99/32 rdr em0 160.79.174.99/32 port 80 -> 192.168.1.2 port 80 rdr em0 160.79.174.99/32 port 25 -> 192.168.1.250 port 25 now the problems is that the NAT work fine but the port redirection does not work on IPNAT and PF.and I found that the port redirection just could work on the same subnetworks(the rdr could forwarding the port to Bridge box but not WEB Server or Mail Server).so I wondered could I setup the rdr rules to make it forwarding ports to my LAN1 or LAN2's hosts ?? :-( thanks any reply with appreciates!! LAN1's defaultroute is 192.168.1.126 LAN2's defaultroute is 192.168.1.254 Bridge defaultroute is 192.168.1.1 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"