Networking Forums

Networking Forums > Computer Networking > Linux Networking > NAT and ISP problem

Reply
Thread Tools Display Modes

NAT and ISP problem

 
 
Giacomo
Guest
Posts: n/a

 
      08-31-2005, 11:53 AM
Good morning, I'm Giacomo Strangolino from Italy.

I posted some days ago a problema about NAT and Internet Service Provider
problems:

I finished developing an ipv4 forewall with NAT/MASQUERADING and have been
testing it
for some time with success connecting from home to my ISP named "libero".

Then i changed ISP to another one, called "telecom" and with great surprise
i discovered that
images from sites and also sites failed to load.

So now, when i call an ISP all works fine, when i call the other, things go
wrong.

I NAT machines behind my firewall changing only ips and ports, and
recalculating checksum (ip and tcp/udp)
to adjust such changes.
I do not touch any other field as window size or seq number or ack, since
the only things i manipulate are
addresses and ports.

I was wondering what i could do to solve, since iptables and ipfw+natd on
freeBSD or winXP sp2 work fine
with this ISP...

Tweaking with ethereal i found that probably sometimes a tcp segment gets
lost.

* Thanks to news help, i tried to lower MTU and to disable ECN, but the
problem persists. *

My firewall is a 2.6.12 kernel module which registers with netfilter hooks.
A userspace program sends rules to
kernel via netlink.

I thank anyone who could help me find the way to fix the problem or
understand what could be wrong with an
ISP network and anyway work fine with the other.

Thanks a lot

Giacomo S. Udine, Italy



 
Reply With Quote
 
 
 
 
Clifford Kite
Guest
Posts: n/a

 
      08-31-2005, 02:12 PM
Giacomo <(E-Mail Removed)> wrote:

> I finished developing an ipv4 forewall with NAT/MASQUERADING and
> have been testing it for some time with success connecting from
> home to my ISP named "libero".


Did you use iptables to "develop" the firewall or code it yourself?

> Then i changed ISP to another one, called "telecom" and with great
> surprise i discovered that images from sites and also sites failed
> to load.


> So now, when i call an ISP all works fine, when i call the other,
> things go wrong.


What type of ISP connection? PPP, PPPoE, plain ADSL, or other?

> I NAT machines behind my firewall changing only ips and ports,
> and recalculating checksum (ip and tcp/udp) to adjust such changes.
> I do not touch any other field as window size or seq number or ack,
> since the only things i manipulate are addresses and ports.


Are you sure the problem is the firewall you developed? That is,
have you tried telecom without a firewall?

> I was wondering what i could do to solve, since iptables and
> ipfw+natd on freeBSD or winXP sp2 work fine with this ISP...


If there is no problem in Linux without the firewall then it's a
firewall problem. If there is a problem without the firewall then
it's likely some connection configuration which was compatible with
the other ISP needs tuning for telecom.

> Tweaking with ethereal i found that probably sometimes a tcp segment
> gets lost.


> * Thanks to news help, i tried to lower MTU and to disable ECN,
> but the problem persists. *


> My firewall is a 2.6.12 kernel module which registers with netfilter
> hooks. A userspace program sends rules to kernel via netlink.


That sounds like you coded the firewall. Maybe you should try asking
on comp.os.linux.development.alps.

> I thank anyone who could help me find the way to fix the problem
> or understand what could be wrong with an ISP network and anyway
> work fine with the other.


--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
 
Reply With Quote
 
CJT
Guest
Posts: n/a

 
      08-31-2005, 02:15 PM
Giacomo wrote:

> Good morning, I'm Giacomo Strangolino from Italy.
>
> I posted some days ago a problema about NAT and Internet Service Provider
> problems:
>
> I finished developing an ipv4 forewall with NAT/MASQUERADING and have been
> testing it
> for some time with success connecting from home to my ISP named "libero".
>
> Then i changed ISP to another one, called "telecom" and with great surprise
> i discovered that
> images from sites and also sites failed to load.
>
> So now, when i call an ISP all works fine, when i call the other, things go
> wrong.
>
> I NAT machines behind my firewall changing only ips and ports, and
> recalculating checksum (ip and tcp/udp)
> to adjust such changes.
> I do not touch any other field as window size or seq number or ack, since
> the only things i manipulate are
> addresses and ports.
>
> I was wondering what i could do to solve, since iptables and ipfw+natd on
> freeBSD or winXP sp2 work fine
> with this ISP...
>
> Tweaking with ethereal i found that probably sometimes a tcp segment gets
> lost.
>
> * Thanks to news help, i tried to lower MTU and to disable ECN, but the
> problem persists. *
>
> My firewall is a 2.6.12 kernel module which registers with netfilter hooks.
> A userspace program sends rules to
> kernel via netlink.
>
> I thank anyone who could help me find the way to fix the problem or
> understand what could be wrong with an
> ISP network and anyway work fine with the other.
>
> Thanks a lot
>
> Giacomo S. Udine, Italy
>
>
>

Did you try the second ISP _without_ the firewall? Maybe there's a DNS
problem or something silly like that which is causing problems with
some images.

--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form che...@prodigy.net.
 
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
Strange problem: no problem with Linux, when I boot windows 2K network is down... Santa Linux Networking 11 11-29-2004 06:46 AM



1 2 3 4 5 6 7 8 9 10 11