From: George Garvey <tmwg-netfilter@inxservices.com>
To: netfilter@lists.samba.org, Antony@Soft-Solutions.co.uk
Subject: Re: NAT not working on one of 3 firewalls
Date: Mon, 24 Jun 2002 15:46:35 -0700 [thread overview]
Message-ID: <20020624154635.D868@inxservices.com> (raw)
In-Reply-To: <20020624204237.JDLG2755.mta05-svc.ntlworld.com@there>; from Antony@Soft-Solutions.co.uk on Mon, Jun 24, 2002 at 09:42:35PM +0100
On Mon, Jun 24, 2002 at 09:42:35PM +0100, Antony Stone wrote:
> On Monday 24 June 2002 8:42 pm, George Garvey wrote:
> How were you doing the logging ? Was it in the POSTROUTING chain, after the
> rule which would change the address ? If the LOG line was any earlier than
> that, then you would still see the original source address...
It was before the NAT rule. I also logged the OUTPUT chain. But since
it has come up, I'll get better information. I was just logging to try
and get a better understanding of how iptables worked, since I was
having problems.
> I see (from the bit I've chopped out of your ip output) that you still have
> the IPsec stuff in there - I'll assume for the time being that that's not
> interfering with things in any way ?
That's from the kernel itself. This is FreeS/WAN. I've not run their
script to activate it, on either side of the tunnel.
> However, I do not recognise what the "withvan" device is doing. I assume
> it's the GRE stuff that you're trying to debug here, so if I asked you to get
> rid of it, that wouldn't help solve the problem ? Maybe someone else on the
> list has more experience of GRE stuff than me, so can offer some advice here ?
Yes, that is the tunnel. I'm at the other end of the tunnel from the
box, so I need it to access the box in question, or need to go where it
is physically. With some work I could do this with only ssh and remove
the tunnel completely. I'll try that.
I'm not trying to debug the GRE tunnel. Its working fine. I'm trying
to find out why packets from other computers on the LAN (eth0 on the
firewall in question) whose gateway is this firewall, send packets to
the internet and don't get replies. I don't even see reply packets
coming in to the firewall computer itself being logged. That's why I
came up with the theory that the NAT line wasn't working, and they were
going out with their source still set to the 192.168.2 address.
As I said, I'll put some specific logging in just for this, so
perhaps the box won't drop logging information, and see what happens.
> Any chance you can put another machine running ethereal or similar on the
> eth1 interface and see what's really coming out of the box ?
Yes. It will take me a bit of time, but I'll do it.
I was really, really, wrong, fortunately. The outgoing NAT is
working. I tried, on a computer connected by LAN, "telnet 152.2.210.81
ftp". It hung. I did "cat /proc/net/ip_conntrack|grep 152.2.21.18":
tcp 6 55 SYN_RECV src=192.168.2.3 dst=152.2.210.81 sport=32807 dport=21 src=152.2.210.81 dst=66.123.115.210 sport=21 dport=32807 use=1
So, I guess it is the input chain that's giving me the problems. Does
that seem right?
next prev parent reply other threads:[~2002-06-24 22:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-24 18:31 NAT not working on one of 3 firewalls George Garvey
2002-06-24 19:25 ` Antony Stone
[not found] ` <20020624124208.C868@inxservices.com>
2002-06-24 20:42 ` Antony Stone
2002-06-24 22:46 ` George Garvey [this message]
2002-06-25 4:08 ` Antony Stone
2002-06-25 10:44 ` George Garvey
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=20020624154635.D868@inxservices.com \
--to=tmwg-netfilter@inxservices.com \
--cc=Antony@Soft-Solutions.co.uk \
--cc=netfilter@lists.samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox