On Thu, Jul 05, 2001 at 03:06:25PM -0300, Miguel Griffa wrote:
> Hi,
>       I've seached the net and read the howto but I still don't get to 
> realize 
> what I need to do for something as simple as ip/port redirection. Here'e goes
> I want to accept any incoming connection on 1.2.3.4:81 and redirect it to 
> (internal server) 192.168.1.20:80 could any one tell me what parameters 
> should I send to ipchains (better with little explanation). The involved 
> machine is potato.
> 

ipchains doesn't do this, ipmasqadm does.  Here is an example:

ipmasqadm portfw -a -P tcp -L 1.2.3.4 80 -R 192.168.1.20 80

Make sure you have port forwarding enabled in your kernel.


Reply via email to