From: Jason Opperisano <opie@817west.com>
To: Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: Re: protocol 50 unreachable
Date: Thu, 2 Dec 2004 15:11:02 -0500 [thread overview]
Message-ID: <20041202201102.GA5915@bender.817west.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0412021019060.25230-100000@gollum.grajagan.net>
On Thu, Dec 02, 2004 at 10:22:27AM -0800, Helge Weissig wrote:
> The iptable logs are not complete
if you're not providing all the details, i'm not sure how we're supposed
to be able to help. the information i was going on was:
Chain PREROUTING (policy ACCEPT 1380 packets, 95540 bytes)
pkts bytes target prot opt in out source
destination
0 0 LOG all -- * * 0.0.0.0/0
0.0.0.0/0 LOG flags 0 level 6 prefix `all preroute: '
and the log entries:
Dec 1 21:38:37 gollum kernel: all preroute: IN=eth1 OUT=
MAC=00:c0:4f:22:05:03:00:30:65:1f:ed:0a:08:00 SRC=10.0.0.200 DST=(VPN
SERVER IP) LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=8977 PROTO=ESP
SPI=0x2e9dc0d2
your log rule in PREROUTING of the nat table should catch every single
packet, before any filtering (or even routing) takes place (unless you
have filter rules in mangle). the fact that every log entry you provided
(like the above) shows ESP from client->server means:
1) there are zero ESP packets coming from server->client
2) you removed those log entries from your post
3) packets from server->client disappear somewhere between the pcap
layer and the netfilter PREROUTING hook
are you saying it's #2?
> and as I mentioned, I may need help with
> setting that up. I can see the packets coming from the server with tcpdump
> as I showed in my original post but then an immediate reply is sent back
> and nothing goes through to the internal interface.
if you can see ESP packets hitting your external interface from the VPN
server with tcpdump, but a log rule in PREROUTING of the nat table
doesn't see them--you have something horribly, horribly wrong with your
firewall machine.
> The same thing happens
> when I use nmap to scan ip protocols. Conversely, my internal ESP traffic
> ends at the internal interface of my firewall. It never reaches the
> external interface or the outside. TCP traffic works fine as you can see
> from the ping logs from the internal client. Could this indicate that
> there is a problem before anything gets to iptables?
yes.
if you use these rules:
iptables -t nat -A PREROUTING -p 50 -j LOG \
--log-prefix "PREROUTE ESP: "
iptables -A FORWARD -p 50 -j LOG --log-prefix "FWD ESP: "
iptables -t nat -A POSTROUTING -o $EXT_IF -j MASQUERADE
you should get logs in both directions (client->server and
server->client). if not...well, let's assume for now that you will...
it would also greatly help if you made sure to post all the logs
generated by the above, so as not to mislead us.
-j
--
"Ah, beer, my one weakness. My Achilles heel, if you will."
--The Simpsons
next prev parent reply other threads:[~2004-12-02 20:11 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-01 22:51 protocol 50 unreachable Helge Weissig
2004-12-01 23:59 ` John A. Sullivan III
2004-12-02 0:07 ` Helge Weissig
2004-12-02 0:29 ` Jason Opperisano
2004-12-02 3:29 ` Helge Weissig
2004-12-02 3:46 ` Jason Opperisano
2004-12-02 4:00 ` Helge Weissig
2004-12-02 4:09 ` John A. Sullivan III
2004-12-02 4:12 ` Jason Opperisano
2004-12-02 4:53 ` Helge Weissig
2004-12-02 5:15 ` John A. Sullivan III
2004-12-02 5:44 ` Helge Weissig
2004-12-02 15:14 ` Jason Opperisano
2004-12-02 15:13 ` Helge Weissig
2004-12-02 17:25 ` Jason Opperisano
2004-12-02 18:22 ` Helge Weissig
2004-12-02 18:54 ` John A. Sullivan III
2004-12-02 20:11 ` Jason Opperisano [this message]
2004-12-02 19:26 ` Helge Weissig
2004-12-02 20:56 ` Jason Opperisano
2004-12-02 20:12 ` Helge Weissig
2004-12-02 21:30 ` Jason Opperisano
2004-12-03 6:35 ` Philip Craig
2004-12-03 17:11 ` Helge Weissig
2004-12-04 2:20 ` Alistair Tonner
2004-12-04 2:35 ` Jason Opperisano
2004-12-04 3:03 ` Helge Weissig
2004-12-02 4:03 ` John A. Sullivan III
2004-12-04 17:07 ` Helge Weissig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041202201102.GA5915@bender.817west.com \
--to=opie@817west.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.