*********** REPLY SEPARATOR  ***********

On 19/11/00 at 11:45 Matt Whitfield wrote:

>Hi all, I've been using RH 6.0 for over a year and reading this list
>for about the same time. Finally, I've got an external modem and wanna
>try using the internet from Linux (don't get me started on buying an
>expensive machine only to find out most of the components are cheap -
>yes I'm talking Winmodem, etc.). I've done a fair amount of reading
>about security in the past but it was only when I actually started to
>set it up myself that I realized - there seems to be very little
>information about setting up a single machine for internet usage. What I
>really want to know is should I set up ipchains on the machine that is
>accessing the internet, all the literature I've found points to using it
>on a dedicated machine with masquerading. So any hints on how to set up
>nice secure single machine would be gratefully received.
>

What you do is find a script, or create one that grep's the IP of the PPP
connection when up, there are a few examples on the net..some may look like

IPCHAINS="/sbin/ipchains"
LOCALIF="eth0"
LOCALIP=`ifconfig $LOCALIF | grep inet | cut -d : -f 2 | cut -d \  -f 1`
LOCALMASK=`ifconfig $LOCALIF | grep Mask | cut -d : -f 4`
LOCALNET="$LOCALIP/$LOCALMASK"
echo "IP: $LOCALNET"
REMOTENET="0/0"

You can make another that grabs the ppp0 IP (or whatever) and create the
script form there, look around first though, as there are many scripts on
the net that *may* suit you.



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

Reply via email to