udp/tcp 6666,6667,7000

mupsje

Member
Sep 21, 2022
3
0
6
help help help.....

Situation setup:

I want to setup a tinytuya lxc server.
I have a udm-pro with several VLANS
But let's stick to the one we need to know

namevlanip
MGMT (the real one)1192.168.10.0/24
PROXMOX Servers VM or CT15192.168.15.0/24
IoT20192.168.20.0/24

Proxmox setup:

Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual

auto vmbr1
iface vmbr1 inet static
        address 192.168.10.21/24
        gateway 192.168.10.1
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0
#Static Bridge for PVE

auto vmbr0
iface vmbr0 inet manual
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 15,20,30,40,50,86

auto vmbr15
iface vmbr15 inet manual
        bridge-ports eno1.15
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /sys/devices/virtual/net/vmbr86/bridge/multicast_querier
        post-up echo 0 > /sys/class/net/vmbr86/bridge/multicast_snooping
#VLAN 15 static bridge

auto vmbr20
iface vmbr20 inet manual
        bridge-ports eno1.20
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /sys/devices/virtual/net/vmbr86/bridge/multicast_querier
        post-up echo 0 > /sys/class/net/vmbr86/bridge/multicast_snooping
#VLAN 20 static bridge


Laptop Windows11:
When I hookup a laptop to the VLAN15,VLAN20 or from MGMT, and I do a scan I get all devices!!!

Code:
PS C:\Users\info> python -m tinytuya scan


TinyTuya (Tuya device scanner) [1.15.1]


Scanning on UDP ports 6666 and 6667 and 7000 for devices for 18 seconds...

Unknown v3.3 Device   Product ID = ***************  [Valid Broadcast]:   
Address = 192.168.20.230   Device ID = ********************* (len:22) 
Local Key =   Version = 3.3  Type = default, MAC =   
No Stats for 192.168.20.23: DEVICE KEY required to poll for status

New Broadcast from App at 192.168.15.127 - {'from': 'app', 'ip': '192.168.15.127'}

Unknown v3.4 Device   Product ID = ***************  [Valid Broadcast]:   
Address = 192.168.20.233   Device ID = ********************* (len:22) 
Local Key =   Version = 3.4  Type = default, MAC =   
No Stats for 192.168.20.233: DEVICE KEY required to poll for status

Unknown v3.3 Device   Product ID = ***************  [Valid Broadcast]:   
Address = 192.168.20.68   Device ID = ********************* (len:22) 
Local Key =   Version = 3.3  Type = default, MAC =   
No Stats for 192.168.20.68: DEVICE KEY required to poll for status
Unknown v3.4 Device   Product ID = ***************  [Valid Broadcast]:

Scan Complete!  Found 3 devices.
Broadcasted: 10
Scan completed in 8.0003 seconds
In Proxmox PVE:
If I do a scan from shell PVE I get nothing 192.168.10.21 (MGMT static)
Code:
(env) root@pve4:/home# python3 -m tinytuya scan


TinyTuya (Tuya device scanner) [1.15.1]


Scanning on UDP ports 6666 and 6667 and 7000 for devices for 18 seconds...


New Broadcast from App at 192.168.10.21 - {'from': 'app', 'ip': '192.168.10.21'}
Scan completed in 18.0489 seconds                 
                    
Scan Complete!  Found 0 devices.
Broadcasted: 0
Versions:

In Proxmox CT or VM Vlan 15 or others:
PROXMOX SERVER VLAN |192.168.15.15 : if i do a scan from CT or VM debian I got nothing

Code:
root@debian:/home# python3 -m tinytuya scan


TinyTuya (Tuya device scanner) [1.15.1]


Scanning on UDP ports 6666 and 6667 and 7000 for devices for 18 seconds...


New Broadcast from App at 192.168.15.160 - {'from': 'app', 'ip': '192.168.15.160'}
Scan completed in 18.0507 seconds                 
                    
