You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently set up a VLAN for my IOT devices so they live in a more secure network with a pfSense firewall between my development laptop and the devices. I am trying to restrict what port connections are allowed between the two networks.
I have set up a MDNS bridge between the networks so in the Arduino IDE I can see the esp8266 devices as available network ports.
What I have discovered is that the espota.py tool requires the esp8266 device to connect back to it on a host port and by default that port is random between 10000 and 60000. This works great when everything is on the same network, but in a firewall situation would require quite a large port range to be opened. espota.py does take a --host_port (-p) option to specify the port which seems promising, but I haven't found any way to configure the Arduino IDE to invoke espota.py with that option specified.
As a temporary hack in the
group.add_option("-P", "--host_port",
section I replaced the default = random.randint(10000, 60000) with a default =
but I dislike this option because it'll go away when I update.
Is there anywhere less fragile where I could set this as a preference?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently set up a VLAN for my IOT devices so they live in a more secure network with a pfSense firewall between my development laptop and the devices. I am trying to restrict what port connections are allowed between the two networks.
I have set up a MDNS bridge between the networks so in the Arduino IDE I can see the esp8266 devices as available network ports.
What I have discovered is that the espota.py tool requires the esp8266 device to connect back to it on a host port and by default that port is random between 10000 and 60000. This works great when everything is on the same network, but in a firewall situation would require quite a large port range to be opened. espota.py does take a --host_port (-p) option to specify the port which seems promising, but I haven't found any way to configure the Arduino IDE to invoke espota.py with that option specified.
As a temporary hack in the
group.add_option("-P", "--host_port",
section I replaced the default = random.randint(10000, 60000) with a default =
but I dislike this option because it'll go away when I update.
Is there anywhere less fragile where I could set this as a preference?
Beta Was this translation helpful? Give feedback.
All reactions