Networking Forums

Networking Forums > Computer Networking > Linux Networking > ARRGGGHHH!!! Firewall/router Misbehaving!!!

Reply
Thread Tools Display Modes

ARRGGGHHH!!! Firewall/router Misbehaving!!!

 
 
Mark Olbert
Guest
Posts: n/a

 
      02-21-2004, 01:22 AM
I am at my wits end, tearing my hair out after wrestling with a
!#$Y!#@$!#@#@ linux 2.4.22 firewall router setup using iptables for 3
days now. This box does NAT for a private LAN composed of WinXP
machines and a Win2K server. It interfaces with a DSL connection.

I use a firewall script called gShield, which worked great on a 2.4.17
box (well, great up until the time it got hacked by some bozo, but
that may not have been the firewall script's fault).

In any event, using the gShield script I can use lynx to visit
websites from the firewall/router. I can ping sites, both from the
firewall/router and the Windoze clients. I can do DNS lookups that
require internet access, again from both the firewall/router and the
Windoze clients.

But I can't surf to any website from the Windoze clients; if I try,
the site is found (i.e., the status bar on the browser says "Opening
web page"), but nothing ever downloads. Similarly, while I can ftp to
sites from both the Windoze clients and the firewall/router, and
browse the ftp site directories, if I try to download any file the
download connection is created (e.g., lftp reports downloading ...
0%), but no download occurs.

This feels like some kind of weird problem where NAT is not
"connecting" the incoming reply packets to the appropriate private
client, but I'm not at all sure about that.

I've tried running tcpdump on both the internal and external
interfaces, and there is definitely traffic on both. In fact, there's
so much traffic on the external interface that I can't see what
happens when a Windoze client tries to surf to a site (obviously I can
dump the tcpdump output to a file and go through it line by line, but
I haven't done that yet).

In addition to any suggestions folks may have for resolving this mess,
or even just gathering more data to pin down what the problem is, I
have a few (stupid, but, like I said, I'm desperate) questions...

1) Under my old, pre-hacked setup the linux firewall/router also ran a
DNS for my domain. In my new setup it no longer does that; the DNS
service for the private LAN is provided by a Win2K server, and the
"external" DNS service is provided by the company where I host my
website. Is that a potential problem? I've been burned before by those
nitwits in Redmond tweaking their DNS so it doesn't "play well with
others" (e.g., if you run a DNS on a Windoze primary domain controller
you >>cannot<< have any Windoze client use any other DNS as a
secondary service).

2) My DSL IP is 63.195.52.179, which is what I configured the external
interface NIC to use. However, the gateway for the firewall/router is
set to 63.195.52.254. I'm a little unclear about whether that's the
right value or not (I copied it over from the earlier, working
system). Changing the gateway to 63.195.52.179 prevents any access of
any kind to the internet from both the firewall/router and the Windoze
clients.

Thanx in advance...

- Mark
 
Reply With Quote
 
 
 
 
Andrey Asadchev
Guest
Posts: n/a

 
      02-21-2004, 03:13 AM
It is rather hard to tell what could be the problem without much
information about your network, firewall rules, and tcpdump logs.
But from what you wrote it seems like your TCP connections are the problem.
Few quick places to check:

Check for ECN broken router:
# sysctl net.ipv4.tcp_ecn (it`s a command :-))
If it is set to 1, set it to zero and try Windoze clients
Set lower MTU
# ifconfig <iface> mtu 1458

Run tcpdump but grep only relevant output.
For example
tcpdump | grep google.com
Run tcpdump on both, internal and external interfaces, tracing both,
firewall and windoze clients connections. It is has to be TCP traffic,
i.e. www, ftp, ssh



 
Reply With Quote
 
Nick Flandry
Guest
Posts: n/a

 
      02-21-2004, 06:04 PM
Andrey,

Thanx for the quick reply.

Turns out the problem was with the NICs I was using, Netgear FA311. They are compatible enough with
the natsemi.o drivers supplied with most distros that the system can bring up the interfaces, but
not compatible enough to actually work properly. I don't know why that should be, but dropping in
some older Netgear NICs (which used the tulip.o driver) solved the problem with no additional
tweaking on my part.

I think Netgear just got added to my "don't ever buy their hardware" list...

- Mark
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Misbehaving routing tables DHK Windows Networking 2 07-13-2009 02:16 PM
Server 2008 with Hyper-V - domain controller - Firewall GUI's show firewall ON, but netsh reports firewall OFF Bruce Sanderson Windows Networking 7 10-07-2008 09:57 AM
Do I need a software firewall in addition to a NAT router/firewall? CRC Linux Networking 2 09-08-2008 02:16 AM
Firewall Router BEFSX41 versus None Firewall Router BEFSR41 R.P. Network Routers 1 09-29-2004 03:35 AM
Wireless misbehaving Zboing Mouflon Windows Networking 0 06-18-2004 10:06 PM



1 2 3 4 5 6 7 8 9 10 11