Image

Imagecorto wrote in Imagelinux

IP Forwarding...

K, so the bottom line question is "how to configure address translation"



Continued�

I have a linux server running ipchains to do port blocking. A second nic in that system supplies a 192 address range to the other desktop windows systems connected to the hub. I want to run a video pump on my desktop that would - if I was directly connected to the net - supply streaming video to a special web site that pushes that stream into a more formal presentation. So the problem is getting the external system to point to a specific port (user configurable) on my external IP and have my linux box translate this to the 192 addi of my desktop..

I've tried unsuccessfully to put an ipfwd command set into the firewall config script� for example, trying to use port 2047:

$IPCHAINS -I forward -p tcp -s 192.168.1.2/24 2047 -j MASQ
/usr/sbin/ipmasqadm portfw -a -P tcp -L ##.###.###.### 2047 -R 192.168.1.2 2047
# next line is for reversing the command.
# /usr/sbin/ipmasqadm portfw -d -P tcp -L ##.###.###.### 2047 -R 192.168.1.2 2047
$IPCHAINS -A input -p tcp -s $REMOTENET -d $LOCALNET 1023:65535 -j ACCEPT
$IPCHAINS -A input -p udp -s $REMOTENET -d $LOCALNET 1023:65535 -j ACCEPT

Note: the ##.###.###.### would be the external addi of the linux box.

I'd love any advice I can get on this