Networking Forums

Networking Forums > Computer Networking > Linux Networking > help about nat and internet service provider problem!! (kernel module)

Reply
Thread Tools Display Modes

help about nat and internet service provider problem!! (kernel module)

 
 
Giacomo
Guest
Posts: n/a

 
      08-25-2005, 06:56 PM
Good morning, I'm Giacomo Strangolino from Italy.
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 (i attach an example of a
corrupted image of a site).

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 (I attach ethereal output too).

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
 
 
 
 
CL (dnoyeB) Gilbert
Guest
Posts: n/a

 
      08-26-2005, 03:41 PM
Giacomo wrote:
> Good morning, I'm Giacomo Strangolino from Italy.
> 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 (i attach an example of a
> corrupted image of a site).
>
> 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 (I attach ethereal output too).
>
> 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
>
>


corrupted pictures could indicate a proxy malfunctioning somewhere.
thats all i can think of.

--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber."

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
 
Reply With Quote
 
Giacomo
Guest
Posts: n/a

 
      08-26-2005, 06:37 PM
But if i load iptable's masquerading it works..

I probably have to do something else..

Thanks anyway

Giacomo


"CL (dnoyeB) Gilbert" <(E-Mail Removed)> ha scritto nel messaggio
news:XP-dnfShdfOypZLeRVn-(E-Mail Removed)...
> Giacomo wrote:
>> Good morning, I'm Giacomo Strangolino from Italy.
>> 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 (i attach an example of a
>> corrupted image of a site).
>>
>> 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 (I attach ethereal output too).
>>
>> 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
>>
>>

>
> corrupted pictures could indicate a proxy malfunctioning somewhere. thats
> all i can think of.
>
> --
> Respectfully,
>
>
> CL Gilbert
>
> "Verily, verily, I say unto you, He that entereth not by the door() into
> the sheepfold{}, but climbeth up some other *way, the same is a thief and
> a robber."
>
> GnuPG Key Fingerprint:
> 82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
>
> For a free Java interface to Freechess.org see
> http://www.rigidsoftware.com/Chess/chess.html



 
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
Problem with netfilter in a kernel module Aashay Shringarpure Linux Networking 1 03-02-2009 06:58 AM
Sky internet service provider - access to newsgroups ray_mooney@sky.com Broadband 6 09-10-2007 07:55 PM
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 11:27 AM
killing a kernel thread ....... UDP server (kernel module)......... alex Linux Networking 0 09-20-2006 11:26 AM
Info about Internet Service Provider and Wireless Davide Wireless Internet 2 05-19-2004 02:29 PM



1 2 3 4 5 6 7 8 9 10 11