Ok I have an ipchains firewall script that is called from the ip-up script (PPP connection). Within this ipchains script I wish to forward any ftp and telnet requests coming in to the ppp0 device to another machine within the ineternal network - say 192.168.0.2
What I need to know is what is the rule I should use for ipchains, I have this so far... (I don't have the script with me at the mo so I am trying to remember this from my head!!)....
ipchains -A forward -p tcp -s $INTERNET -d $PPPIP telnet -j ACCEPT
#and the the ipmasqadm
ipmasqadm portfw -a -P tcp -L $PPPIP 23 -R 192.168.0.12 23
is that right? Or does the ipchains -A command need to be forward and/or the -j command REDIRECT
The last bit is: Does packet forwarding just need to be on the gateway (PPP machine) or all computers within the internal network?