All of lore.kernel.org
 help / color / mirror / Atom feed
* IP Spoofing
@ 2003-11-05 19:31 Leandro Takashi Hirano
  2003-11-05 19:51 ` Antony Stone
  0 siblings, 1 reply; 19+ messages in thread
From: Leandro Takashi Hirano @ 2003-11-05 19:31 UTC (permalink / raw)
  To: Lista de Mail netfilter

Thanks for the port scanner help....

Now I would like to know about the IP Spoofing rule, how does it works?

-	iptables -A INPUT -s 192.168.1.0/24 -i ! eth0 -j DROP
-	iptables -A INPUT ! -s 192.168.1.0/24 -i eth0 -j DROP

I don´t know how can it block ip spoofing attack...

Takashi




^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: IP Spoofing
@ 2003-11-05 20:53 bmcdowell
  0 siblings, 0 replies; 19+ messages in thread
From: bmcdowell @ 2003-11-05 20:53 UTC (permalink / raw)
  To: netfilter


This is similar (except FORWARD rather than INPUT) to what I do in my own environment.  In fact, I have layered firewalls that specify individual IPs.  Of course, my firewalls are bridges (bridge.sourceforge.net), so most of the traffic comes in one eth and goes out the other.

E.g.

iptables -A FORWARD -i eth0 -s 192.168.1.5 -j DROP
iptables -A FORWARD -i eth1 -s ! 192.168.1.5 -j DROP

...where 192.168.1.5 is the protected server, eth0 is in the DMZ and eth1 connects directly to said server.


Just chiming in again,

Bob

-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of David C. Hart
Sent: Wednesday, November 05, 2003 2:08 PM
To: Antony Stone
Cc: Iptables Mailing List
Subject: Re: IP Spoofing


On Wed, 2003-11-05 at 14:51, Antony Stone wrote:
> On Wednesday 05 November 2003 7:31 pm, Leandro Takashi Hirano wrote:
> 
> > Now I would like to know about the IP Spoofing rule, how does it works?
> >
> > -	iptables -A INPUT -s 192.168.1.0/24 -i ! eth0 -j DROP
> 
> Any packet with a source address in the Class C range 192.168.1.x which does 
> not come from eth0 will be DROPped.

Funny I was similarly confused. What happens to packets from the LAN
given that they don't originate from eth0?
> 
> > I don´t know how can it block ip spoofing attack...
> 
> These rules assume that eth0 is your internal network, and your internal 
> network range is 192.168.1.0/24.
> 
> No packets with your own source address should come from outside (rule 1) and 
> all packets from inside should have your own source address (rule 2).
> 
> Therefore these two rules stop people on the outside pretending that they 
> live on your network, and people on the inside pretending that they don't.
> 
> Antony.


^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: IP spoofing
@ 2003-04-10 20:39 Daniel Chemko
  0 siblings, 0 replies; 19+ messages in thread
From: Daniel Chemko @ 2003-04-10 20:39 UTC (permalink / raw)
  To: farshadas, netfilter

iptables -t nat POSTROUTING --source <my_bounced_ip> -o <outbound
interface> -p icmp -j SNAT --to-destination <my_bogus_ip>

-----Original Message-----
From: Farshad [mailto:farshadas@excite.com] 
Sent: Thursday, April 10, 2003 1:27 PM
To: netfilter@lists.netfilter.org
Subject: IP spoofing


Just a naive question:
using netfilter, is it possible to grab a packet and change its IP
source address and then reinject it as if it has been sent from another
source?

thanks!



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



^ permalink raw reply	[flat|nested] 19+ messages in thread
* IP spoofing
@ 2003-04-10 20:26 Farshad
  2003-04-10 21:10 ` Peteris Krumins
  0 siblings, 1 reply; 19+ messages in thread
From: Farshad @ 2003-04-10 20:26 UTC (permalink / raw)
  To: netfilter


Just a naive question:
using netfilter, is it possible to grab a packet and change its IP source address and then reinject it as if it has been sent from another source?

thanks!



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

end of thread, other threads:[~2003-11-08 18:06 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-05 19:31 IP Spoofing Leandro Takashi Hirano
2003-11-05 19:51 ` Antony Stone
2003-11-05 20:08   ` David C. Hart
2003-11-05 20:10     ` Antony Stone
2003-11-05 20:26     ` Jeffrey Laramie
2003-11-05 20:57       ` David C. Hart
2003-11-05 21:22         ` Jeffrey Laramie
2003-11-05 20:19   ` Leandro Takashi Hirano
2003-11-05 20:39     ` Antony Stone
2003-11-07 12:26       ` Ted Kaczmarek
2003-11-07 12:32         ` Antony Stone
2003-11-07 13:34         ` David C. Hart
2003-11-07 13:56           ` Antony Stone
2003-11-07 14:04             ` David C. Hart
2003-11-08 18:06           ` Ted Kaczmarek
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 20:53 bmcdowell
2003-04-10 20:39 IP spoofing Daniel Chemko
2003-04-10 20:26 Farshad
2003-04-10 21:10 ` Peteris Krumins

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.