[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with ipchains please



At 12:14 p.m. 05/07/01 -0600, mark@foresthaven.com wrote:
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.
Thanks!
I remember now ...
It's very difficult to find a black cat in a completely dark room, but it is impossible if it is not there...
kindda similar...
Thanks again, I'll try it right now



Reply to: