You should use the port forwading module with ipmasqadm instead :
ipmasqadm portfw -a -P tcp -L your_ip 80 -R your_ip 10080
type: ipmasqadm portfw for the complete usage.
IMHO, to seperate forwarding stuff and firewall rules using ipchains and
portfw is better.
----- Original Message -----
From: "David Morton" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, January 22, 2001 5:15 PM
Subject: Port forwarding
>
> Has anybody gotten port-forwarding to work? I want orion to run
> as non-root user on Linux.....I did see:
> http://www.orionsupport.com/articles/unixprocess.html
>
> The following is an excerpt:
> IP Chains (ipfw)
> IP Chains is a program that comes with recent versions of Linux that uses
> the ipfw library to specify rules for TCP/IP packets. For information
about
> using it, refer to the howto.
> Here's a simple rule to tell all incoming TCP packets destined for port 80
> to be forwarded to port 10080:
> [root@myhost]$ ipchains -A input --destination-port 80 -p tcp -j REDIRECT
10080
> Warning: Use ipchains at own risk... You are recommended to read the
> documentation first, and have the machine in easy reach.
> This command needs to be executed each time the system is booted, so you
> may want to place it in a startup file somewhere.
>
> I tried ipchains rule with one change:
> ipchains -A input -d 192.168.0.4 80 -p tcp -j REDIRECT 10080
>
> it didn't work.
>
> any suggestions?
>
> If anyone has working on one ip only (on a machine that has multiple ips
> like mine)...please send output of 'ipchains -L'...and any other ipmasqadm
> table output...
>
> Thanks
> David
>
>