From: "Darrell Dieringer" <netfilter@darrelldieringer.com>
To: netfilter@lists.netfilter.org
Subject: RE: strange problem.
Date: Wed, 22 Jan 2003 11:12:09 -0600 [thread overview]
Message-ID: <IMEDICLPAGAOCBLCCKLPAEDMEMAA.netfilter@darrelldieringer.com> (raw)
In-Reply-To: <0E88F7C6-2D91-11D7-9D04-0003934AB744@mail.arc.nasa.gov>
Your FORWARD chain rule needs to accept the port number as modified by
your nat rule, not the original port number. The log message
indicates that a SYN packet destined for 192.168.0.13:5800 was
encountered. That is the traffic you must accept for your scenario to
work.
> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of
> Michael P. Ryan
> Sent: Tuesday, January 21, 2003 4:38 PM
> To: Alistair@nerdnet.ca
> Cc: netfilter@lists.netfilter.org
> Subject: Re: strange problem.
>
>
> My Mistake, thank you for clarifying that.
>
> I have managed to make it a bit further with my problem.
> I can get a
> forward working locally from external ip to internal ip on the same
> box, but when I try to create a forward to a system on the
> internal lan
> I run into problems.
>
> I run:
>
> iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 223 -m
> state --state
> NEW,ESTABLISHED,RELATED -j ACCEPT
> iptables -A PREROUTING -t nat -p tcp -d my.external.ip
> --dport 223 -j
> DNAT --to 192.168.0.13:5800
>
> when I try:
> telnet my.external.ip 22it hangs and I see the following via dmesg:
>
> IN=eth0 OUT=eth1 SRC=my.external.ip DST=192.168.0.13 LEN=44
> TOS=0x10
> PREC=0x00 TTL=56 ID=63199 DF PROTO=TCP SPT=50082 DPT=5800
> WINDOW=32768
> RES=0x00 SYN URGP=0
>
> eventually the connection times out.
>
>
>
next prev parent reply other threads:[~2003-01-22 17:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-17 18:31 strange problem Michael P. Ryan
2003-01-18 1:45 ` Alistair Tonner
2003-01-21 22:38 ` Michael P. Ryan
2003-01-22 17:12 ` Darrell Dieringer [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-12 3:45 Strange problem sean
2003-01-16 16:55 GNOME help Anant Aneja
2003-01-17 16:06 ` Strange problem Korosi Akos
2003-01-17 18:36 ` Ray Olszewski
2002-10-31 11:46 strange problem Russell Coker
2002-10-31 12:21 ` Stephen Smalley
2002-10-31 15:18 ` Russell Coker
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=IMEDICLPAGAOCBLCCKLPAEDMEMAA.netfilter@darrelldieringer.com \
--to=netfilter@darrelldieringer.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.