<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic iptables rule for remote desktop in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864010#M84474</link>
    <description>short description of my network:&lt;BR /&gt;&lt;BR /&gt;dmzhost: 2 interfaces&lt;BR /&gt;  eth1 -&amp;gt; internet (static IP)&lt;BR /&gt;  eth0 -&amp;gt; inside lan&lt;BR /&gt;&lt;BR /&gt;with no firewall rules in place I run putty session and port forward my local port 13888 to my desktop at work port 3389&lt;BR /&gt;&lt;BR /&gt;i think the command line version would be&lt;BR /&gt;&lt;BR /&gt;ssh -L 13888:myoffcepc:3389 dmzhost&lt;BR /&gt;&lt;BR /&gt;anyway:&lt;BR /&gt;&lt;BR /&gt;I looked at many iptables rules and examples and just cannot get the remote desktop rules to work.&lt;BR /&gt;&lt;BR /&gt;any advice would eb greatly appreciated&lt;BR /&gt;&lt;BR /&gt;Donny</description>
    <pubDate>Sun, 17 Sep 2006 08:34:26 GMT</pubDate>
    <dc:creator>Donny Jekels</dc:creator>
    <dc:date>2006-09-17T08:34:26Z</dc:date>
    <item>
      <title>iptables rule for remote desktop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864010#M84474</link>
      <description>short description of my network:&lt;BR /&gt;&lt;BR /&gt;dmzhost: 2 interfaces&lt;BR /&gt;  eth1 -&amp;gt; internet (static IP)&lt;BR /&gt;  eth0 -&amp;gt; inside lan&lt;BR /&gt;&lt;BR /&gt;with no firewall rules in place I run putty session and port forward my local port 13888 to my desktop at work port 3389&lt;BR /&gt;&lt;BR /&gt;i think the command line version would be&lt;BR /&gt;&lt;BR /&gt;ssh -L 13888:myoffcepc:3389 dmzhost&lt;BR /&gt;&lt;BR /&gt;anyway:&lt;BR /&gt;&lt;BR /&gt;I looked at many iptables rules and examples and just cannot get the remote desktop rules to work.&lt;BR /&gt;&lt;BR /&gt;any advice would eb greatly appreciated&lt;BR /&gt;&lt;BR /&gt;Donny</description>
      <pubDate>Sun, 17 Sep 2006 08:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864010#M84474</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2006-09-17T08:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: iptables rule for remote desktop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864011#M84475</link>
      <description>Well, assuming your firewall lets the SSH session through, everything should be fine.&lt;BR /&gt;&lt;BR /&gt;I use the same sort of thing myself to get into both my home and office machines.&lt;BR /&gt;&lt;BR /&gt;If it isn't working, then you need to look at your PC's firewall, to ensure that 3389 is allowed in from your DMZ interface.  As it's using SSH port forwarding, the IP of your non-office machine is irrelevant to your office machine.&lt;BR /&gt;&lt;BR /&gt;So, assuming the SSH connects, the rest should be ok.&lt;BR /&gt;&lt;BR /&gt;What sort of errors are you getting, and what sort of remote desktop protocol are you using? (don't recognize 3389).</description>
      <pubDate>Sun, 17 Sep 2006 18:05:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864011#M84475</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-09-17T18:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: iptables rule for remote desktop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864012#M84476</link>
      <description>Port 3389 sounds like Windows Remote Desktop (RDP) to me.&lt;BR /&gt;&lt;BR /&gt;If I understand this correctly, your dmzhost is at home, and you're trying to access your office PC which has a globally-reachable IP address. Right?&lt;BR /&gt;&lt;BR /&gt;First, is your dmzhost configured as a router or as a bridge? Both are possible, although the first is more likely. Can you browse Web from a computer in your inside LAN? Do you have a NAT set up between internet and your inside LAN?&lt;BR /&gt;&lt;BR /&gt;If you have no NAT and you're using global IP addresses in your inside LAN, you should not need any iptables rules: it should Just Work.&lt;BR /&gt;&lt;BR /&gt;If you have a NAT, it should work too, although there might be complications about host names: the connection comes from your inside LAN, but the officePC sees it as coming from the dmzhost. What kind of error messages are you getting?&lt;BR /&gt;&lt;BR /&gt;You need special iptables rules only if you're coming from outside a NAT and wanting to go inside. In this case, they would be DNAT-type rules in PREROUTING chain.&lt;BR /&gt;&lt;BR /&gt;The command to create the rule would be something like:&lt;BR /&gt;iptables -t nat -A PREROUTING -i &lt;SOURCE_INTERFACE&gt; -p tcp --dport &lt;DEST_PORT_ON_DMZHOST&gt; -j DNAT --to-destination &amp;lt;3389&amp;gt;&lt;/DEST_PORT_ON_DMZHOST&gt;&lt;/SOURCE_INTERFACE&gt;</description>
      <pubDate>Mon, 18 Sep 2006 03:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864012#M84476</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-09-18T03:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: iptables rule for remote desktop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864013#M84477</link>
      <description>tcpdump is your friend.&lt;BR /&gt;for testing purposes leave only your testing networks in iptables\ipfw rules and comment restrictions by ports.&lt;BR /&gt;i mean &lt;BR /&gt;ipfw=iptables&lt;BR /&gt;$ipfw -s your_net -j allow&lt;BR /&gt;or smth like that.&lt;BR /&gt;when u got stable working tunnel - apply other rules.</description>
      <pubDate>Wed, 08 Nov 2006 01:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-rule-for-remote-desktop/m-p/3864013#M84477</guid>
      <dc:creator>timmy2006</dc:creator>
      <dc:date>2006-11-08T01:19:23Z</dc:date>
    </item>
  </channel>
</rss>

