<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Help with fw rules, vlan and LG TV (Miracast)]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm still new at this and maybe I'm trying to do something that is not possible. But I hope the collective can help. I also did a lot of searching, but I have not been able to find the answer to my situation. So here goes:</p>
<p dir="auto"><strong>TL;DR</strong><br />
I need help adjusting my FW rule to allow screensharing from Office VLAN to IoT VLAN. The devices can see each other, but my IoT FW rule (that prevents VLAN to VLAN communication) blocks the screensharing to complete. So what FW rule should I implement to allow screensharing sessions, but still block other VLAN to VLAN traffic?</p>
<p dir="auto"><strong>The setup</strong></p>
<ul>
<li>Pfsense 2.4.5-RELEASE-p1</li>
<li>Avahi 2.1_1</li>
<li>Office VLAN (10.10.20.xx)</li>
<li>IoT VLAN (10.10.40.xx)</li>
<li>LG TV (Miracast) on IoT VLAN (10.10.40.50)</li>
</ul>
<p dir="auto"><strong>The Use Case</strong></p>
<ul>
<li>Cast/Screenshare from Office VLAN to LG TV on IoT VLAN</li>
</ul>
<p dir="auto"><strong>Current status</strong><br />
I can discover the LG TV on my Office VLAN (Avahi is working). When I establish a screensharing session I can see in pfTop a connection "ESTABLISHED: ESTABLISHED" between my laptop (10.10.20.54) and the LG TV (10.10.40.50)</p>
<p dir="auto">But, the screensharing is blocked by my FW rule, that blocks access to Office and other VLANs.</p>
<p dir="auto"><strong>Firewall Rules</strong><br />
These rules are in place to prevent traffic to flow between VLANS. Maybe there is a better way. FYI. my WAN address is part of RFC1918 range.</p>
<p dir="auto"><img src="/assets/uploads/files/1604313269206-screenshot-2020-11-02-at-12.34.00-resized.png" alt="Screenshot 2020-11-02 at 12.34.00.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1604313328362-screenshot-2020-11-02-at-12.35.19-resized.png" alt="Screenshot 2020-11-02 at 12.35.19.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>pfTop</strong><br />
As you can see, then there is an established connection form my laptop (10.10.20.54) to the LG TV (10.10.40.50)<br />
<img src="/assets/uploads/files/1604313510818-screenshot-2020-11-02-at-12.36.20-resized.png" alt="Screenshot 2020-11-02 at 12.36.20.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Firewall Log</strong><br />
And unfortunately then the session is blocked by my FW rule. If I disable this rule, then it works. But I thought that if the connection is initiated by 10.10.20.54 (Office) then 10.10.40.50 (IoT) would be allowed to respond on any port.<br />
<img src="/assets/uploads/files/1604313529965-screenshot-2020-11-02-at-12.37.22-resized.png" alt="Screenshot 2020-11-02 at 12.37.22.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/topic/158064/help-with-fw-rules-vlan-and-lg-tv-miracast</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 18:02:28 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/158064.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Nov 2020 10:45:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with fw rules, vlan and LG TV (Miracast) on Wed, 09 Jun 2021 13:06:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/logboss">@<bdi>logboss</bdi></a> Not in a ideal way with specific miracast ports. I simply assigned the TV a static IP and added Allow rule from TV to Office Net and from the Office Net to the TV. So not they can communicate on all ports to TV IP.</p>
<p dir="auto">Not great, but it works :-)</p>
<p dir="auto"><strong>IOT Net Rule</strong><br />
<img src="/assets/uploads/files/1623243945330-screenshot-2021-06-09-at-16.05.16-resized.png" alt="Screenshot 2021-06-09 at 16.05.16.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Office Net Rule</strong><br />
<img src="/assets/uploads/files/1623243951283-screenshot-2021-06-09-at-16.05.08-resized.png" alt="Screenshot 2021-06-09 at 16.05.08.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/986933</link><guid isPermaLink="true">https://forum.netgate.com/post/986933</guid><dc:creator><![CDATA[lipsum]]></dc:creator><pubDate>Wed, 09 Jun 2021 13:06:52 GMT</pubDate></item><item><title><![CDATA[Reply to Help with fw rules, vlan and LG TV (Miracast) on Wed, 09 Jun 2021 02:43:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lipsum">@<bdi>lipsum</bdi></a> said in <a href="/post/943664">Help with fw rules, vlan and LG TV (Miracast)</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tehwolf">@<bdi>tehwolf</bdi></a><br />
I'll test this, but as far as I remember, the the destination port that the TV is sending on is random (in this case 52499). I would assume that mira cast would have a range that I can define.</p>
<p dir="auto">I'll also take a look at the source port (35553) to see if that is static.</p>
<p dir="auto">Thanks for the input and explanation.</p>
</blockquote>
<p dir="auto">Did you ever get this working? Can you please share your setup?</p>
]]></description><link>https://forum.netgate.com/post/986867</link><guid isPermaLink="true">https://forum.netgate.com/post/986867</guid><dc:creator><![CDATA[logboss]]></dc:creator><pubDate>Wed, 09 Jun 2021 02:43:07 GMT</pubDate></item><item><title><![CDATA[Reply to Help with fw rules, vlan and LG TV (Miracast) on Tue, 03 Nov 2020 15:50:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tehwolf">@<bdi>tehwolf</bdi></a><br />
I'll test this, but as far as I remember, the the destination port that the TV is sending on is random (in this case 52499). I would assume that mira cast would have a range that I can define.</p>
<p dir="auto">I'll also take a look at the source port (35553) to see if that is static.</p>
<p dir="auto">Thanks for the input and explanation.</p>
]]></description><link>https://forum.netgate.com/post/943664</link><guid isPermaLink="true">https://forum.netgate.com/post/943664</guid><dc:creator><![CDATA[lipsum]]></dc:creator><pubDate>Tue, 03 Nov 2020 15:50:32 GMT</pubDate></item><item><title><![CDATA[Reply to Help with fw rules, vlan and LG TV (Miracast) on Tue, 03 Nov 2020 11:49:42 GMT]]></title><description><![CDATA[<p dir="auto">As it's UDP, there's no concept of a "session" - the TV is sending packets to the office LAN that are correctly being blocked based upon your rules</p>
<p dir="auto">You could add an exception above the Block Office Access rule with:</p>
<p dir="auto">protocol<br />
IPV4 UDP</p>
<p dir="auto">source<br />
IOT net</p>
<p dir="auto">port<br />
*</p>
<p dir="auto">destination<br />
OFFICE net</p>
<p dir="auto">port<br />
52499</p>
<p dir="auto">which would allow the traffic.. but it's not "return" traffic as far as the firewall is concerned, so it's blocking based on your current ruleset.</p>
<p dir="auto">(you could make this more specific, if it's only the TV you want to allow - make the source the TVs IP address, and if the source port is always 35553 then add that too... if there are multiple TVs, you could create an alias for them and add them all in to that alias and use the alias as the source...)</p>
]]></description><link>https://forum.netgate.com/post/943607</link><guid isPermaLink="true">https://forum.netgate.com/post/943607</guid><dc:creator><![CDATA[tehwolf]]></dc:creator><pubDate>Tue, 03 Nov 2020 11:49:42 GMT</pubDate></item></channel></rss>