Scan Complete!  Found 0 devices.
Broadcasted: 0
Versions:

if I do a tcpdum on de shell , I see the tuya device popup.

Code:
tcpdump -i vmbr20 -vv

Code:
16:11:04.490503 IP (tos 0x0, ttl 255, id 19944, offset 0, flags [none], proto UDP (17), length 232)
    192.168.20.230.59727 > 255.255.255.255.6667: [udp sum ok] UDP, length 204

In Proxmox CT or VM Vlan 20:
IoT Devices VLAN | 192.168.20.15 if I do a scan from CT or VM debian I get indeed the same results.
Code:
PS C:\Users\info> python -m tinytuya scan


TinyTuya (Tuya device scanner) [1.15.1]


Scanning on UDP ports 6666 and 6667 and 7000 for devices for 18 seconds...

Unknown v3.3 Device   Product ID = ***************  [Valid Broadcast]:   
Address = 192.168.20.230   Device ID = ********************* (len:22) 
Local Key =   Version = 3.3  Type = default, MAC =   
No Stats for 192.168.20.23: DEVICE KEY required to poll for status

New Broadcast from App at 192.168.15.127 - {'from': 'app', 'ip': '192.168.15.127'}

Unknown v3.4 Device   Product ID = ***************  [Valid Broadcast]:   
Address = 192.168.20.233   Device ID = ********************* (len:22) 
Local Key =   Version = 3.4  Type = default, MAC =   
No Stats for 192.168.20.233: DEVICE KEY required to poll for status

Unknown v3.3 Device   Product ID = ***************  [Valid Broadcast]:   
Address = 192.168.20.68   Device ID = ********************* (len:22) 
Local Key =   Version = 3.3  Type = default, MAC =   
No Stats for 192.168.20.68: DEVICE KEY required to poll for status
Unknown v3.4 Device   Product ID = ***************  [Valid Broadcast]:

Scan Complete!  Found 3 devices.
Broadcasted: 10
Scan completed in 8.0003 seconds

So why it does not pop-up when I do the scan on other VLAN in PROXMOX? (Laptop it does)

python -m tinytuya scan

Steps I did (and don't laugh)
Factory reset UDM-PRO
Factory reset Proxmox
Reset all config in Proxmox

I'm getting really frustrated at them moment.
please someone help.
 
Updated the config to :

Code:
auto lo
iface lo inet loopback


iface eno1 inet manual


iface eno2 inet manual


auto vmbr1
iface vmbr1 inet static
        address 192.168.10.21/24
        gateway 192.168.10.1
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /sys/devices/virtual/net/vmbr1/bridge/multicast_querier
        post-up echo 0 > /sys/class/net/vmbr1/bridge/multicast_snooping
        post-up ip link set vmbr1 promisc on




#Static Bridge for PVE


auto vmbr0
iface vmbr0 inet manual
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 15,20,30,40,50,86
#Bridge for VLAN Aware


auto vmbr86
iface vmbr86 inet manual
        bridge-ports eno1.86
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /sys/devices/virtual/net/vmbr86/bridge/multicast_querier
        post-up echo 0 > /sys/class/net/vmbr86/bridge/multicast_snooping
        post-up ip link set vmbr86 promisc on   
#VLAN 86 static bridge


auto vmbr15
iface vmbr15 inet manual
        bridge-ports eno1.15
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /sys/devices/virtual/net/vmbr15/bridge/multicast_querier
        post-up echo 0 > /sys/class/net/vmbr15/bridge/multicast_snooping
        post-up ip link set vmbr15 promisc on
#VLAN 15 static bridge


auto vmbr20
iface vmbr20 inet manual
        bridge-ports eno1.20
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /sys/devices/virtual/net/vmbr20/bridge/multicast_querier
        post-up echo 0 > /sys/class/net/vmbr20/bridge/multicast_snooping
        post-up ip link set vmbr20 promisc on
#VLAN 20 static bridge

Stil nothing. :(
 

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!