<?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[Pfsense rules to allow vnc over ssh tunnel]]></title><description><![CDATA[<p dir="auto">I'm having issues establishing a vnc connection over an ssh tunnel (testing in a local environment not over actual WAN)</p>
<p dir="auto">My Desktop ip 192.168.1.2</p>
<p dir="auto">ESXI 6.7 host with pfsense and a ubuntu 20.04 vm.<br />
PFsense IP - 192.168.1.15 (Wan IP)<br />
Ubutnu VM IP - 192.168.2.2 (Lan IP from PfSense)</p>
<p dir="auto">I have a firewall rule to allow Any Source Address on WAN and any port on Wan to my ubuntu VM 192.168.2.2 Port 22 for SSH.<br />
I have a NAT port forwarding rule to allow Destination Wan Address Port 22 to redirect to host 192.168.2.2 port 22 for ssh</p>
<p dir="auto">I am able to establish SSH connection from my desktop to the Ubuntu vm with this setup.</p>
<p dir="auto">What I want to do is use SSH tunneling to connect vncviewer from my desktop to the ubuntu vm.<br />
I setup a tunnel for port 5900 over ssh but am unable to get vncviewer to connect to the vm.</p>
<p dir="auto">When I try to connect I see the following<br />
LAN	tcp	192.168.2.2:43970 -&gt; 192.168.1.15:5900	CLOSED:SYN_SENT	3 / 0	180 B / 0 B</p>
]]></description><link>https://forum.netgate.com/topic/159745/pfsense-rules-to-allow-vnc-over-ssh-tunnel</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 13:28:06 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/159745.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Jan 2021 18:28:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pfsense rules to allow vnc over ssh tunnel on Mon, 11 Jan 2021 17:02:10 GMT]]></title><description><![CDATA[<p dir="auto">Yes exactly if you are trying to connect to a sercice on the Ubuntu server you would use localhost there, or some IP on the Ubuntu box listening on that port. Not the pfSense IP.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/956253</link><guid isPermaLink="true">https://forum.netgate.com/post/956253</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Mon, 11 Jan 2021 17:02:10 GMT</pubDate></item><item><title><![CDATA[Reply to Pfsense rules to allow vnc over ssh tunnel on Mon, 11 Jan 2021 13:52:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephenw10">@<bdi>stephenw10</bdi></a> this may have been an issue with my incomplete understanding of ssh tunnels.</p>
<p dir="auto">Since I am using port forwarding from the pfsense router (lab environment) 22 to ubuntu vm port 22.</p>
<p dir="auto">When I establish an ssh connection from my desktop, I am using the wan ip of the pfsense router 192.168.1.15.<br />
Creating a tunnel, I was trying to map 5900:192.168.1.15:5900. This caused the Ubuntu vm to try to establish a connection to port 5900 on 192.168.1.15 which would fail.</p>
<p dir="auto">If I instead create a tunnel as 5900:127.0.0.1:5900, the vm will create a tunnel to its localhost port 5900 and I am able to proceed.</p>
<p dir="auto">Please let me know if this is the appropriate way to perform tunneling</p>
<p dir="auto">ssh -L 5900:127.0.0.1:5900 192.168.1.15 (assuming it would also work with ssh -L 5900:192.168.2.2:5900 192.168.1.15)</p>
<p dir="auto">originally, I was doing<br />
ssh -L 5900:192.168.1.15:5900 192.168.1.15</p>
]]></description><link>https://forum.netgate.com/post/956179</link><guid isPermaLink="true">https://forum.netgate.com/post/956179</guid><dc:creator><![CDATA[noenthu]]></dc:creator><pubDate>Mon, 11 Jan 2021 13:52:20 GMT</pubDate></item><item><title><![CDATA[Reply to Pfsense rules to allow vnc over ssh tunnel on Sun, 10 Jan 2021 15:44:50 GMT]]></title><description><![CDATA[<p dir="auto">There shouldn't be anything special required in pfSense to pass that if SSH is working.</p>
<p dir="auto">Check the logs in Ubuntu.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/955998</link><guid isPermaLink="true">https://forum.netgate.com/post/955998</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Sun, 10 Jan 2021 15:44:50 GMT</pubDate></item></channel></rss>