<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Firewall on Michael’s Domain</title><link>https://jeltsch.org/en/tags/firewall/</link><description>Recent content in Firewall on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/firewall/index.xml" rel="self" type="application/rss+xml"/><item><title>x11vnc as a nxserver replacement</title><link>https://jeltsch.org/en/x11vnc_as_a_nxserver_replacement/</link><pubDate>Thu, 29 Nov 2012 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/x11vnc_as_a_nxserver_replacement/</guid><description>&lt;p&gt;Now that 
 &lt;a href="http://www.nomachine.com" target="_blank" rel="noopener noreferrer nofollow"&gt;nomachine&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
&amp;rsquo;s great nxclient is defunct on MacOS X and its new nxplayer is still in beta (and completely nonfunctional on my setup), I needed another solution to connect to my work desktop from home. I tried many things, but then settled for 
 &lt;a href="http://www.karlrunge.com/x11vnc/" target="_blank" rel="noopener noreferrer nofollow"&gt;x11vnc&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. My work desktop is running Ubuntu Precise Pangolin (12.04) and I connect from a MacOS X 10.8 (Mountain Lion). I only had to install x11vnc and openssh-server on my work desktop and add an x11vnc.conf file to /etc/init with the following content:&lt;code&gt;x11vnc -forever -rfbauth /etc/x11vnc.pass -bg -o /var/log/x11vnc.log -scale 1280x800 -display :0 -auth /var/run/lightdm/root/:0&lt;/code&gt;I have to create the password file:&lt;code&gt;x11vnc -storepasswd password /etc/x11vnc.pass&lt;/code&gt;Then I just have to get into my work desktop by some means or another. At the moment I jump there via the UNIX computers of the university, because direct ssh access is not possible because of a firewall. So I ssh into the UNIX mainframe and from there I ssh into my work computer. Once I am in, I establish a reverse ssh tunnel to my Macbook Pro at home:&lt;code&gt;ssh -R 19999:localhost:5900 IP_address_of_homecomputer&lt;/code&gt;On my Macbook at home I had to enable Sharing - Remote login first. Then I just use the inbuilt Screen sharing of the OS &amp;ldquo;Connect to server&amp;rdquo; and then I type &amp;ldquo;vnc://localhost:19999&amp;rdquo; and voila I can see my work desktop&amp;rsquo;s login screen.Alternatively I could use my openvpn server that I have installed on my Macbook and use an openvpn client on my work desktop to establish a connection to my Macbook. Then I could directly log in and avoid the hops via the university UNIX machines to set up the reverse ssh tunnel.Another, although very slow method to access the GUI of my work desktop is X11 forwarding via ssh. All I need is a working ssh connection to the server, X11 forwarding enabled in the ssh server configuration file and an X11 server on the local machine (e.g. XQuarz on MacOSX):&lt;code&gt;ssh -X username@remote-server.comxclock &amp;amp;&lt;/code&gt;&lt;/p&gt;</description></item><item><title>One firewall to block them all</title><link>https://jeltsch.org/en/one_firewall_to_block_them_all/</link><pubDate>Tue, 06 Nov 2012 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/one_firewall_to_block_them_all/</guid><description>&lt;p&gt;&lt;strong&gt;Helsinki University&amp;rsquo;s firewall prevents employees from working&lt;/strong&gt;While I was lying in hospital with a broken calf-bone I couldn&amp;rsquo;t get any work done because of the Helsinki University&amp;rsquo;s firewall. Even if the 
 &lt;a href="https://play.google.com/store/apps/details?id=net.openvpn.openvpn&amp;amp;feature=search_result#?t=W251bGwsMSwyLDEsIm5ldC5vcGVudnBuLm9wZW52cG4iXQ.." target="_blank" rel="noopener noreferrer nofollow"&gt;Android OpenVPN client&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 would have allowed me in, I wouldn&amp;rsquo;t have been able to work. The purpose of a 
 &lt;a href="http://en.wikipedia.org/wiki/VPN" target="_blank" rel="noopener noreferrer nofollow"&gt;VPN&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 is to allow remote clients the same access to the LAN resources as those machines, that are physically located in the LAN. Obviously Helsinki University doesn&amp;rsquo;t think so and doesn&amp;rsquo;t give VPN clients equal privileges. In my case it meant that I cannot ssh into my work computer. This makes remote work expensive, because it required my boss to buy a laptop for me just because the firewall between HY-VPN clients and local machines blocks ssh connections. Without this restriction I could do all the work from my 400€ tablet using e.g. 
 &lt;a href="http://www.nomachine.com" target="_blank" rel="noopener noreferrer nofollow"&gt;nomachine&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 Player).&lt;strong&gt;The work-arounds failed also&lt;/strong&gt;If I had managed to login into one of the University&amp;rsquo;s UNIX servers (myntti, kruuna, klaava or ruuvi), I could have logged into my work computer from there. However, my Android ssh client 
 &lt;a href="https://code.google.com/p/connectbot/" target="_blank" rel="noopener noreferrer nofollow"&gt;ConnectBot&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 was not able to ssh into them. I presume this to be the fault of my mobile phone network provider 
 &lt;a href="http://www.tele.fi/" target="_blank" rel="noopener noreferrer nofollow"&gt;Tele Finland&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, because I couldn&amp;rsquo;t log into my own ssh servers either (which I normally can, when my Android is connected via WLAN). Once I can connect via ssh to my work computer, I can establish a 
 &lt;a href="http://www.howtoforge.com/reverse-ssh-tunneling" target="_blank" rel="noopener noreferrer nofollow"&gt;reverse ssh tunnel&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 and use 
 &lt;a href="http://www.x.org/wiki/" target="_blank" rel="noopener noreferrer nofollow"&gt;X Windows&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 or the 
 &lt;a href="http://www.nomachine.com/download-preview.php" target="_blank" rel="noopener noreferrer nofollow"&gt;NoMachine Player&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 to do all the work I usually can when sitting in the laboratory in front of my work computer&lt;strong&gt;Plex and no end of video playback trouble&lt;/strong&gt;However, I couldn&amp;rsquo;t get the OpenVPN configuration right on Android and neither could the helpdesk support to this date. So I was totally bored in the hospital and since we use 
 &lt;a href="http://plexapp.com" target="_blank" rel="noopener noreferrer nofollow"&gt;Plex&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 at home as our media center, I decided to watch some movies. However, Plex is still after four years development in beta and we had our fair share of trouble with media playback. Also this time: I couldn&amp;rsquo;t play back a single movie or a single song using the 
 &lt;a href="https://play.google.com/store/apps/details?id=com.plexapp.android&amp;amp;feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5wbGV4YXBwLmFuZHJvaWQiXQ.." target="_blank" rel="noopener noreferrer nofollow"&gt;Android client&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. It made the connection to our (Ubuntu 10.04) plexmediaserver without problems, but the only thing that worked was the &amp;ldquo;Photos&amp;rdquo; section. By trial and error, I found out that a part of the problem was, that the videos were in Apple&amp;rsquo;s QuickTime format (they had been encoded on a Mac). So I was looking for a way to batch-convert hundreds of files from .mov into .avi. Certainly this would be faster than filing a bug report and waiting that the Plex guys fix the problem. QuickTime is anyway dead, isn&amp;rsquo;t it? 
 &lt;a href="http://ffmpeg.org/" target="_blank" rel="noopener noreferrer nofollow"&gt;ffmpeg&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 was certainly the way to go, but Google flooded me with hits concerning batch conversion and the problem was finding the one that works. There is unfortunately lots of crap and noise on the web. The following one-liner did work:&lt;code&gt;find . -name '*.mov' -exec sh -c 'ffmpeg -i &amp;quot;$0&amp;quot; -sameq &amp;quot;${0%%.mov}.avi&amp;quot;' {} \;&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Firewall configuration programs (fwbuilder, yast2, iptables, Brickwall/Brickhouse)</title><link>https://jeltsch.org/en/firewall_configuration_programs_fwbuilder_yast2_iptables_brickwall_brickhouse/</link><pubDate>Wed, 04 Apr 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/firewall_configuration_programs_fwbuilder_yast2_iptables_brickwall_brickhouse/</guid><description>&lt;p&gt;Configuring the firewall by hand using iptables is quite difficult. When we still used RedHat 8.1 we have been doing it but now not anymore. We have been using yast2 now for firewall configuration. An alternative to yast2 is 
 &lt;a href="http://www.fwbuilder.org/" target="_blank" rel="noopener noreferrer nofollow"&gt;fwbuilder&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. We tried it once and it seems to work although the code it produces is quite large compared to manual configuration. An obvious advantage is that fwbuilder can be used together with many different types of firewalls and operating systems (e.g. also Mac OS X). I still think 
 &lt;a href="http://brianhill.dyndns.org/site/modules.php?op=modload&amp;amp;name=News&amp;amp;file=article&amp;amp;sid=15&amp;amp;mode=thread&amp;amp;order=0&amp;amp;thold=0" target="_blank" rel="noopener noreferrer nofollow"&gt;Brickhouse (formerly Brickwall)&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 is a very good - probably the best and easiest - configuration script for the inbuilt firewall/routing functions of Mac OS X. I think the Linux community needs such a project since Brickhouse is way easier to use than fwbuilder.&lt;/p&gt;</description></item></channel></rss>