Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

remote desktop Problem

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
rain_physics
n00b
n00b
Posts: 22
Joined: Sun Mar 24, 2013 3:45 pm

remote desktop Problem

  • Quote

Post by rain_physics » Sun Mar 24, 2013 3:56 pm

Hi everybody

I am using Gentoo 3.3.8 x86_64. I am trying to connect my laptop to my office PC( Windows 7 is running there ) using rdesktop. I can connect it from any network but I am unable to connect when I use my hostel internet. Since I am able to connect through other network it means every thing configure pretty fine but I don't know why I am unable to use rdesktop in my hostel network
Here is the error
ERROR: {my IP}: unable to connect

any Idea
Top
your_WooDness
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Thu Oct 25, 2007 9:01 am

  • Quote

Post by your_WooDness » Sun Mar 24, 2013 6:19 pm

Hi,

maybe the port is blocked that is used for rdesktop. I think it's 3389. Might also be that the firewall is blocking RDP...

w00d
Top
doom555
n00b
n00b
Posts: 57
Joined: Mon Oct 29, 2012 6:21 pm

  • Quote

Post by doom555 » Mon Mar 25, 2013 8:05 pm

Try putting the RTP server listening on port 80 or port 443 and connect with the client on the new configured port, most likely it will work! :wink:
Top
rain_physics
n00b
n00b
Posts: 22
Joined: Sun Mar 24, 2013 3:45 pm

  • Quote

Post by rain_physics » Mon Mar 25, 2013 9:09 pm

Thanks for the reply
I think I didn't pose my problem very well.

I can use rdesktop when I use some other network like my university internet connection, my friend's home internet conneciton but I am unable to connection to my office PC using rdesktop through my hostel internet connection

since I am able to connect my office PC through other internet connection its shows that every thing is configure very well on my Gentoo.

can you guys suggest me any solution?
Top
doom555
n00b
n00b
Posts: 57
Joined: Mon Oct 29, 2012 6:21 pm

  • Quote

Post by doom555 » Mon Mar 25, 2013 10:15 pm

If it does not work on the network of your hostel is because the new connections to TCP port 3389 to your server (and in general to the internet) are blocked by a firewall (or even worse, all traffic goes through a trasparent proxy).
In order to allow web traffic (HTTP and HTTPS) connections to port 80 and 443 are allowed... This is why I suggested you to change the port (or simply configure port forwarding on your router, so that the service is accessible from the Internet on a port more "easily" accessible).
Top
rain_physics
n00b
n00b
Posts: 22
Joined: Sun Mar 24, 2013 3:45 pm

  • Quote

Post by rain_physics » Tue Mar 26, 2013 10:28 am

Thanks doom555

I got your point.

Since I am a newbies , could you suggest me how can I make port forwarding for rdesktop using iptables

Thanks in advance for your kind suggestion
Top
doom555
n00b
n00b
Posts: 57
Joined: Mon Oct 29, 2012 6:21 pm

  • Quote

Post by doom555 » Tue Mar 26, 2013 11:47 am

I do not know the structure of your network, but if your server is connected behind nat, you should configure the portforwarding directly on the router. However, if your server is directly accessible from the Internet this is the iptables rule that you should use:

Code: Select all

# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3389
(where eth0 is the network interface exposed to the internet and port 80 is the new port on which the server will listen as well as the old)

Remenber to check if packet forwarding is enabled:

Code: Select all

# cat /proc/sys/net/ipv4/conf/eth0/forwarding
1: enabled , 0: disabled
If enabled it is ok, else if it is disabled:

Code: Select all

# echo '1' > /proc/sys/net/ipv4/conf/eth0/forwarding 
now is enabled, but not after reboot... If you want it after reboot enabled, you can edit /etc/sysctl.conf , for example a line with

Code: Select all

net.ipv4.ip_forward = 1
enable a packet forwarding on all interfaces.

Do not forget that the iptables rules are deleted at restart of system. To do so they are restored automatically
save the current configuration:

Code: Select all

# /etc/init.d/iptables save
and add the iptables init script at boot:

Code: Select all

# rc-update add iptables
EDIT: I had forgotten that your server was running with windows... you can not use iptables on windows, then probably the solution above is useless! What you need to do is set up port forwarding on your router, that despite probably running Linux, it also provides a simpler interface for configuration!
If, however, as I already suggested, the windows computer is directly exposed on the internet, you could use another firewall such as http://wipfw.sourceforge.net/ (on which I know nothing except its existence).
Top
Post Reply

7 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic