Ok, time to get it working first and then find out what's wrong
Create a custom template by copying /etc/e-smith/templates/etc/rc.d/init.d/91AdjustPortForward
to /etc/e-smith/custom-templates/etc/rc.d/init.d/91AdjustPortForward
/etc
then edit the custom template fragment by adding the below rule:
# Start portforwarding rule port 3389 MS-TS
--destination-port 3389 -j DNAT --to-destination 192.168.5.3:3389
adjust_tcp_in 3389 ACCEPT ForwardedTCP_$$ 192.168.5.3/32
# End portforwatding rule
so the section looks like:
# Create a new PortForwarding chain
PFC=$(/sbin/iptables --table nat --numeric --list PortForwarding |\
sed -n '3s/ .*//p')
/sbin/iptables --table nat --new-chain PortForwarding_$$
/sbin/iptables --table nat --append PortForwarding_$$ --protocol tcp \
--destination-port 3389 -j DNAT --to-destination 192.168.5.3:3389
adjust_tcp_in 3389 ACCEPT ForwardedTCP_$$ 192.168.5.3/32
/sbin/iptables --table nat --replace PortForwarding 1 --destination $OUTERNET --jump PortForwarding_$$
/sbin/iptables --table nat --flush $PFC
/sbin/iptables --table nat --delete-chain $PFC
where 192.168.5.3 is the IP address of the accepting machine.
Expand the new template fragment and restart masq
Portforwarding 3389 should now work.
RequestedDeletion