#!/bin/sh

IF_TYPE=`echo $1 | cut -b1,2,3,4`
IF_NUM=`echo $1 | cut -b5,6`

if [ "$IF_TYPE" = "ippp" ]; then
    if [ "$IF_NUM" -ge "2" ]; then
	iptables -t fastnat -D PREROUTING -i $1 -j FASTNAT --to-source $6 --to-destination $4
	iptables -t fastnat -D POSTROUTING -o $1 -j FASTNAT --to-source $4 --to-destination $5
    fi
fi
