Re: dhcrelay multiple instances possible bug
Hi Riccardo, dhrelay only operates on a single interface, so you're not missing anything there. Can you show me the ps output for the dhcrelay processes you start? The rcctl commands you show below don't include the rcctl start dhcrelay and dhcrelay_second bits. I have the following in rc.local (mostly because this config predates rcctl): foo=192.0.2.194 bar=192.0.2.196 echo -n 'start dhcp relays:' for i in vlan371 vlan373 \ vlan835 \ vlan801 vlan847 vlan866 vlan867 \ vlan811 vlan815 vlan816 \ vlan1101 vlan1147 vlan1165 vlan1166 \ vlan1201 vlan1231 vlan1247 vlan1265 vlan1266 \ vlan1301 vlan1331 vlan1347 vlan1365 vlan1366 \ vlan971 vlan966 \ vlan1401 vlan1465 vlan1466 vlan1467 \ vlan1501 vlan1565 vlan1566 \ vlan1601 vlan1647 vlan1665 vlan1666 vlan1667 \ vlan1701 vlan1747 vlan1765 vlan1766 \ vlan1801 vlan1865 vlan1866 \ vlan1901 vlan1965 vlan1966 \ vlan2001 vlan2065 vlan2066 vlan2067 \ vlan2008 vlan2068 \ vlan2506 vlan2533 vlan2536 vlan2531 vlan2537 vlan2547; do /usr/sbin/dhcrelay -i ${i} $foo $bar echo -n " ${i}" done echo '.' Which produces: xdlg@shotgun1 pf$ ps -aux | grep dhc _dhcp40965 0.0 0.0 532 1008 ?? Ssp 10Nov17 12:06.67 /usr/sbin/dhcrelay -i vlan371 192.0.2.194 192.0.2.196 _dhcp16825 0.0 0.0 536 1012 ?? Ssp 10Nov172:08.80 /usr/sbin/dhcrelay -i vlan867 192.0.2.194 192.0.2.196 _dhcp69672 0.0 0.0 532 1076 ?? Isp 10Nov170:46.06 /usr/sbin/dhcrelay -i vlan866 192.0.2.194 192.0.2.196 _dhcp48117 0.0 0.0 536 972 ?? Isp 10Nov170:00.02 /usr/sbin/dhcrelay -i vlan373 192.0.2.194 192.0.2.196 _dhcp43065 0.0 0.0 540 1068 ?? Isp 10Nov170:06.02 /usr/sbin/dhcrelay -i vlan835 192.0.2.194 192.0.2.196 _dhcp77793 0.0 0.0 540 988 ?? Ssp 10Nov17 19:26.92 /usr/sbin/dhcrelay -i vlan801 192.0.2.194 192.0.2.196 _dhcp68793 0.0 0.0 540 1028 ?? Isp 10Nov170:08.40 /usr/sbin/dhcrelay -i vlan847 192.0.2.194 192.0.2.196 _dhcp12879 0.0 0.0 540 1016 ?? Isp 10Nov171:14.46 /usr/sbin/dhcrelay -i vlan1101 192.0.2.194 192.0.2.196 _dhcp10430 0.0 0.0 544 1052 ?? Ssp 10Nov171:42.55 /usr/sbin/dhcrelay -i vlan811 192.0.2.194 192.0.2.196 _dhcp87753 0.0 0.0 544 1016 ?? Isp 10Nov170:31.65 /usr/sbin/dhcrelay -i vlan815 192.0.2.194 192.0.2.196 _dhcp21434 0.0 0.0 536 1024 ?? Isp 10Nov170:00.20 /usr/sbin/dhcrelay -i vlan816 192.0.2.194 192.0.2.196 _dhcp17816 0.0 0.0 540 1020 ?? Isp 10Nov170:00.00 /usr/sbin/dhcrelay -i vlan1147 192.0.2.194 192.0.2.196 _dhcp67338 0.0 0.0 540 1020 ?? Isp 10Nov170:00.11 /usr/sbin/dhcrelay -i vlan1247 192.0.2.194 192.0.2.196 _dhcp73549 0.0 0.0 540 1020 ?? Isp 10Nov170:00.55 /usr/sbin/dhcrelay -i vlan1165 192.0.2.194 192.0.2.196 _dhcp78748 0.0 0.0 540 1012 ?? Isp 10Nov170:02.33 /usr/sbin/dhcrelay -i vlan1166 192.0.2.194 192.0.2.196 _dhcp82689 0.0 0.0 540 1008 ?? Isp 10Nov172:02.18 /usr/sbin/dhcrelay -i vlan1201 192.0.2.194 192.0.2.196 _dhcp31199 0.0 0.0 540 996 ?? Isp 10Nov170:07.63 /usr/sbin/dhcrelay -i vlan1231 192.0.2.194 192.0.2.196 _dhcp21332 0.0 0.0 532 1004 ?? Isp 10Nov171:24.02 /usr/sbin/dhcrelay -i vlan1265 192.0.2.194 192.0.2.196 _dhcp35688 0.0 0.0 544 1040 ?? Isp 10Nov170:00.28 /usr/sbin/dhcrelay -i vlan1347 192.0.2.194 192.0.2.196 _dhcp36741 0.0 0.0 540 1032 ?? Isp 10Nov170:07.17 /usr/sbin/dhcrelay -i vlan1266 192.0.2.194 192.0.2.196 _dhcp90274 0.0 0.0 544 1024 ?? Isp 10Nov17 19:17.78 /usr/sbin/dhcrelay -i vlan1301 192.0.2.194 192.0.2.196 _dhcp42199 0.0 0.0 548 1052 ?? Isp 10Nov170:00.17 /usr/sbin/dhcrelay -i vlan1331 192.0.2.194 192.0.2.196 _dhcp83979 0.0 0.0 528 1000 ?? Ssp 10Nov172:09.78 /usr/sbin/dhcrelay -i vlan1365 192.0.2.194 192.0.2.196 _dhcp52142 0.0 0.0 536 792 ?? Isp 10Nov170:00.00 /usr/sbin/dhcrelay -i vlan965 192.0.2.194 192.0.2.196 _dhcp17747 0.0 0.0 540 996 ?? Isp 10Nov170:05.03 /usr/sbin/dhcrelay -i vlan1366 192.0.2.194 192.0.2.196 _dhcp85673 0.0 0.0 536 988 ?? Isp 10Nov170:11.59 /usr/sbin/dhcrelay -i vlan947 192.0.2.194 192.0.2.196 _dhcp 266 0.0 0.0 536 964 ?? Isp 10Nov170:01.84 /usr/sbin/dhcrelay -i vlan966 192.0.2.194 192.0.2.196 _dhcp59857 0.0 0.0 540 984 ?? Isp 10Nov174:26.67 /usr/sbin/dhcrelay -i vlan1401 192.0.2.194 192.0.2.196 _dhcp17159 0.0 0.0 536 1012 ?? Ssp 10Nov171:27.85 /usr/sbin/dhcrelay -i vlan971 192.0.2.194 192.0.2.196 _dhcp67613 0.0 0.0 540 1028 ?? Isp 10Nov172:29.27 /usr/sbin/dhcrelay -i vlan1465 192.0.2.194 192.0.2.196 _dhcp33040 0.0 0.0 536 840 ?? Isp 10Nov170:00.00 /usr/sbin/dhcrelay -i vlan1565 192.0.2.194 192.0.2.196 _dhcp 4850 0.0 0.0 544 844 ?? Isp
dhcrelay multiple instances possible bug
Hi there, many years that i don't use this ml. I'm Riccardo writing from Spain, nice to meet you guys. First of all, many compliments for the exceptional hard work that you've done in the OpenBSD development. Just, thank you. Next a possible bug: In the OpenBSD dhcrelay(8) implementation i cannot find an option to specify different interfaces in a single daemon instance, try to image a router with multiple vlans and a dhcpd server in other machine in an internal service dedicated routed ip network segment. The first instance is executed by the command: rcctl enable dhcrelay rcctl set dhcrelay flags "-i vlanxxx DST_ADDR" The second one i've done this workaround: cd /etc/rc.d cp -p dhcrelay dhcrelay_second rcctl enable dhcrelay_second rcctl set dhcrelay_second flags "-i vlanyyy DST_ADDR" Now if i open a tcpdump session in the router and in the server and i configure correctly the dhcpd in the server i notice that traffic from the dhcrelay_second to the dhclient host in the vlanyyy isn't correctly forwarded. And it is not a pf problem. The strangeness is that if i don't execute the relay from rcctl but i execute with: dhcrelay_second -d -i vlanyyy DST_ADDR it works like a charm. If you want more debug or pcap files or access to the machines there's no problem at all. Thank you to spend your time, nice regards, RG -- Name: Riccardo Giuntoli Email: tag...@gmail.com Location: Canyelles, BCN, EspaƱa PGP Key: 0x67123739 PGP Fingerprint: CE75 16B5 D855 842FAB54 FB5C DDC6 4640 6712 3739 Key server: hkp://wwwkeys.eu.pgp.net