Skip to content

udp-reflector not works on centos 7 system #1

@kkkimiko

Description

@kkkimiko

I follow below steps to install udp-reflector and hope it could forward the dhcp traffic to my packetfence server, but find the transferred packets are not dhcp packets any more. I compared the sent packets and received packets, and find the packet length was changed after udp-reflector forwarded. Is there any way to fix it ?

For CentOS 7:

# for x86_64
# wget http://inverse.ca/downloads/PacketFence/CentOS7/extra/x86_64/RPMS/udp-reflector-1.0-6.1.x86_64.rpm
Now install the sensor:

# rpm -i udp-reflector-*.rpm
Compiling the sensor from source on a Linux system
First make sure you have the following packages installed:

libpcap

libpcap-devel

gcc-c++

Get the source code of the sensor:

# mkdir -p ~/udp-reflector && cd ~/udp-reflector
# wget http://inverse.ca/downloads/PacketFence/udp-reflector/udp_reflector.cpp
# g++ udp_reflector.cpp -o /usr/local/bin/udp_reflector -lpcap
Configuring the Sensor
Place the following line in /etc/rc.local

where pcap0 is the pcap interface where your DHCP server listens on. (List them using udp_reflector -l)

where 192.168.1.5 is the management IP of your PacketFence server

/usr/local/bin/udp_reflector -s pcap0:67 -d 192.168.1.5:767 -b 25000 &
Start the sensor:

# /usr/local/bin/udp_reflector -s pcap0:67 -d 192.168.1.5:767 -b 25000 &

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions