Description
I've running Chewie version 0.21 in a CORE environment (based on a Ubuntu 18.04 base) installed from the packagecloud.io source.
I have a Open vSwitch switch being configured with faucet and it's all working OK until I try to add the 802.1x authentication. I have LDAP & Radius & faucet server all running on the same host (n1) as the switch.
I have a veth pair (tap0 & tap1) bound to the switch as the port that the dot1x will use to output the 802.1x request.
What I'm currently seeing is that it looks like radius_output_bits = self.radius_output_messages.get()
here is never returning so the eapol request is never getting passed on to the radius server.
I'm running wpa_supplicant on n2
Any idea's what I've either got wrong or is this a bug?
Open vSwitch setup
#!/bin/bash
ip link add tap0 type veth peer name tap1
ip link set tap0 up
ip link set tap1 up
ovs-vsctl --if-exists del-br ovs-br0
ovs-vsctl add-br ovs-br0
ovs-vsctl set bridge ovs-br0 other-config:datapath-id=0000000000000001
ovs-vsctl set bridge ovs-br0 other-config:disable-in-band=true
ovs-vsctl add-port ovs-br0 eth0 -- set Interface eth0 ofport_request=1
ovs-vsctl add-port ovs-br0 eth1 -- set Interface eth1 ofport_request=2
ovs-vsctl add-port ovs-br0 eth2 -- set Interface eth2 ofport_request=3
ovs-vsctl add-port ovs-br0 eth3 -- set Interface eth3 ofport_request=4
ovs-vsctl add-port ovs-br0 eth4 -- set Interface eth4 ofport_request=5
ovs-vsctl add-port ovs-br0 tap1 -- set Interface tap1 ofport_request=6
ovs-vsctl set-fail-mode ovs-br0 secure
ovs-vsctl set-controller ovs-br0 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654
faucet.yaml:
pre_auth:
- rule:
dl_type: 0x800
ip_proto: 1
actions:
allow: False
post_auth:
- rule:
actions:
allow: True
vlans:
office:
vid: 100
description: "office network"
home:
vid: 101
description: "home network"
dps:
sw1:
dp_id: 0x1
dot1x:
radius_ip: "127.0.0.1"
radius_port: 1812
radius_secret: "testing123"
nfv_intf: "tap0"
nfv_sw_port: 6
hardware: "Open vSwitch"
interfaces:
1:
name: "host1"
description: "host1 network namespace"
native_vlan: office
dot1x: true
2:
name: "host2"
description: "host2 network namespace"
native_vlan: home
3:
name: "host3"
native_vlan: office
4:
name: "host4"
native_vlan: home
5:
name: "trunk"
tagged_vlans: [office,home]
6:
name: "802.1x"
output_only: true