Port forward problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Rusty Carruth
Date:  
Subject: Port forward problem
> > -----Original Message-----
> >
> > Here is my problem:
> >
> >    DB Server         Firewall         AppServer
> >    ----------        ---------        ---------
> >    |        |  <-->  |       |  <-->  |       |
> >    ----------        ---------        ---------

> >
> >    192.168.1.241                      63.88.255.35

> >
> > The Database server has an IP 63.88.255.36 from the outside world.
> >
> >...
> > I am having problems with the forwarding. I need to forward requests from
> > ...
> > What do I have to do to get this to work?
> >
> > Thank You,
> --------
> David,
>
> I believe that you have to list the specific ports to be forwarded in the
> forward rules and that it isn't the /usr/sbin/ipchains but rather
> /usr/sbin/ipmasqadm for the forward rules...
>
> i.e.
>
> /usr/sbin/ipmasqadm portfw - a -P tcp -L $DBServerExternalIP (port#) -R
> $AppServerIP (port#)


I'm using port forwarding to the same machine like this:

 ipchains -A input -v    -i $extint -p tcp    -d 0.0.0.0/0 $OUT_PORT -j REDIRECT $LOCAL_PORT
 ipchains -A input -v    -i $extint -p udp    -d 0.0.0.0/0 $OUT_PORT -j REDIRECT $LOCAL_PORT


Look in the ipchains howto for how to tell it where to go if you want remote
forwarding...