Hi..

I want to forward a few ports to a specific machine. I have an example of
how to do this, but it is in ipfwadm and i use ipchains.
Can anyone tell me how to write this as ipchains lines?

example:
IP_REAL="firewall ip"
TOIP_PC="thepcothersideoffirewall"
ipmasqadm portfw -f
ipmasqadm portfw -a -P tcp -L $IP_REAL 51210 -R $TOIP_PC 51210
ipmasqadm portfw -a -P upd -L $IP_REAL 51201 -R $TOIP_PC 51201
ipmasqadm portfw -a -P upd -L $IP_REAL 51200 -R $TOIP_PC 51200
ipmasqadm portfw -ln

What needs to be done is that ports 51200 and 51201 udp and
51210 tcp need to be forwarded to a specific machine.
The machine that it needs to be forwarded to has ip 192.168.1.2
The packages that need to be forwarded originate from 4.2.40.XX, 4.2.41.XX,
4.2.48.XX, 4.2.64.XX, and 4.2.74.XX.

I want to keep the security as tight a possible. Can anyone please tell me
what the lines have to be to forward the packages from those machines to the
one behind the firewall?

Sincerely,
Jasper




-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to