pf, bridge and dhcrelay

From: keme (kemesixtwonullsix_at_start.no)
Date: 05/20/05


Date: Fri, 20 May 2005 15:23:07 +0200


*Background*

I have a setup to limit network access for students during exams (students
use their own laptops). Bridge interface with packet filtering constitutes
our "filter". PF doesn't forward dhcp request/response, so I need dhcrelay.
I had this setup working OK last year, but after reinstall I can't get it to
work properly.

With the bridge up and pf disabled everything is OK. Everyone behind the
filter can access all resources.

With pf enabled everyone can access allowed resources (printserver), and
other resources are blocked. New clients cannot use anything because they
don't get IP. Assigning static IP helps, but I don't want the mess that
"wild" static IP assignment will create on our network.

Executing "dhcrelay <dhcpserver>" reports listening and sending on all
interfaces.
The "external" interface (server side of the filter) has an IP and netmask
belonging to the network.

The "internal" (filtered client side) interface has a private ip (10.0.0.x).

On the OpenBSD box I get ping response, http and name resolution from the
servers, and no other outside services are available.
A dhcp request from the internal side yields a "send_fallback: no route to
host" message on the OpenBSD console.

*Details*

NICs are 3Com EtherExpress ($int_if, xl0) and CNet ($ext_if, fxp0)

Running OpenBSD 3.5 (GENERIC)

PF rules:
--------
block return on $ext_if all
pass on $ext_if from <Baseservices> to any
pass on $ext_if from any to <Baseservices>
pass on $int_if all
--------

The <Baseservices> table contains the addresses to DHCP, DNS and print
servers.

I also tried limiting the dhcp relaying to one interface, with no
improvement:
dhcrelay -i $int_if <DHCPserver>

*Please help me*
Do I need to set up routes manually?
Is the promiscuous setting of the NICs causing trouble?
(Allowed services are available when working inside OpenBSD, and all traffic
passes OK when pf is disabled. To me this indicates that NICs do their job
and no additional route setup is needed.)

What am I missing?



Relevant Pages

  • Setup a wireless network experiment environment
    ... through binded ath0 interfaces via adhoc network NET2: ... ok to setup such an network, and which keys, ARP tables, proxy ARP, ... subnet on local interface is no longer possible, ...
    (comp.os.linux.networking)
  • Re: ISA net configuration In Vlan and multiple Internals network
    ... Correct me if I am wrong, but this is more of a network aggregation problem? ... Is your networks subnet contiguously? ... interface are defined on the 6500, meaning it is only layer 2. ... 5---For each vlan interface i have setup the ip address appropriate ip ...
    (microsoft.public.isa.configuration)
  • problems adding interfaces with zebra
    ... I want to setup it up so that all 4 now have a common physical interface on ... I will then setup the 4 interfaces to be on the 12.0.0.0/8 network ... Because the route is already installed locally as pointing to machine A via ...
    (freebsd-net)
  • Re: Dynamic Hostname Assignment
    ... I selected DHCP configuration of the network ... > interface during setup and installation. ...
    (freebsd-questions)
  • [PATCH 1/1] IPN: Inter Process Networking
    ... +IPN is an Inter Process Communication service. ... +interface and protocols used for networking. ... +to a "network". ... +creates a communication socket. ...
    (Linux-Kernel)