LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-18-2008, 08:00 AM   #1
tilinhonh
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Rep: Reputation: 0
I cannot access any remote windows.


Hi
I access the internet through a gateway. Whenever I try to access a remote windows PC it says the remote computer could not be reached.


The gateway has a firewall which is a web-based front end for iptables. I'm not very used to this, so i went to the command line.

I tried
iptables -I FORWARD -p tcp --dport 3389 -j ACCEPT #it does not work
iptables -I OUTPUT -p tcp --dport 3389 -j ACCEPT #it does not work either


I tried several other rules i thought could work, but i didnt get my pc to access any external windows machine.



I know im doing something stupid, but i cannot see what it is.
Can someone help me, please?

TIA
 
Old 02-18-2008, 08:04 AM   #2
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Are you sure that the Windows PCs are even configured to react to Remote Desktop requests? They can be set not to, and the in-built or an additional firewall on the Win PCs might also block the port.

Robin
 
Old 02-18-2008, 08:37 AM   #3
tilinhonh
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, im sure the machines im trying to connect to are listening on port 3389. I have connected to them via dial up connection.
 
Old 02-18-2008, 03:38 PM   #4
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
By any chance is the outgoing firewall blocking those remote packets on the way out.

Your computer might be connecting to them, however, might not be getting anything back?
 
Old 02-19-2008, 05:11 AM   #5
tilinhonh
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
The following rules were added and now its working.


iptables -A POSTROUTING -s 10.0.0.0/255.255.255.0 -o eth0 -p tcp -m tcp --dport 3389 -j MASQUERADE
iptables -A FORWARD -s 10.0.0.0/255.255.255.0 -o eth0 -p tcp -m tcp --dport 3389 -j ACCEPT


Thank you guys.
 
  


Reply

Tags
desktop, firewall, iptables, remote, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Access to Ubuntu from Windows jayme_hall Ubuntu 3 10-02-2007 10:38 PM
How to access windows Remote Desktop? hacker supreme Linux - Newbie 8 02-08-2007 06:51 PM
Remote Access to Windows Box hkillen Linux - Networking 4 09-20-2006 08:01 AM
remote access from Windows cannot connect 1kyle Suse/Novell 1 09-16-2006 04:54 AM
windows remote access to linux how? pete_g Linux - Software 4 05-01-2004 12:30 PM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration