Log traffic in bridge mode

Hello,
I have installed Openwrt on my Edgerouter X SFP, last version 23.05
Eth0 is my wan and it is connected to my ISP box
Eth1, Eth2and Eth3 are in the Lan and bridge network, using relayd
I can connect a PC, with DHCP and I can go to internet
it is working fine
Now I would like to log the DHCP request going to the ISP box and alos the trafic to the 80 and 443 ports
I tried several solution, but nothing work..
I need help, I am just starting with openwrt
Thanks a lot for any help and answer
Yves67

did you check the Status --> Syatem Log ?

when I unplug & plug my PC network cable, I could get:

Tue Apr 23 01:29:23 2024 daemon.info dnsmasq-dhcp[1]: DHCPDISCOVER(br-lan) 192.168.1.xxx 3c:22:33:44:55:66
Tue Apr 23 01:29:23 2024 daemon.info dnsmasq-dhcp[1]: DHCPOFFER(br-lan) 192.168.1.xxx 3c:22:33:44:55:66
Tue Apr 23 01:29:23 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.1.xxx 3c:22:33:44:55:66
Tue Apr 23 01:29:23 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.1.xxx 3c:22:33:44:55:66 DELL

in the system log.

I will Check this tomorrow
But do i need to use bridge firewall ?
Thanks

Login your router via luci or ssh, nothing special.

I can log to my router via ssh or via its lan ip address, no problem with that
M’y concern is to log the bridge trafic between the lan and the wan
I have setup the bridge with relayd
Thanks for your reply

System log, record data from dhcp server, in the front.

I wonder why you use relayd on the ethx ports. The default br-lan , not OK ?

1 Like

I follow this link to install my router

but again my problem is to log the trafic

Your router works in bridge / dumb-AP mode and no dhcp server in it.
You could check the System Log in the router to see the dhcp assignations from your ISP modem.

yes? I have dhcp for the wan because my router is dhcp client to the isp
I have tested the nftables and I could have some logs
i will do a reset and do some more tests
Thanks for your reply

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.