[ipxe-devel] http host name is replaced by ip after third request

Martin Vogt mvogt1 at gmail.com
Thu Feb 13 11:49:05 UTC 2020


Hello list,

I tried to setup a named virtual host and found out, that after the third
request the http host header is replaced, by the IP and port in ipxe.
Thus it is not possible to setup a Named virtual host "cname"
web server and use it with ipxe.

The http header is captured with tcpdump on the apache server.
(see below.)

Maybe someone with a better understanding can explain what
goes wrong?

regards,

Martin

"LOG":
capture on www server "tftp.home.net"

>tcpdump -vvvvs 1024 -A host mypc.home.net


first request

GET /netboot/pxe/vlan100/main.ipxe HTTP/1.1
Connection: keep-alive
User-Agent: iPXE/1.20.1+ (g18dc)
Host: tftp.home.net
^^ ok

second request

POST /netboot/pxe/vlan100/efi/menu.php HTTP/1.1
Content-Length: 27
Content-Type: application/x-www-form-urlencoded
Connection: keep-alive
User-Agent: iPXE/1.20.1+ (g18dc)
Host: tftp.home.net
^^ ok

third request

POST //netboot/pxe/vlan100/efi/../pcbios/menu_linux_install.php HTTP/1.1
Content-Length: 27
Content-Type: application/x-www-form-urlencoded
Connection: keep-alive
User-Agent: iPXE/1.20.1+ (g18dc)
Host: 192.168.19.17:80
^^ replaced by IP (?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20200213/34d9b860/attachment.htm>


More information about the ipxe-devel mailing list