Project

General

Profile

Actions

Feature #1663

closed

DHCPv6 relay

Added by Chris Buechler over 10 years ago. Updated over 8 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.

Actions #1

Updated by Seth Mos over 10 years ago

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.

Actions #2

Updated by Chris Buechler over 10 years ago

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.

Actions #3

Updated by Seth Mos about 10 years ago

  • Status changed from New to Feedback

Please test

Actions #4

Updated by Darwin Mach almost 10 years ago

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

Actions #5

Updated by Seth Mos over 9 years ago

  • 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.

Actions #6

Updated by Seth Mos over 9 years ago

  • Status changed from Assigned to New
Actions #7

Updated by Jim Pingle almost 9 years ago

  • Status changed from New to Feedback

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

Actions #8

Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved
Actions #9

Updated by Doktor Notor over 8 years ago

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

Actions #10

Updated by Doktor Notor over 8 years ago

Actions #11

Updated by Doktor Notor over 8 years ago

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

Actions #12

Updated by Phillip Davis over 8 years ago

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.

Actions #13

Updated by Doktor Notor over 8 years ago

Afraid the thing still does not get stopped with 711.

Actions #14

Updated by Doktor Notor over 8 years ago

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 PDF