On 20 Oct 2003 15:45:15 -0700,
(E-Mail Removed) (Peter) wrote:
>Here's my setup,
>
>PPP/ETH/etc. +------------+
>+-------------+
>to ISP provider | Linux #1 | PPP/ETH/etc. | Anybox
> |
> | | |
> |
><DSL----eth0/ppp0--- |eth1-----------------eth0|
> |
> | | |
> |
> 122.122.122.122 | | 10.0.0.2 |
> |
> +------------+
>+-------------+
>
>Next problem, I can browse the internet from Linux #1.
>I can ping Linux #1 from Anybox(Win2k).
>
>Anybox;
>ip 10.0.0.2
>Subnet 255.255.255.0
>Default Gateway 122.122.122.122
Your default gateway should be the IP address of eth1, ie 10.0.0.1
>ifconfig on Linux #1 returns
>eth1
>ip 10.0.0.1
>Subnet 255.255.255.0
>
>eth0 UP RUNNING BORADCAST MULTICAST
>
>ppp0 ip 122.122.122.122
>Subnet 255.255.255.255
>
>
>I made the change outlined in this IP masquerading howto to change
>eth0 to ppp0 and I'm not quite sure where to turn at this point.
>
>http://en.tldp.org/HOWTO/IP-Masquera...-examples.html
Well, first off I'd recommend that you read the whole IP-Masq HOWTO if
you haven't done so already, it's an excellent guide to setting this
sort of stuff up and should teach you a lot.
Beyond that, are you sure that you've got your kernel configured with
all the correct options that are needed for IP masquerading? Are your
firewall/IP forwarding scripts causing any errors when you run them?
One other problem that you may encounter has to do with the MTU used.
The default MTU on ethernet is 1500, but with PPPoE you lose a few of
those bytes (usually 8). This can sometimes result in a problem where
your packets are getting fragmented and routers upstream routers are
not handling them properly. The symptoms of this are that your Linux
box would be able to browse the internet just fine, and your Windows
box would be able to ping internet sites and some connections would
work, but things like browsing and FTP would tend to fail. The
solution is to reduce the MTU on the Windows box to 1492 or sometimes
less. Of course, in typical Windows fashion, this sort of non-trvial
configuration is damn near impossible to do without downloading some
third-party tool (there is a registry key that you can add to change
your MTU, but it changes with every version of Windows and I can never
remember them).