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 |
hope you have the FORWARD rules and /proc/sys/net/ipv4/ip_forward is set to 1
|
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
|
i have sameproblem and your sugestions are all tru n my machn. no access still
|
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. |