Unifi Switches fetching wrong time

Hello Everyone,

I just got my unifi switches.

48 port POE professional
24 port POE standard.

I am having my own controller hosted on proxmox on a Debian machine and the router is Netgate 6100.

Now the problem is, whenever is try to ssh into the switch and manually notify the switch about controller it gives me an error of 12.

Then I read somewhere in forum, that the time needs to match with the controller. I ran the date command in switch. It is showing me the wrong time.

I don’t find any way to change the time manually.

Can someone please help??

I am also attaching the screenshots:


Firewall Rules :
MGMT4 is where controller sits
10GIGSWITCH is where the switch.


You are using the wrong details for the inform command, you are using the portal port , not the inform port

The inform command is set-inform http://10.1.3.7.:8080/inform

2 Likes

If I am not confused you have right rules on the wrong interface.

The rules for a given interface are used to allow traffic that is talking to machines that are CONNECTED physically to that interface / network. With these rules you can only allow/deny what traffic is ENTERING the router interface. (This is different than with Linux where you can police both directions with the rules for an interface.)

So the rule allowing access to the controller would need to be on the 10GSWITCH interface and the rule allowing access to the switch would have to be on the MGT4 interface.

1 Like

It says now Status:Server Reject. I think now it’s a firewall rule issue.

I have figured out everything.

Once you adopt the switches, they will go offline again.

You will need to SSH into the switch and inform it again.

The credentials for SSH will be in our controller, and we need to use those.

After that, just inform the switch about the controller again, and it will come back up.

I’m leaving this here for anyone who might get stuck after adoption, like I did.

And thank you guys for your help!!