> At 02:21 PM 11/25/02 +0800, you wrote: > >Hi, > > > >For example, I have one Novell server(192.168.10.2) as a FTP server at > >port 21, so, can I use another port in Linux like 1001 and redirect it > >to 192.168.10.2:21 from the Linux. > > > >Any body try it before?
Both machines you're describing above are using the same private ip addresses. Therefore, there must be a gateway between the public ip address and those on your lan. Presently, that gateway is routing traffic from the outside world aimed at port 21 to 192.168.10.2. I'm guessing here that your linux box is on another ip... say 192.168.10.3 In which case, yes, you can have your gateway listening for FTP traffic on two different ports (21 and 1021), for example. To route traffic from the gateway to the Linux box on 192.168.10.3, you'd insert a rule into your iptables script like this: iptables -A PREROUTING -t nat -p tcp -d XXX.XXX.XXX.XXX --dport 1021 -j DNAT --to 192.168.10.3:21 In this case, XXX.XXX.XXX.XXX will be the ipaddress of your gateway. Ian _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list
