Networking Forums

Networking Forums > Computer Networking > Linux Networking > NAT LAN Problem

Reply
Thread Tools Display Modes

NAT LAN Problem

 
 
Juergen Gerstacker
Guest
Posts: n/a

 
      09-14-2003, 09:27 PM
Hi folks,
I have 2 computers sharing a DSL internet wire.

The computer with DSL runs NAT: (=1st computer, two eth, eth0, eth1)
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

I enter the ISP's DNS server IP Address into /etc/resolv.conf
of the other computer (=2nd computer)
The 2nd computer also has a default gw route to the
Private IP address of the 1st computer.

All web requensts run perfectly on the 1st computer
Some web requests run perfectly on the 2nd, but not all.
E.g.
www.google.de is okay
www.gmx.de doesn't work.

Why???
I appreciate your answers!!
Juergen
 
Reply With Quote
 
 
 
 
Michael Mueller
Guest
Posts: n/a

 
      09-15-2003, 05:48 AM
Hi Juergen,

you wrote:
> Some web requests run perfectly on the 2nd, but not all.


That is a typical problem with ICMP black holes created by misconfigured
firewalls protecting some web servers.

Add following iptables rule:
iptables -t mangle -A POSTROUTING -o ppp0 -p tcp \
--tcp-flags SYN,RST,ACK SYN -j TCPMSS --clamp-mss-to-pmtu


Michael

--
Linux@TekXpress
http://www-users.rwth-aachen.de/Mich...kxp/tekxp.html
 
Reply With Quote
 
Alex
Guest
Posts: n/a

 
      09-15-2003, 06:25 AM
lower MTU of the 2nd computer's network card to something like 1370

"Juergen Gerstacker" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi folks,
> I have 2 computers sharing a DSL internet wire.
>
> The computer with DSL runs NAT: (=1st computer, two eth, eth0, eth1)
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> iptables -A FORWARD -i eth1 -j ACCEPT
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> I enter the ISP's DNS server IP Address into /etc/resolv.conf
> of the other computer (=2nd computer)
> The 2nd computer also has a default gw route to the
> Private IP address of the 1st computer.
>
> All web requensts run perfectly on the 1st computer
> Some web requests run perfectly on the 2nd, but not all.
> E.g.
> www.google.de is okay
> www.gmx.de doesn't work.
>
> Why???
> I appreciate your answers!!
> Juergen



 
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