can ping, can't download through firewall

From: Garry Hill (garry_at_ascii-turf.net)
Date: 12/04/03

  • Next message: Erik Trulsson: "Re: What exactly is ipfilter?"
    Date: Thu,  4 Dec 2003 11:34:25 -0300
    To: questions@FreeBSD.org
    
    

    hi,

    i'm a reasonably experienced linux/bsd user - i've installed a few boxes in my time and usually with a good level of success. but this time i'm stumped.

    i'm trying to set up a freebsd gateway to share my cable modem connection.

    from the gateway itself i can ping the world, from the attached clients i can ping the world, i can even do dns lookups. doing:

    curl --head http://www.website.com

    gives me a good-looking header and everything, but if i do

    lynx http://www.website.com

    no joy. i get:

    HTTP request sent; waiting for response.

    and it stops there. this is true from both the clients and the gateway itself. i just can't download anything for all the pings in the world.

    my current set up is

    -- kernel config:

    options IPFIREWALL
    options IPDIVERT
    options IPFIREWALL_DEFAULT_TO_ACCEPT
    options IPFIREWALL_VERBOSE
    options IPFIREWALL_VERBOSE_LIMIT=10

    -- /etc/rc.conf

    gateway_enable="YES"
    firewall_enable="YES"
    firewall_type="OPEN"
    natd_enable="YES"
    natd_interface=" rl0"
    natd_flags=""

    which are both straight out of the handbook.

    -- ipfw -a list
    00050 1844 130026 divert 8668 ip from any to any via rl0
    00100 96 11166 allow ip from any to any via lo0
    00200 0 0 deny ip from any to 127.0.0.0/8
    00300 0 0 deny ip from 127.0.0.0/8 to any
    65000 2481 200907 allow ip from any to any
    65535 0 0 allow ip from any to any

    ethernet cards - a pair of 8139's - rl0 external, rl1 internal. as far as i can tell they work fine.

    i've tried the same thing using ipfilter and ipnat instead of natd and ipfw - with the same results.

    i've noticed that if i turn on the firewall my pings to the isp's router are much much less reliable, sometimes losing 30%+ of the packets but generally degraded compared to the setup with no firewall enabled.

    the firewall stats show that everything is passing ok.

    i really don't know what's going on. unfortunately my web searches have turned up nothing similar.

    does anyone have any ideas/comments/suggestions/experience of the same? is it the network cards? pings from the client machine when connected directly work perfectly but from the gateway are at best a little dodgy - losing 15% of the packets.

    any help greatly appreciated.

    Garry
    _______________________________________________
    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: Erik Trulsson: "Re: What exactly is ipfilter?"

    Relevant Pages

    • Re: Windows 2003 Server works fine but cannot be pinged
      ... The hosting company do not put on a firewall - I have ... When I ping default gateway it says Negotiating IP ... When I run arp -a it shows the default gateway IP address. ...
      (microsoft.public.windows.server.general)
    • can ping, cant download through firewall
      ... from the gateway itself i can ping the world, from the attached clients i can ping the world, i can even do dns lookups. ... i've noticed that if i turn on the firewall my pings to the isp's router are much much less reliable, sometimes losing 30%+ of the packets but generally degraded compared to the setup with no firewall enabled. ... and install is FreeBSD 4.9-RELEASE ...
      (freebsd-questions)
    • Re: Very Frustrating DHCP Problem
      ... I have checked the router settings, ... Are you using ipfw? ... Perhaps the gateway is not being set correctly. ... Can you ping the gateway? ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Cant get networking working in Fedora14
      ... Well, you can not ping the gateway, and so you can not reach the DNS server ... The gateway is protected by its own firewall, so you have to verify its status ... I guess I just dont understand how others have networking ...
      (Fedora)
    • Re: help setting up natd and ipfw on freebsd5.2.1
      ... What I wanted to do was to setup a gateway for my internal ... > kernel with options IPFIREWALL and IPDIVERT and kernel compiled ... Then why your ping doesn't work with firewall, ...
      (freebsd-questions)