LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-30-2004, 01:49 PM   #1
dlm4444
Member
 
Registered: Sep 2003
Posts: 30

Rep: Reputation: 15
fordwarding remote desktop through iptables


I trying to connect from work useing remote desktop into redhat useing iptables to forward port 3389 to my home xp pro machine.
I have this:

iptables -A INPUT -j ACCEPT -p tcp --dport 3389
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3389 -j DNAT --to 192.168.1.10:3389

any ideas why it don't work?

davidm
 
Old 06-30-2004, 10:08 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
hope you have the FORWARD rules and /proc/sys/net/ipv4/ip_forward is set to 1

Last edited by ppuru; 07-01-2004 at 10:02 PM.
 
Old 07-01-2004, 08:05 AM   #3
dlm4444
Member
 
Registered: Sep 2003
Posts: 30

Original Poster
Rep: Reputation: 15
right now, I useing the server for internet shareing with out question, ip Masqueradeing . I just trying to find the proper rule to direct remote desktop connections to my windows pc running xp pro
 
Old 01-04-2005, 03:37 PM   #4
mallman
LQ Newbie
 
Registered: Apr 2004
Location: lawrenceville GA
Distribution: Fedora Core 1
Posts: 1

Rep: Reputation: 0
i have sameproblem and your sugestions are all tru n my machn. no access still
 
Old 01-04-2005, 09:30 PM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Post your iptables rules (or output of iptables -vnL and iptables -t nat -vnL). Make sure to remove any public IP addresses though. ppuru is right, all you should need is the PREROUTING rule, rule(s) in the FORWARD chain to allow traffic in and out, and the ip_forward sysctl option.
 
  


Reply


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 desktop software to control desktop GUI? Phaethar Linux - Software 3 06-27-2008 09:30 AM
iptables and remote desktop gontarski Linux - Networking 3 04-05-2005 06:15 PM
iptables and remote desktop in fedora 3 lucas4ever Linux - Security 3 01-06-2005 02:37 AM
fordwarding jperez Linux - Networking 0 04-26-2004 10:05 PM
Iptables Need It To Route To A Windows Machine For Remote Desktop sal_paradise42 Linux - General 2 11-11-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration