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
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil