瘋狂帽客's Blog
You are already naked. There is no reason not to follow your heart. ~ Steve Jobs ~
Friday, September 14, 2007
Linux AntiSpoofing method
寫個簡單的script來做吧! 這樣會套用到所有的interface上.
#!/bin/bash
for i in /proc/sys/net/ipv4/conf/*/rp_filter
do
echo 1 > "$i"
echo "$i"
cat `echo "$i"`
done
參考: OReilly.LPI.Linux.Certification.in.a.Nutshell.2nd.Edition
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment