All of lore.kernel.org
 help / color / mirror / Atom feed
* A replacement for rp_filter with iptables (config help needed)
@ 2005-06-30  4:24 Simon
  2005-07-01  5:47 ` tahmeed
  0 siblings, 1 reply; 6+ messages in thread
From: Simon @ 2005-06-30  4:24 UTC (permalink / raw)
  To: netfilter

Hi There,

We are debian sarge with two ethernet cards.. To get eth1 (on a seperate 
subnet) working correctly, ive had to change 
/proc/sys/net/ipv4/conf/eth1/rp_filter to 0. Now i need a simple 
solution to protect against spoofing attacks on this interface... I have 
an example setup, but i want to make sure i have it correct.. can 
someone confirm for me?...

Note, this was a small script to block the mysql port on the server, but 
then enable for certain time/ip dynamically by adding/removing chains.

iptables -F
iptables -A INPUT -i lo -j ACCEPT
iptables -N MYSQL
iptables -N SPOOF
iptables -A INPUT -p tcp --dport 3306 -j MYSQL
iptables -A SPOOF -i eth1 -j SPOOF
iptables -A INPUT -p tcp --dport 3306 -j REJECT --reject-with tcp-reset

Is this correct - or have i got it ALL wrong.

Thanks

Simon


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-04  7:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-30  4:24 A replacement for rp_filter with iptables (config help needed) Simon
2005-07-01  5:47 ` tahmeed
2005-07-01 21:55   ` John A. Sullivan III
2005-07-01 22:10     ` Jozsef Kadlecsik
2005-07-03 14:03       ` Jan Engelhardt
2005-07-04  7:39         ` Jozsef Kadlecsik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.