NAT or Proxy with unattended

The foreman is behind a reverse proxy apache which source ip is 192.168.253.3
I think what I need is spoofing at MAC Adress Level.

…snip
[root@$hostname ~]# wget -O- http://$theforeman/unattended/gPXE

2012-03-15 18:47:53 ERROR 404: Not Found.
snap…

In the foreman log I find

…snip
Processing UnattendedController#gPXE (for 10.10.10.10 at 2012-03-15 18:47:53) [GET]
unattended: unable to find ip/mac match for 10.10.10.10, 192.168.253.3
Filter chain halted as [:get_host_details] rendered_or_redirected.
Completed in 2ms (View: 0, DB: 1) | 404 Not Found [http://lea.fasel.at/unattended/gPXE]
snap…

My Question is how The Foreman is handling Network Adress Translation or Proxies.
What to enter at https://lea.fasel.at/hosts/$hostname/edit#network ?
I have to provide IP and MAC but if NAT or Proxying is involved the IP Adress is not meaningful.

Markus 'confused'

Oh, I can set a X-RHN Header!
$ wget -O- --header "X-RHN-Provisioning-MAC-0: XX:XX:XX:XX:XX:XX"
http://$theforeman/unattended/gPXE

I am using iPXE, I see this 3 possibilities:
let iPXE send the X-RHN header
maybe iPXE sends another header with the mac in it?
use a wrapper as mentioned in Feature #1459: iPXE support - Foreman

··· On Mar 15, 7:09 pm, Markus Falb wrote: > The foreman is behind a reverse proxy apache which source ip is 192.168.253.3 > I think what I need is spoofing at MAC Adress Level. > > …snip > [root@$hostname ~]# wget -O- http://$theforeman/unattended/gPXE > ... > 2012-03-15 18:47:53 ERROR 404: Not Found. > snap…


Markus

It is doing the following select, which seems wrong to me
SELECT * FROM "hosts" WHERE ("hosts"."ip" = '10.10.10.10,
192.168.253.3') LIMIT 1
Instead it should do
SELECT * FROM "hosts" WHERE ("hosts"."ip" = '10.10.10.10') LIMIT 1

?

··· On Mar 15, 7:09 pm, Markus Falb wrote: > The foreman is behind a reverse proxy apache which source ip is 192.168.253.3 > I think what I need is spoofing at MAC Adress Level. > > …snip > [root@$hostname ~]# wget -O- http://$theforeman/unattended/gPXE > ... > 2012-03-15 18:47:53 ERROR 404: Not Found. > snap… > > In the foreman log I find > > …snip > Processing UnattendedController#gPXE (for 10.10.10.10 at 2012-03-15 18:47:53) [GET] > unattended: unable to find ip/mac match for 10.10.10.10, 192.168.253.3 > Filter chain halted as [:get_host_details] rendered_or_redirected. > Completed in 2ms (View: 0, DB: 1) | 404 Not Found [http://lea.fasel.at/unattended/gPXE] > snap…


Markus