All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: IPSec through my firewall
@ 2005-02-16 14:03 Samuel Jean
  0 siblings, 0 replies; 12+ messages in thread
From: Samuel Jean @ 2005-02-16 14:03 UTC (permalink / raw)
  To: Ola Nilsson; +Cc: netfilter

On Wed, February 16, 2005 7:46 am, Ola Nilsson said:
> So, going back to my initial question; How can I go about finding out
where my packets are droped? Since it's most likelly not because of any
netfilter rule entry, who else can decide that a packet can not be
NATed?

Sorry, I haven't followed the thread at all.

To answer this question, some malformed, suspicious packets can be dropped
by the netfilter code itself, and even the networking code.

I don't pretend it's your case but anyway, you can patch your kernel with
the dropped-table patch (available from patch-o-matic).

This will let you log dropped packets.

Also, if you're worried about where in your ruleset the packet gets
dropped, use nf-log, raw table, TRACE patches to get a complete packets
traversal logging.

Hope am not way off the subject.

>
> --
> /Ola Nilsson
>
>
>

Cheers,
Samuel





^ permalink raw reply	[flat|nested] 12+ messages in thread
* IPSec through my firewall
@ 2005-02-15 10:25 Ola Nilsson
  2005-02-15 14:46 ` Michael Gale
  2005-02-15 15:07 ` Jason Opperisano
  0 siblings, 2 replies; 12+ messages in thread
From: Ola Nilsson @ 2005-02-15 10:25 UTC (permalink / raw)
  To: netfilter

Hello,

I've got problems with getting IPSec (using NAT-T) traffic through my
Linux 2.6.10 based firewall. I've now changed my iptables script to
something rather simple:

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Which is far to open, but I used it to try to find the problem. What I
see with Ethereal is that the connection seems to have two
phases. Both phases uses UDP on port 4500. In the first phase ISAKMP
is used, then ESP.

192.168.3.249   is the IP of the machine on my LAN that wants to do IPSec.
1.2.3.4         is the IP of the other end of the IPSec tunnel
5.6.7.8         is the IP of my firewalls interface on the internet

This is what I see:

No.     Time        Source          Destination     Protocol Info
      3 0.001148    192.168.3.249   1.2.3.4         ISAKMP   Aggressive
      4 0.001165    5.6.7.8         1.2.3.4         ISAKMP   Aggressive
      5 9.999541    1.2.3.4         5.6.7.8         ISAKMP   Aggressive
      6 9.999586    1.2.3.4         192.168.3.249   ISAKMP   Aggressive

    460 77.461355   192.168.3.249   1.2.3.4         ESP      ESP (SPI=0x384a545c)
    461 77.461383   192.168.3.249   1.2.3.4         ESP      ESP (SPI=0x384a545c)
    462 78.961453   192.168.3.249   1.2.3.4         ESP      ESP (SPI=0x384a545c)

During the ISAKMP phase, my firewall NATs like it shall, and the
client reports the tunnel as working. But once the real ESP traffic
starts to flow, it doesn't get NATed as I would like it to.

I've googled quite a lot, and also tried using firehol to set up the
iptables (and gotten some help on the firehol forum), but I'm still
unsuccessfull. What should I do to debug this? Anyone have a set of
rules that allows ISAKMP/ESP on UDP port 4500?

Regards,
-- 
/Ola Nilsson



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

end of thread, other threads:[~2005-02-16 18:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200502151715.j1FHFtfO029324@pepsi.fishpuppy.com>
2005-02-16  9:29 ` IPSec through my firewall rowdy
2005-02-16 10:27   ` Georgi Alexandrov
2005-02-16 12:46     ` Ola Nilsson
2005-02-16 14:59       ` Jean Caron
2005-02-16 18:08         ` Ola Nilsson
2005-02-16 14:03 Samuel Jean
  -- strict thread matches above, loose matches on Subject: below --
2005-02-15 10:25 Ola Nilsson
2005-02-15 14:46 ` Michael Gale
2005-02-15 15:15   ` Ola Nilsson
2005-02-15 15:38     ` Michael Gale
2005-02-15 15:07 ` Jason Opperisano
2005-02-15 22:00   ` Ola Nilsson

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.