Weird Proxmox API Problem with Internal IPs

SpaceNaut

New Member
Oct 8, 2015
7
0
1
Hello,
I have a workstation with the IP 192.168.3.100 and a Proxmox Server with the IP 192.168.3.10.

Login over the IP works just fine, but not over the API via CURL from the PHP API Wrapper doesn't work.

Following test code works on server which are accessible over the internet:

PHP:
$pve2 = new PVE2_API($GLOBALS["server"]["ip"], $_REQUEST["user"], $GLOBALS["server"]["realm"], $_REQUEST["passwort"]);
if ($pve2->login()) {
  $arr["type"]="success";
  $arr["data"]=$pve2->get("/access/users/".$_REQUEST["user"]);
} else {
  $arr["type"]="error";
}

But this code doesn't work on my internal server.
/etc/networking/interfaces
Code:
auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        address 192.168.3.10
        netmask 255.255.255.0
        gateway 192.168.3.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
/etc/hosts
Code:
127.0.0.1 localhost.localdomain localhost
192.168.3.10 robin.local robin pvelocalhost

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

IDK what to do does everyone a idea?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!