View previous topic :: View next topic |
Author |
Message |
kahcepb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/12917555163f20f0fe3a6c4.gif)
Joined: 08 Apr 2003 Posts: 34
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neilhwatson l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
Posted: Sat May 17, 2003 2:14 pm Post subject: |
|
|
Couldn't you simply guard against spoofing?
Code: | #prevent IP spoofing
if [ -e /proc/sys/net/ipv4/conf/all/rp_filter ]; then
echo -n "Setting up IP spoofing protection..."
for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
echo 1 > $f
done
echo " done."
else
echo "WARNING: errors encountered while trying to enable IP spoofing protection!"
fi
$IPTABLES -A in -i $INTERFACE -s $MYIP -j DROP
$IPTABLES -A in -i $INTERFACE -s 10.0.0.0/8 -j DROP
$IPTABLES -A in -i $INTERFACE -s 172.16.0.0/12 -j DROP
$IPTABLES -A in -i $INTERFACE -s 192.168.0.0/16 -j DROP
$IPTABLES -A in -i $INTERFACE -s 224.0.0.0/4 -j DROP
$IPTABLES -A in -i $INTERFACE -s 240.0.0.0/5 -j DROP
$IPTABLES -A in -i $INTERFACE -d 127.0.0.0/8 -j DROP
$IPTABLES -A in -i $INTERFACE -d $MYBCA -j DROP
|
_________________ The true guru is a teacher.
Neil Watson |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|