Date: Wed, 9 Feb 2005 23:11:41 +0100 From: Max Laier <max@love2party.net> To: Andy Hilker <ah@crypta.net> Cc: freebsd-pf@freebsd.org Subject: Re: problems with synproxy on 5.3-stable Message-ID: <200502092311.47713.max@love2party.net> In-Reply-To: <20050209215832.GA22874@mail.crypta.net> References: <20050209131055.GA94001@mail.crypta.net> <200502091945.01577.max@love2party.net> <20050209215832.GA22874@mail.crypta.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wednesday 09 February 2005 22:58, Andy Hilker wrote:
> You (Max Laier) wrote:
> > Not really, but tcpdump can help. Add log-all to the synproxy and try to
> > watch the connection in tcpdump on pflog0 with something like:
> > $tcpdump -n -e -ttt -i pflog0 rulenum <rule#> and host "testip"
> >
> > You might also want to raise the debugging level with "$pfctl -x misc"
> > and watch the console for BAD state messages.
>
> Ok, i modified my ruleset like this:
>
> [...]
> set loginterface $if_ext
That does not matter here. It only affects $pfctl -si
> [...]
> pass in log quick on $if_ext proto tcp from any to <www_servers>
^^^
Change this to "log-all" in order to get the full transaction log on pflog.
If you happen to know a "known bad"-peer you can also split the rule as:
pass in log-all quick on $if_ext proto tcp from $bad_peer to <www_servers> \
port = 80 flags S/SA synproxy state
pass in quick on $if_ext proto tcp from any to <www_servers> \
port = 80 flags S/SA synproxy state
> port = 80 flags S/SA synproxy state
>
> Then typed "pfctl -x loud" and "tcpdump -n -e -ttt -i pflog0".
> Output looks like without "pfctl -x loud". Where do i see debug output?
$dmesg -a should turn it up. It's written to the console.
> > Keep us posted, thanks.
>
> Yes, sure.
> But before I call the person who has problems and let him try again,
> I have to be sure, to debug the right way.
Be sure to have pflogd(8) or tcpdump logging the traffic on pflog0 while the
connection attempt.
--
/"\ Best regards, | mlaier@freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQBCCoqjXyyEoT62BG0RAqoHAJ9qPzPnIcamEYzjy4LtT6t23KG+LwCePPg/
H1IyROT7m4G0ccu10J6fuHI=
=wy5k
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502092311.47713.max>
