70 | | == Note == |
71 | | As you can see '/tftpboot/pxelinux.cfg/' is the default directory. If you placed the config files somewhere else you can add the ''-d,--directory'' option, eg: |
72 | | {{{ |
73 | | pxeconfigd stream tcp nowait root.sys /usr/sbin/tcpd \ |
74 | | /usr/local/sbin/pxeconfigd -d /<some>/<other>/<place> |
75 | | }}} |
| 70 | == Configuration == |
| 71 | |
| 72 | The pxeconfig and pxeconfigd utility can be configured with a configuration file: |
| 73 | * pxeconfig.conf (usually located in /usr/local/etc or /etc) |
| 74 | |
| 75 | The following options are supported: |
| 76 | pxe_config_dir:: |
| 77 | Specify which tftpboot directory must be used, default: ''/tftpboot/pxelinux.cfg'' |
| 78 | |
| 79 | client_script_hook:: |
| 80 | This option is used by the client program ''pxeconfig'' it executes a script before a host link is created with the host ip-address as first argument. We use this to open ports on our firewall to allow the host to use rsync or bittorrent protocol. |
| 81 | |
| 82 | daemon_script_hook:: |
| 83 | This option is used by the daemon program ''pxeconfigd'' it executes a script before a host link is removed with the host ip-address as first argument. We use this to close ports on our firewall for the specified IP-address/host. |