FW: out xmit not match icmp

From: Roman Mikus (roman_at_zutom.sk)
Date: 04/27/04

  • Next message: Reid Linnemann: "DSL bridges"
    Date: Tue, 27 Apr 2004 09:10:06 +0200
    To: <freebsd-questions@freebsd.org>
    
    

    Hi,

    I'm forwarding this from freebsd-ipfw mailing list...
    Thanks for any help..

    roman
     

    -----Original Message-----
    From: owner-freebsd-ipfw@freebsd.org
    [mailto:owner-freebsd-ipfw@freebsd.org] On Behalf Of Roman Mikus
    Sent: Monday, April 19, 2004 3:31 PM
    To: freebsd-ipfw@freebsd.org
    Subject: out xmit not match icmp

    Hi,

    I have freebsd 4.9-RELEASE-p3 box with ipfw and 3 interfaces installed.
    One interface is external with one public ip address, second is internal
    with private ip addresses and on third is assigned small subnet of
    public ip addresses. I want to configure firewall which protect internal
    and freebsd box but will pass traffic for third interface. I have
    following interfaces:

            vx0: internal: 10.0.0.8 netmask 255.255.255.0
            ed0: external: y.y.y.170 netmask 255.255.255.240
            ep0: free zone: x.x.x.162 netmask 255.255.255.240

    I'cand send whole firewall config but is derived from simple section in
    rc.firewall and looks like this:

    (x.x.x. and y.y.y. and z.z.z. substitutes my real ip addresses)

    ...
    00400 pipe 1 ip from any to any out xmit ed0
    00500 pipe 2 ip from any to any in recv ed0
    ...
    01900 divert 8668 ip from any to any via ed0
    02000 divert 8668 ip from any to any via ep0
    03000 allow ip from any to x.x.x.161
    03100 allow ip from any to x.x.x.163
    03200 allow ip from any to x.x.x.164
    ..
    03400 allow ip from any to x.x.x.166
    ..
    04200 allow ip from any to x.x.x.174
    04300 allow ip from x.x.x.161 to any out recv ep0 xmit ed0
    04400 allow ip from x.x.x.163 to any out recv ep0 xmit ed0
    04500 allow ip from x.x.x.164 to any out recv ep0 xmit ed0
    ..
    04700 allow ip from x.x.x.166 to any out recv ep0 xmit ed0
    ..
    05500 allow ip from x.x.x.174 to any out recv ep0 xmit ed0
    ...
    65000 deny log ip from any to any

    Rules between 1900 and 5500 should pass all traffic to and from free
    zone, but this is true for tcp traffic (telnet) but not for icmp traffic
    (ping).
    If I try to ping x.x.x.166 from outside box with ip z.z.z.11 rule 4700
    not match, but rule 65000 match and this appears in /var/log/security:

    Apr 19 15:16:54 ns /kernel: ipfw: 65000 Deny ICMP:0.0 x.x.x.166 z.z.z.11
    in via ep0

    This is icmp reply from host x.x.x.166 and is blocked, but should't be.

    Can you tell me why this happens? How else I can pass any traffic for
    and from my free zone (but still be able to shape traffic on external
    interface) and to protect everything else?

    Thanks a lot.

    Roman

    _______________________________________________
    freebsd-ipfw@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
    To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Reid Linnemann: "DSL bridges"

    Relevant Pages

    • Sourcing ICMP reply to a different ip address
      ... Is there anyway to source the ICMP reply on ... Client runs traceroute to a host routed by the FreeBSD router. ... arrives on FreeBSD router's FXP0 interface. ...
      (freebsd-net)
    • Machine doesnt boot after switching from Linux to FreeBSD
      ... I'm trying to switch a Linux system to FreeBSD. ... The full dmesg output that I get after net-booting from the rescue disk ... <PLIP network interface> on ppbus0 ... (no root path) ...
      (freebsd-questions)
    • Re: XP-SP2 "Feature"
      ... in which case ICMP is not required. ... never be enabled on the ICF interface anyway. ... so is incoming pings. ... The real uncomfortable thing here is for home users. ...
      (Focus-Microsoft)
    • Dummynet in an IPFilter setup
      ... I am running a FreeBSD 5.x box with IPFilter/IPNAT. ... Internet and internal interface connected to a switch for the LAN. ... I need to guarantee 128Kbit/s of the available bandwidth to the ...
      (freebsd-questions)
    • Problem with IPFilter/IPNAT
      ... I am using IPFilter and IPNat on several FreeBSD boxes. ... The LAN machines use the FreeBSD as the ... I run cache-only config. ... rl1 is external interface. ...
      (freebsd-questions)