LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   fordwarding remote desktop through iptables (https://www.linuxquestions.org/questions/linux-security-4/fordwarding-remote-desktop-through-iptables-199569/)

dlm4444 06-30-2004 01:49 PM

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

ppuru 06-30-2004 10:08 PM

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

dlm4444 07-01-2004 08:05 AM

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

mallman 01-04-2005 03:37 PM

i have sameproblem and your sugestions are all tru n my machn. no access still

Capt_Caveman 01-04-2005 09:30 PM

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.


All times are GMT -5. The time now is 10:21 PM.