From: Sven Conrad (SvenConrad@gmx.de)
Date: Tue Aug 22 2000 - 22:31:29 CEST
Hi all
As written before, I have plip fun/cnf files.
I'am not sure, how usefull they are, but may be a startingpoint for
others. They work fine for me.
I would like to here more. I allways cry out, what others
want to do with plip. What I'am doing is very specific. I want to
have a mulinx box to be my gateway from plip to eth0. So
I allso setup masqurading. This may be not so common.
Please let me know, what you plan or do right now.
/sven
#--------------------------
# plip connectivity
#--------------------------
info()
{
cat <<END
- PLIP setup -
END
}
prepare()
{
resource=$1
prompt MY_IPADDR "$MY_IPADDR" "Enter IP address of this side"
prompt DEST_IPADDR "$DEST_IPADDR" "Enter IP address of the other side"
prompt PLIP_PORT "$PLIP_PORT" "Enter linux paralel port (0, 1, 2) "
cat <<END
NETWORK address is the portion of IP address that is
common amongst all addresses within your LAN. If your
network IP block is 192.168.1.x, NETWORK=192.168.1.0
END
save -n $resource configure
}
configure()
{
load_modules plip
# config plip
ifconfig plip${PLIP_PORT} down
ifconfig plip${PLIP_PORT} ${MY_IPADDR} pointopoint ${DEST_IPADDR} up
route add ${DEST_IPADDR} plip${PLIP_PORT}
# and now put it in as masquerade
ipfwadm -F -p deny
ipfwadm -F -a m -S ${DEST_IPADDR}
echo
}
#
# PLIP support resourse file
#
ACTION=ask_the_user
RESOURCE="PLIP support"
VAR_LIST="MY_IPADDR DEST_IPADDR PLIP_PORT"
MOD_LIST="plip"
# Parameter section
MY_IPADDR="192.168.200.1"
DEST_IPADDR="192.168.200.2"
PLIP_PORT="1"
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:15 CET