/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


Ping-Yu Hsieh wrote:

> Hi,
> 
> I have a question about IP masquerade.
> If a packet coming from, say, IP1 to IP2, where IP2 is the ip address of the
> Linux server, is it possible to forward the packet to IP3, which is in the
> other subnet different to the one of IP2, through IP Masquerading or
> ipchains?
> 
> Thank you.
> 
> Peter

yes. it's called port forwarding and you need the ipmasqadm
program to make it happen. once you've got that. it's a
simple matter of (after setting up masquerading and
configuring your kernel to support port forwarding):

  ipmasqadm portfw -f
  ipmasqadm portfw -a -P tcp -L $extip $port -R $intip $port

where:

  $extip is the external ip address of the masquerading host,
  $port is the port for the service to be forwarded,
  $intip is the ip address of the real, internal server.

raf

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to