Project

General

Profile

Actions

Feature #1663

closed
CB SM

DHCPv6 relay

Feature #1663: DHCPv6 relay

Added by Chris Buechler about 15 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP Relay
Target version:
Start date:
07/10/2011
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

Need to add support for DHCPv6 relay. Can just copy DHCP Relay as DHCPv6 Relay, the existing dhcrelay supports IPv6 run separately with -6.

SM Updated by Seth Mos about 15 years ago Actions #1

I'll Investigate the needs. Page probably needs a total makeover because next to nothing that exists in ipv4 can be ported over.

Only ntp servers would work. There aren't even config options for boot servers and the like.

CB Updated by Chris Buechler about 15 years ago Actions #2

DHCP Relay page only has 4 fields which are all the same between v4 and v6 with the exception of input validation. I think you're thinking of something else.

SM Updated by Seth Mos about 15 years ago Actions #3

  • Status changed from New to Feedback

Please test

DM Updated by Darwin Mach over 14 years ago Actions #4

The settings for DHCP Relay v6 on the latest snapshot aren't saving.

1.) Set it up
2.) Save it
3.) Navigate away, then back
4.) Settings gone

SM Updated by Seth Mos over 14 years ago Actions #5

  • Status changed from Feedback to Assigned
  • Assignee set to Seth Mos

Ok, found the glaring error, doesn't start, config is rubbish. Need to properly code this. Arguments to dhcrelay -6 very different.

SM Updated by Seth Mos over 14 years ago Actions #6

  • Status changed from Assigned to New

JP Updated by Jim Pingle almost 14 years ago Actions #7

  • Status changed from New to Feedback

Code was added as of commit:f15849b5e4961e5c76931a8891ea7a7e2f6f3c53 but probably still needs some testing.

CB Updated by Chris Buechler over 13 years ago Actions #8

  • Status changed from Feedback to Resolved

DN Updated by Doktor Notor about 13 years ago Actions #9

This is very, very broken. It can never be stopped via disabling the checkbox and clicking save. On subsequent enabling, it launches another process, and so on and so on and so on. I also don't think multiple ifaces are handled at all, looking at the commandline.

Example, first enabled:

# ps ax | grep dhc
10435 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -i vr0 -i vr2 -i ath0_wlan0
25394 ?? Ss 0:00.88 /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log
78114 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -6 -pf /var/etc/dhcrelay6.pi

Disabled and enabled again:

# ps ax | grep dhc
297 ?? Ss 0:00.00 /usr/local/sbin/dhcrelay -6 -pf /var/etc/dhcrelay6.pi
10435 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -i vr0 -i vr2 -i ath0_wlan0
25394 ?? Ss 0:00.88 /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log
78114 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -6 -pf /var/etc/dhcrelay6.pi

Another cycle:

# ps ax | grep dhc
297 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -6 -pf /var/etc/dhcrelay6.pi
10435 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -i vr0 -i vr2 -i ath0_wlan0
25394 ?? Ss 0:00.90 /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log
38973 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -6 -pf /var/etc/dhcrelay6.pi
78114 ?? Is 0:00.00 /usr/local/sbin/dhcrelay -6 -pf /var/etc/dhcrelay6.pi

DN Updated by Doktor Notor about 13 years ago Actions #10

DN Updated by Doktor Notor about 13 years ago Actions #11

Also, the service does not start on boot, since there is no mention of services_dhcrelay6_configure() in /etc/rc.bootup

PD Updated by Phillip Davis about 13 years ago Actions #12

Starting at boot is resolved by https://github.com/pfsense/pfsense/pull/710
Stop/start/restart and enable/disable of the service in real-time is resolved by https://github.com/pfsense/pfsense/pull/711
I think that fixes the issues reported by Doktor Notor above.

DN Updated by Doktor Notor about 13 years ago Actions #13

Afraid the thing still does not get stopped with 711.

DN Updated by Doktor Notor about 13 years ago Actions #14

Grrr, missed one part of the patch... All works now:
- service started on boot
- Pv6 addresses assigned
- the enable checkbox stop and starts the service upon saving the toggled state
- services status show correctly and can be stopped/restarted using Status - Services and the widget

Thumbs up and thanks, Phillip!

Actions

Also available in: Atom