On 6/9/05, Alexander Dalloz <ad+lists@xxxxxxxxx> wrote: > Am Do, den 09.06.2005 schrieb Shahzad Chohan um 15:59: > > > I'll also like to add to my previous mail. > > > > The only reason I'm not going to use NAT is becuase I believe that you > > can't use NAT to port forward on the same subnet, i.e port forward a > > host with ip 192.168.1.1 22 to 192.168.1.2 22. > > > > If I am wrong then can someone please show me how to do it with NAT. > > > Shaz > > It is no problem. > > iptables -A PREROUTING -i <input device> -p tcp --dport 22 -j DNAT --to > <target IP>:22022 > > Alexander > > P.S. http://www-personal.ksu.edu/~seabra/linux/FedoraRules.html > --> 4. IF YOU ARE REPLYING TO A MESSAGE --> "no top posting, please!" > > > -- > Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 > legal statement: http://www.uni-x.org/legal.html > Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.27_FC2smp > Serendipity 16:17:51 up 16 days, 14:55, load average: 0.32, 0.12, 0.03 > > > BodyID:41574733.2.n.logpart (stored separately) > > Hi Thanks for the replies Basically I tried the NAT command but it wouldn't work, I think the destination server 192.168.1.2 is talking back to the client directly as opposed to going back to the 192.168.1.1 originating server then to the client. Would you which package contains ipnatctl, as I typed it on the command line but its not there? Thanks Shaz