🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.sieci
Article #232020

Re: Pulpit zdalny za NAT-em i firewallem

#232020
From: Krzysztof Oledzki
Date: Sun, 23 Dec 2007 01:05
44 lines
2240 bytes
rePeter <no@spam.no> wrote:
> Thu, 20 Dec 2007 23:02:10 -0800 (PST)      
> Norberto <norbi@hkza.com.pl>   napisał(a):
> 
> > Zakladajac ze:
> > IP kompa za natem : 192.168.0.1
> > Port pulpitu zdalnego windowsa : tcp 3389
> > IP routera/nat-a/firewala: 80.80.80.80
> > Port na firewallu: 2000
> > linijka NAT-a:
> > 
> > Kod:
> > iptables t nat -I POSTROUTING -o eth0 -j SNAT --to-source 80.80.80.80
> 
> Powyższą linię zmień na:
> 
> iptables t nat -I POSTROUTING -p tcp -s 192.168.0.1 --sport 3389 -o eth0 -j
> SNAT --to-source 80.80.80.80:2000

W jakim niby celu?

> > linijka forwardujaca:
> > 
> > Kod:
> > iptables -t nat -A PREROUTING -d 80.80.80.80 --dport 2000 -j DNAT --to
> > 192.168.0.1:3389

> > Czy to wystarczy aby dostac sie pulpitem zdalnym do kompa z winxp za
> > natem? Pytam bo nie dziala mi i nie wiem gdzie bladze.
> 
> Poza tym trzeba forwardować ten ruch, więc jeśli blokujesz coś w łańcuchu
> FORWARD, to musisz zezwolić na powyższe, oczywiście w obie strony.

A jak nadal nie działa to pewnie kwestia firewalla na XP.

Pozdrawiam,

			Krzysztof Oledzki

-- 
Krzysztof Olędzki
e-mail address:		ole(a-t)ans(d-o-t)pl
Registered User:	Linux - 189200, BSD - 51140
Nick Handles:		KO60-RIPE, KO581 (Network Solutions)
Technical Details
Message-ID: <fkkc7v$bk6$1@sparrow.axelspringer.com.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.axelspringer.com.pl!not-for-mail
References: <3beb9948-eb4c-4897-bdfe-e60877ded95f@l1g2000hsa.googlegroups.com> <20071221083454.505a11eb@peter.regionet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.axelspringer.com.pl!not-for-mail
From: Krzysztof Oledzki <ole@a.ns.pl>
Newsgroups: pl.comp.os.linux.sieci
Subject: Re: Pulpit zdalny za NAT-em i firewallem
Date: Sun, 23 Dec 2007 01:05:03 +0000 (UTC)
Organization: Axel Springer Polska
Lines: 44
Sender: Ole <ole@prozac.bsdzine.org>
Message-ID: <fkkc7v$bk6$1@sparrow.axelspringer.com.pl>
References: <3beb9948-eb4c-4897-bdfe-e60877ded95f@l1g2000hsa.googlegroups.com> <20071221083454.505a11eb@peter.regionet.pl>
NNTP-Posting-Host: prozac.bsdzine.org
Mime-Version: 1.0
X-Trace: sparrow.axelspringer.com.pl 1198371903 11910 83.238.13.126 (23 Dec 2007 01:05:03 GMT)
X-Complaints-To: abuse@news.axelspringer.com.pl
NNTP-Posting-Date: Sun, 23 Dec 2007 01:05:03 +0000 (UTC)
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-RELEASE (i386))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit