IPMASQADM="/usr/sbin/ipmasqadm"
LOCALIF="eth0"
LOCALIP=`/sbin/ifconfig $LOCALIF | grep inet | cut -d : -f 2 | cut -d \
-f 1`
INTERNALIP="192.168.2.2"
$IPMASQADM portfw -a -P tcp -L $LOCALIP 25 -R $INTERNALIP 25
$IPMASQADM portfw -a -P udp -L $LOCALIP 25 -R $INTERNALIP 25 
$IPMASQADM portfw -a -P tcp -L $LOCALIP 110 -R $INTERNALIP 110
$IPMASQADM portfw -a -P udp -L $LOCALIP 110 -R $INTERNALIP 110

charles
p.s. Just curious, but how did you message not get a list footer?

On Tue, 19 Dec 2000, Mulcahy, Chris wrote:

> Greetings:
> 
> I have successfully set up ipchains as a firewall for my newly installed T1.
> It blocks all traffic coming in and masquerades outbound traffic.  That is
> working fine.  
> 
> Now, how do I forward incoming traffic on ports 25 and 110 to my internal
> mail server?
> 
> Thanks in advance
> Chris Mulcahy
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to