I've got a client with a FreeBSD based ipf firewall that won't pass gre packets to a NATed pptp server. Am I missing something here?
---ipf.rules--- # External Interface - Inbound # block spoofing attempts block in quick on fxp0 from 127.0.0.0/8 to any block in quick on fxp0 from 192.168.0.0/16 to any block in quick on fxp0 from 172.16.0.0/12 to any block in quick on fxp0 from 10.0.0.0/12 to any # block small frags block in quick on fxp0 all with short # block source routed packets block in quick on fxp0 with opt lsrr block in quick on fxp0 with opt ssrr # Inbound VPN connections to VPN server. Must have corresponding # ip alias configured in rc.conf, along with a NAT rule in ipnat.conf. pass in quick on fxp0 proto tcp from any to 192.168.0.252 port = 1723 flags S keep state pass in quick on fxp0 proto gre from any to 192.168.0.252 keep state # Block inbound everything else block in quick on fxp0 from any to any # External Interface - Outbound # block spoofing block out quick on fxp0 from any to 127.0.0.1/8 block out quick on fxp0 from any to 192.168.0.0/16 block out quick on fxp0 from any to 172.16.0.0/12 block out quick on fxp0 from any to 10.0.0.0/12 # block netbios block out quick on fxp0 from any to any port 137 >< 140 # pass out tcp/udp/icmp pass out quick on fxp0 proto tcp from any to any flags S keep state keep frags pass out quick on fxp0 proto udp from any to any keep state pass out quick on fxp0 proto icmp from any to any keep state # pass out outbound vpn gre protocol pass out quick on fxp0 proto gre from 192.168.0.252/24 to any keep state # pass out everything else pass out quick on fxp0 from any to any # Internal Interface pass in quick on fxp1 pass out quick on fxp1 # Loopback pass in quick on lo0 pass out quick on lo0 ---end ipf.rules--- ---ipnat.rules--- # ftp clients outbound map fxp0 192.168.0.0/24 -> 0/32 proxy port 21 ftp/tcp map fxp0 192.168.0.0/24 -> 0/32 portmap tcp/udp 1025:60000 map fxp0 192.168.0.0/24 -> 0/32 # Terminal services rdr fxp0 a.b.c.d/32 port 3389 -> 192.168.0.201 port 3389 # VPN Server port forwarding rdr fxp0 a.b.c.e/32 port 1723 -> 192.168.0.252 port 1723 rdr fxp0 a.b.c.e/32 -> 192.168.0.252 gre ---end ipnat.rules--- Note that a.b.c.e and a.b.c.d are aliases to interface fxp0. Adding log to the default block in quick rule shows that the port 1723 passes, but the gre doesn't. This server is FreeBSD 4.5-RELEASE, with ipf v3.4.27 compiled into the kernel. -- Wayne Earl <[EMAIL PROTECTED]> gpg public key: http://www.qconcepts.net/key.txt gpg key fingerprint: 3CE4 0558 635E DADB 327C 73AB 11CA 9A6B B209 E8C5
