[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Iptables question(s)



----- Original Message -----
From: "Stefan Srdic" <linuxbox@telusplanet.net>
To: <debian-firewall@lists.debian.org>
Sent: Thursday, July 19, 2001 3:45 AM
Subject: Iptables question(s)


> I'm running Woody with kernel 2.4.6 at home. I'm using IPTables to
> Masquerade the internet to my internal network and to protect my Linux
> hosts from possible scan or crack attempts.
>
> So far, I've found my Netfilter script to work very well. However, I
> have noticed a *few* minor problems with it.
>
> I use a simple IP spoof line wich drops datagrams that are pretending
to
> originate from my host. Since my external interface is configured via
> DHCP I use the following operation of determining my IP.
>
> IPADDR="`/sbin/pump --status | /bin/grep IP: | /bin/sed -e 's/.*IP:
> //'`"

ifconfig should know your ip as well ;)

I use:

inet_ip=$(/sbin/ifconfig $inet | awk '/inet addr/ { gsub(".*:", "", $2)
; print $2 }')

Pascal



Reply to: